-
Notifications
You must be signed in to change notification settings - Fork 970
-
Notifications
You must be signed in to change notification settings - Fork 970
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
Dubious warnings about versions being overridden #5754
Comments
Hi, @sztomi . Can you provide a graph that reproduces this issue, please? I agree with you that we should get rid of those redundant messages. |
Sure - I'll post a repro case in a bit. |
@jgsogo - here is a repro case https://github.com/sztomi/dubious_warnings Please take a look at the ffmpeg conanfile - I think I found a different bug while I put this together. |
Thanks for the example, now I can reproduce the issue, it is somehow related to the |
Hi, @sztomi. I've spotted the issue: you are introducing several diamonds in your graph with the meta-package When you call using the I think we should reorder a couple of steps in the graph algorithm, I'll propose the change, let's see if it has any collateral effects. |
@jgsogo thanks
Hmm, so in other words, the problem is that we are requiring some "root" packages (ones that have no dependencies themselves) as well as others (leaves and stuff in-between)? |
With those meta packages you are creating diamonds in the graph, that's ok and Conan is prepared to deal with this situation. Using the graphlock in the last command of your example, the situation is as follows (just for the
We are getting a false negative, one solution would be to override the equal operation in order to evaluate |
Thank you for handling this quickly! |
Conan version: 1.18.2
Ubuntu 19.04
We have meta-packages that list a subset of all our packages, meant to be built with a set of our configurations (build profiles). In these meta-packages, we list some, but not all of the packages in the tree. In 1.18.2 we are getting lots of warnings about a version being overridden to the same version. I understand this is because these are redundant. However, there isn't a real version collision going on here. I think this warning should be reserved for cases when there is an actual collision. Otherwise it's difficult to dig out the real collisions.
In the following example,
nano
is one of the meta-packages I mentioned above.The text was updated successfully, but these errors were encountered: