Skip to content
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] ability to add reference to lockfile for a specific version and revision #14524

Closed
1 task
jcar87 opened this issue Aug 18, 2023 · 1 comment · Fixed by #15284
Closed
1 task

[feature] ability to add reference to lockfile for a specific version and revision #14524

jcar87 opened this issue Aug 18, 2023 · 1 comment · Fixed by #15284

Comments

@jcar87
Copy link
Contributor

jcar87 commented Aug 18, 2023

What is your suggestion?

At the moment it is super easy to recalculate a conanlock to update everything to the latest, and it's also easy to update a specific reference via:

Update everything to latest:

conan install . --lockfile="" --lockfile-out=conan.lock --update

Update a specific new version (where conan.lock was previously pinned to an earlier version)

conan lock add --requires=openssl/3.1.2
conan lock create . 

But if we want to update/change a specific reference to a specific version/revision that may not be the latest, it is not as easy and a user may have to get the list from conan list (or the website if this information is available), and manually edit the conan.lock file.

Have you read the CONTRIBUTING guide?

  • I've read the CONTRIBUTING guide
@jcar87
Copy link
Contributor Author

jcar87 commented Aug 18, 2023

Note:

  • consider a compact format for conan list , e.g --format compact where the references can be copy-pasted (to a conanfile.py, a conan upload, remove, etc) or a json output that is compatible with a conan lock

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants