-
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
[bug] Wrong context applied to build_requires when using lockfiles #11171
Comments
Hi @vectorsli please try to add the Note, however, that it might fail with error: I would also recommend, if you haven't yet, to have a look to the 2.0 proposal for lockfiles, which are already available in the released 2.0-alpha.6: conan-io/tribe#34 |
@memsharded If I understand this correctly, after determining the lockfile I'll use to build the package I have to also check the context and then apply the correct flag? If the flag is required since Just for reference, I created the lockfile using this command:
I tried your suggestion with
So this is again a very special case since both I'll have a look at the lockfiles 2.0 |
But that information is returned by the
This is weird. I didn't report it, but on my side, when I am reproducing, I am actually getting 2 instances of m4 in the graph:
I am trying to think what could be the difference in your case, but I am struggling to find a reason... |
This referred to old Conan 1.X lockfiles. Lockfiles have been fully revamped in Conan 2.0, I am closing this ticket as outdated, please create new tickets referring to the new lockfiles for any further question or issue. Thanks! |
The
bison
package has abuild_requires
dependency onflex
. When trying to use lockfiles to build the required packages in the correct order I get mismatch between package-id and locked package-id (see log below).As you can see from the lockfile, the
flex
package is marked to be in thebuild
context (x86_64). But when trying to build the dependency using this lockfile, for some reason thehost
context is applied when calculating the package-id (see theconan info
log below).Environment Details (include every applicable attribute)
Steps to reproduce (Include if Applicable)
Use the following lockfile:
Logs (Executed commands with output) (Include/Attach if Applicable)
Output of
conan info
:Expected package-id:
The text was updated successfully, but these errors were encountered: