Skip to content

new lock remove command - #15284

Merged
czoido merged 3 commits into
conan-io:release/2.0from
memsharded:feature/lock_remove
Dec 19, 2023
Merged

czoido merged 3 commits into
conan-io:release/2.0from
memsharded:feature/lock_remove

Conversation

@memsharded

@memsharded memsharded commented Dec 16, 2023

Copy link
Copy Markdown
Member

Changelog: Feature: New conan lock remove command to remove requires from lockfiles.
Docs: conan-io/docs#3496

I am proposing this PR to close:

Close #14523
Close #14524

The idea is that updates are equivalent to something like:

$ conan remove --requires=zlib/* && conan add --requires=zlib/1.2.11

But it will allow us to first iterate and learn about the logic of removal of versions from lockfiles, because conan remove makes sense in isolation, even without lock update or lock add, like for example using it before resolving it to latest with --lockfile-partial. When we have clear what is the UX and UI for the removal, we can do a single command conan update or conan add with extra arguments

@memsharded memsharded added this to the 2.0.15 milestone Dec 16, 2023
@memsharded
memsharded requested a review from jcar87 December 16, 2023 10:42

@AbrilRBS AbrilRBS left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice! Only have 1 doubt about a pattern case, otherwise looks good to me

Comment thread conans/test/integration/lockfile/test_user_overrides.py
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

4 participants