-
Notifications
You must be signed in to change notification settings - Fork 994
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
[question] lockfile validation #17590
Comments
Hi @jsallay Thanks for your question. I am afraid that there is no other way than just evaluating it with It stops at the first "not-locked" requirement, because continuing to report others could easily produce false positives or false negatives. Because if it continues to evaluate the graph instead of stopping (in the same way a So it seemed that trying to gather a full set of "not-locked" dependencies wouldn't be accurate and could be more confusing than helpful. As long as the lockfile is not complete and do not lock all the necessary requirements, does it really matter that it stops and raise an error with that dependency only? What would be the utility of seeing more (potentially not fully correct) not locked dependencies? |
I understand where you are coming from and agree that you can easily end up with unhelpful results. I recently updated a few versions in a conanfile and forgot to update the lock file. It had been a few days and I didn't remember what exactly I had changed. Normally I would just create a new lock file in this case, but I wanted to try just updating the specific items. I ran Is there a better solution in this case? Should I just run |
We are trying to provide in #17577 a new If the |
That does sound like it would solve my problem. I'll close this issue and wait for that to be ready. Thanks. |
Great, let us know if you have any feedback once |
What is your question?
Is there a good/correct way to see if a lockfile is valid for a given conanfile and what all of the problems are? If I update dependencies in my conanfile then I need to run either
conan lock create .
orconan lock update --requires dep/version
. If I forget to update and run a command likeconan graph info .
, it tells me the first dependency that it finds that isn't in the lockfile but not all of them.I am thinking of something like
conan graph info .
showing me what binaries are missing but for lockfile entries.Have you read the CONTRIBUTING guide?
The text was updated successfully, but these errors were encountered: