Skip to content

with get: a bare with get c.<pkg> keeps with.toml's pin, and with get with no argument installs the exact pins the lock lacks (#2355) - #2654

Merged
ehartford merged 1 commit into
fix-2362from
fix-2355
Oct 25, 2026
Merged

ehartford merged 1 commit into
fix-2362from
fix-2355

Conversation

@ehartford

@ehartford ehartford commented Oct 25, 2026 •

Copy link
Copy Markdown
Contributor

Root cause: run_get_command (src/main.w) resolved c.<pkg> without a
version to the newest Conan version and rewrote the pin, and the no-argument
restore (lock_restore) installed only what with.lock held, so a pin edited
in with.toml was overridden by the lock.

A bare c.<pkg> that with.toml pins installs that pin and says so ("c.X is
pinned at V in with.toml; with get c.X@<version> changes the pin"). The
no-argument form installs each exact with.toml pin the lock does not hold
(cli_manifest_c_deps, lock_pin_is_exact, lock_holds_pin in
src/compiler/LockFile.w), then restores the lock. The install steps are one
function, get_install_c_dep.

Test: test/internals/lock_pins_test.w.

Closes #2355

…get` with no argument installs the exact pins the lock lacks (#2355)

Root cause: run_get_command (src/main.w) resolved `c.<pkg>` without a
version to the newest Conan version and rewrote the pin, and the no-argument
restore (lock_restore) installed only what with.lock held, so a pin edited
in with.toml was overridden by the lock.

A bare `c.<pkg>` that with.toml pins installs that pin and says so ("c.X is
pinned at V in with.toml; `with get c.X@<version>` changes the pin"). The
no-argument form installs each exact with.toml pin the lock does not hold
(cli_manifest_c_deps, lock_pin_is_exact, lock_holds_pin in
src/compiler/LockFile.w), then restores the lock. The install steps are one
function, get_install_c_dep.

Test: test/internals/lock_pins_test.w.
@ehartford
ehartford added this pull request to stack #2658 October 25, 2026 21:47
@ehartford ehartford changed the title fix 2355 with get: a bare with get c.<pkg> keeps with.toml's pin, and with get with no argument installs the exact pins the lock lacks (#2355) Oct 25, 2026
@ehartford
ehartford marked this pull request as ready for review October 25, 2026 21:59
@ehartford
ehartford merged commit 79f570d into main Oct 25, 2026
@ehartford
ehartford deleted the fix-2355 branch October 25, 2026 21:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

with get c.<pkg> silently bumps an existing pin, and the lock then overrides with.toml

1 participant