-
Notifications
You must be signed in to change notification settings - Fork 988
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] Creating a lockfile for a test package #8669
Comments
We're having same problem now. We create a lockfile from our main products |
Hi all, This has been solved in Conan 2.0, which much simplified and powerful lockfiles:
Please have a look at https://docs.conan.io/en/2.0/tutorial/consuming_packages/intro_to_versioning.html#lockfiles, and conan-io/tribe#34, testing and feedback very welcome! |
That sounds great. We'll make a temporary workaround and add it to the list of things we need to improve when we change to Conan 2.0 |
We have added explicit tests for this in 2.0:
Approach 1Incrementally capture the main lock and the test_package lock
Approach 2Apply lockfile partial without locking test_package
If want to strictly enforce lockfile in the main graph:
Approach 3Directly locking requires and test_package requires in a single
I think we can close this ticket as solve in 2.0, thanks! |
Hi all,
When building binary packages, we upload them to a private Artifactory server. To do so, we use lockfiles, fetch the build-order, and build/upload each package that requires building.
We have some packages where the test package has some requirements additional to the tested package. When using "conan test" we could pass "--build missing", but then we can't (easily) upload the packages that were built. So we'd like to use lockfiles with test packages as well, which seems to be supported by "conan test", according to its documentation (it has an input and output lockfile).
It seems that we can't just specify an output lockfile for the test package: we need an initial input lockfile. This raises the question: how do we create that lockfile? For regular packages we use "conan lock create", but using this for test packages the lockfile lacks the tested package (as its dependency on the tested package is implicit), which causes errors because the tested package isn't part of the lockfile.
Is there some way to create this lockfile for the test package?
Thanks in advance!
Best regards,
SpoofedEx
The text was updated successfully, but these errors were encountered: