-
Notifications
You must be signed in to change notification settings - Fork 990
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] Should dependencies with visible=False
be visible in downstream lockfiles?
#14885
Comments
I have the same - or similar question: Looks like cannot even be fixed by using
|
Sorry this was not responded back then. Yes, the This was proposed and approved in conan-io/tribe#20. Retrieving just a conanfile.py is very fast, and having the graph fully computed always have tons of advantages, solving a lot of problems in 1.X, and with very reduced extra cost. |
Thanks for the update. I was merely asking as we deploy our Conan-built binaries (exe, dll, so, ...: Applications) as Conan packages. Those binaries will be re-used as tool dependency in other Conan projects. Unfortunately the If I want to get rid of those entries in |
Yes, the key reason why these are necessary in the lockfile is that even static library dependencies versions and revisions are critical to compute the So the only mechanism in which full isolation is possible would be to re-package the shared-libraries. This is not possible at the moment in Conan as built-in (it is relatively doable with some juggling, like install+deploy+export-pkg or the like), and we will be trying to implement it as built-in in #13171 if you want to track it. |
Thanks :) |
The "vendor" feature has been merged for next Conan 2.4 in #16073, I am closing this ticket as solved by it (visible=False is about visibility, not full vendoring and isolation, but the new feature will provide full isolation), if there are any questions, please create a new ticket, thanks! |
What is your question?
I'm creating a package that contains only an executable. Since it's a binary, I don't want it rebuilt every time downstream overrides some of its dependencies.
Therefore, I required the dependencies with
package_id_mode='unrelated_mode'
andvisible=False
.However, when I then run
conan lock create --tool-requires mypackage/<version>
, the generated lockfile still contains all dependencies.Is that supposed to happen or should the lockfile contain only
mypackage/<version>#hash
, without its dependencies, as they should not be visible?I'm using conan 2.0.13.
Have you read the CONTRIBUTING guide?
The text was updated successfully, but these errors were encountered: