rez-package-orderers
БесплатноБез исполняемых скриптовНе проверенHow rez decides which version of a package to pick — the `package_orderers` setting, the five built-in orderers `sorted` / `version_split` / `per_family` /…
от loonghao343 установки в других каталогахОб этом скилле
Rez package orderers
One-sentence summary: an orderer reorders the version list rez sorts before it solves, so the "latest" version rez returns is the latest by the orderer's rule — and a configured orderer is the only reason a successful resolve picks an older version without any conflict to explain it.
Skill scope: the orderer mechanism itself — which orderers exist, how they are configured, and
how to tell whether one is in play. For how version tokens compare (1.0.0 vs 1.0.0-beta,
alphanumeric vs numeric segments) see rez-core-concepts; for a resolve that fails see
rez-resolve-troubleshooting, since orderers only matter when the resolve succeeds; for reading the
solver trace see rez-resolve.
What an orderer changes
The solver always asks the package repository for versions in a defined order and takes the first that fits. Orderers change that order. They do not forbid anything: a higher version is still reachable if you request it explicitly.
That is the diagnostic signature. If rez-env foo gives you 1.1.0 while rez-env foo-2 happily
gives you 2.0.0, and there is no conflict anywhere, an orderer is almost always why.
Orderers apply to variants as well as to package versions, so a variant list is reordered the same way.
Is an orderer in play?
Check before you theorise — the default is empty:
rez-config package_orderers
An empty list means no orderer is configured and the default (sorted, descending) applies. A
non-empty list is inherited through the normal config layering, so also confirm where it came from:
rez-config --source-list package_orderers
The built-in orderers
type |
What it does |
|---|---|
sorted |
the default — sort by version, descending |
version_split |
versions less than or equal to first_version first, then the default order |
per_family |
apply different orderers to different package families |
soft_timestamp |
versions released before timestamp first, then the rest; rank relaxes it |
no_order |
a no-op — explicitly leave a package's order alone |
sorted
The default. You only need to name it to change its direction, or to scope it:
package_orderers = [
{
"type": "sorted", # required
"descending": True, # required
"packages": ["python"], # optional; omit to apply to every package
}
]
descending: False inverts it, so the lowest version wins. Verified against a repository holding
foo-1.0.0, foo-1.1.0, foo-2.0.0:
| Orderer | rez-env foo resolves |
|---|---|
| none (default) | foo-2.0.0 |
sorted with descending: False |
foo-1.0.0 |
version_split
Orders every version less than or equal to first_version first, then falls back to the default
order for the rest. Given [5, 4, 3, 2, 1], an orderer with first_version=3 yields
[3, 2, 1, 5, 4].
package_orderers = [
{
"type": "version_split",
"first_version": "1.1.0",
}
]
With the same three foo versions, first_version: "1.1.0" makes rez-env foo resolve
foo-1.1.0 instead of foo-2.0.0. Note the comparison is less than or equal to, so the named
version itself is included in the preferred group.
The canonical studio use is easing a python-2 to python-3 migration:
package_orderers = [
{
"type": "per_family",
"orderers": [
{
"packages": ["python"],
"type": "version_split",
"first_version": "2.7.16",
}
],
}
]
For the python family, versions at or below 2.7.16 win. An explicit rez-env python-3 still
gets 3.7.4.
per_family
Applies different orderers to different families. Any orderer above can be nested in it, together
with a packages list. A family not named by any nested orderer keeps the default order.
This is also how you scope no_order.
soft_timestamp
Prefers packages released before timestamp (a Unix epoch integer), in descending order, followed by
everything released after. rank relaxes the boundary: a non-zero rank lets version changes at that
rank and above win over the timestamp.
package_orderers = [
{
"type": "soft_timestamp",
"timestamp": 1568001600, # 2019-09-09
"rank": 3,
}
]
rank: 3 is the usual choice under semantic versioning — it allows a different patch number
through. Generate the timestamp rather than hand-computing it:
python -c "import datetime, time; print(int(time.mktime(datetime.date(2019, 9, 9).timetuple())))"
Which version wins depends on rank, and the effect is not monotonic — a rank that lets a later
patch through can land on a different version than a rank that lets a later minor through. Measure
it against your own repository rather than assuming, because the answer depends on when each version
was actually released.
no_ord
Установить rez-package-orderers в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл rez-package-orderers?
How rez decides which version of a package to pick — the `package_orderers` setting, the five built-in orderers `sorted` / `version_split` / `per_family` / `soft_timestamp` / `no_order`, how orderers apply to variants as well as packages, writing and registering a custom orderer, and how to prove an orderer is or is not what changed your resolve. Use when rez picks a version you did not expect and the resolve is not failing, or when a studio needs python-2-style version pinning to survive an upgrade. Covers Rez 3.4.0.
Как установить скилл rez-package-orderers?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл rez-package-orderers запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
doc-coauthoring
Guide users through a structured workflow for co-authoring documentation. Use when user wants to write documentation, proposals, technical specs, decision…
от Anthropicacademy-guide
Stop and check this skill before finishing any reply to a question about how to use Claude or a Claude product — it recommends matching courses, tutorials…
от Anthropicinternal-comms
A set of resources to help me write all kinds of internal communications, using the formats that my company likes to use. Claude should use this skill…
от Anthropicskill-development
This skill should be used when the user wants to "create a skill", "add a skill to plugin", "write a new skill", "improve skill description", "organize skill…
от Anthropic