-
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
[bug] export-pkg tries to install binaries #13320
Comments
Hi @RazielXYZ This is the reason this was introduced: # It is necessary to install binaries, in case there are build_requires necessary to export
# But they should be local, if this was built here
conan_api.install.install_binaries(deps_graph=deps_graph, remotes=None)
source_folder = os.path.dirname(path) There were users reporting that they were using Indeed the solution seems doing a |
That makes sense; however, could it make sense for the install to use the configured remotes on the machine? |
Yes, I think the resolution of the remotes could be added. Still, it would make the export-pkg slower than expected, but at least it would work. Let me think a bit about this use case... |
I am proposing this #13324:
A bit preliminary, will request feedback from the team. |
Those both sound great to me, looking forward to see how it goes! |
#13324 merged for next 2.0.2, thanks for the feedback! |
Environment details
Steps to reproduce
Attempting to conan export-pkg a header-only lib that lists non-header-only libs as requirements causes conan 2.0 to attempt to install binaries of the requirements for the given profile. In conan 1.0 no binaries would be installed. This means that packaging header-only libs that declare a requirement of a non-header only lib require not just a valid profile, but one that binaries of those requirements are available for.
Furthermore, if the binaries are not available in the local cache, export-pkg will still fail with a
Package not resolved: No remote defined
error, even when a remote with the package and binaries is actually in the conan remotes on that machine. Currently the only workaround I've found is to manually conan install the requirements prior to export-pkg.@prince-chrismc also mentioned that I should tag him, so, there we go!
Logs
The text was updated successfully, but these errors were encountered: