-
Notifications
You must be signed in to change notification settings - Fork 254
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
Add a function to call conan lock create
#319
Conversation
Hi @prince-chrismc, |
I am using the base lockfile workflow. conan-io/docs#1904 I build many different configuration so, I only have a base lockfile to make sure all the revisions are pinned and easily managed. In order for this to be usable with the install command, I need to create a full lock for that profile/settings/options Here's the implementation I am using as a proof of concept https://github.com/prince-chrismc/user-management/blob/master/backend/cmake/conan-setup.cmake |
Hi @prince-chrismc, |
This change looks great and I'm looking forward to using it. I've one question though. Assuming both
Is this the expected behavior? It would be really nice if the build actually fails in this case and requires the developer to manually update the base lock file to pin all the dependencies. I couldn't find a command line option to do that though. Directly using Any suggestions on how to handle this scenario? Edit: I ended up implementing the following solution.
I would be happy to contribute this change upstream if it is deemed useful. |
@czoido I resolved some merge conflicts. it would be great to merge this 🙏 |
🚀 |
@dgoel The point you mentioned is worth keeping in mind. But the change you mention is not part of this PR, right? If not, was it PRed in some other way? |
This thread was quite outdated, referring to the legacy |
Follow up of #294
The new workflow is really good 👏 The only challenge was the base-lockfile workflow is not supported. So I modified the new
conan_cmake_install
to enable this feature.