Repository navigation
Commit 3878dc1
fix: channel order was not what got this fork's package, a version pin is
The install line documented one commit ago still fetched upstream's build, and
the reasoning I committed beside it was wrong.
`d66e4a4` claimed pixi resolves with strict channel priority, so the first
channel carrying a package wins and the version is never consulted. That claim
came from one observation: with both channels at 0.37.0, reordering them did
change which package the solve chose. It changed because the reorder broke a
version *tie*, which is not the same thing at all. Pixi's default resolves the
highest version across every channel, and once upstream's channel reached
0.40.0 the documented line fetched
`prefix.dev/blooop/linux-64/devlaunch-0.40.0` again, order notwithstanding.
Three arrangements were solved rather than argued about:
- a plain range with this fork's channel first: upstream's 0.40.0
- `channel-priority = "strict"` with a plain `[dependencies]` entry: this fork's
- an exact `==` pin: this fork's
`pixi global install` has no `--channel-priority` flag, so a one-liner can only
express this as a version. The documented command carries one, and
`test_the_install_line_pins_the_version_that_ships` diffs it against
`rust/Cargo.toml` so it cannot go stale silently. Asserted by watching it fail
against the unpinned line first.
The channel order stays. It costs nothing, and it is what decides a genuine tie.
The docstring that explained it now says what actually holds and records the
wrong version of the rule, because the wrong version is the plausible one: the
words "strict channel priority" appear in pixi's own documentation and it is
easy to conclude the default behaves that way.
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01AdSFnBdxie6TosHVmjLY281 parent d66e4a4 commit 3878dc1
2 files changed
Lines changed: 48 additions & 20 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
34 | 34 | | |
35 | 35 | | |
36 | 36 | | |
37 | | - | |
| 37 | + | |
38 | 38 | | |
39 | 39 | | |
40 | 40 | | |
| |||
105 | 105 | | |
106 | 106 | | |
107 | 107 | | |
108 | | - | |
| 108 | + | |
109 | 109 | | |
110 | 110 | | |
111 | 111 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
194 | 194 | | |
195 | 195 | | |
196 | 196 | | |
197 | | - | |
198 | | - | |
199 | | - | |
200 | | - | |
201 | | - | |
202 | | - | |
203 | | - | |
204 | | - | |
205 | | - | |
206 | | - | |
207 | | - | |
208 | | - | |
209 | | - | |
210 | | - | |
211 | | - | |
212 | | - | |
213 | | - | |
214 | | - | |
| 197 | + | |
| 198 | + | |
| 199 | + | |
| 200 | + | |
| 201 | + | |
| 202 | + | |
| 203 | + | |
| 204 | + | |
| 205 | + | |
| 206 | + | |
| 207 | + | |
| 208 | + | |
| 209 | + | |
| 210 | + | |
| 211 | + | |
| 212 | + | |
| 213 | + | |
| 214 | + | |
| 215 | + | |
| 216 | + | |
| 217 | + | |
| 218 | + | |
| 219 | + | |
| 220 | + | |
| 221 | + | |
| 222 | + | |
| 223 | + | |
| 224 | + | |
| 225 | + | |
215 | 226 | | |
216 | 227 | | |
217 | 228 | | |
| |||
248 | 259 | | |
249 | 260 | | |
250 | 261 | | |
| 262 | + | |
| 263 | + | |
| 264 | + | |
| 265 | + | |
| 266 | + | |
| 267 | + | |
| 268 | + | |
| 269 | + | |
| 270 | + | |
| 271 | + | |
| 272 | + | |
| 273 | + | |
| 274 | + | |
| 275 | + | |
| 276 | + | |
| 277 | + | |
| 278 | + | |
0 commit comments