-
Notifications
You must be signed in to change notification settings - Fork 992
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Feature/lock upgrade #17577
base: develop2
Are you sure you want to change the base?
Feature/lock upgrade #17577
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looking good
c.run(f"export libb --version=1.1") | ||
c.run(f"export libb --version=1.2") | ||
c.run(f"export libc --version=1.1") | ||
c.run("lock upgrade . --update-requires=liba/* --update-requires=libb/[*] --update-build-requires=libc/[*]") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It would be great to check that an --update-xxx
doesn't update if the provided version or version range is not in the lockfile, and as such is not removed/unlocked.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes! This is already being covered in this test case
https://github.com/conan-io/conan/pull/17577/files#diff-1f71b92a9bc5411618c92c12f2976cd7722225a096b9b85a1766d5fe9df533f3R429
Co-authored-by: Abril Rincón Blanco <[email protected]>
eb29a17
to
36b7aa0
Compare
Changelog: Feature: New
lock upgrade
command to automatically upgrade desired dependencies resolving the graphDocs: TODO
develop
branch, documenting this one.Fix #16636
The objective of this subcommand is to provide an easy and direct CLI interface to upgrade a (single / multiple) reference(s) in a lockfile: