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] What is the expected behavior of conan install --remote REMOTE
#9333
Comments
conan install --remote REMOTE
conan install --remote REMOTE
Hi @joeced Could you please try to provide more complete details how to reproduce? Does it happen when you try that from a clean cache? For example, if I try, with 2 remotes:
then I see no trace at all from the bintray remote in my traces. One possibility is that you had something previously installed from the bintray remote. In some cases, Conan will be trying to use the remote it downloaded things in the first place, but I am not sure this should be one of those cases, lets try to reproduce this behavior. Also, please, very important: The conan version you are running (plus details on the platform and Python version can sometimes help, but the conan version is very important) |
Thanks for the elaborate answer. My use-case is slightly different. I have a Given a
and the command
I always get two calls to bintray in the trace log:
The
However, if I try a similar approach with
and
I'm not seeing any call to our local Artifactory server. |
Uhmm, I think this could be due to revisions. When you do have revisions enabled, and one package binary is not found in one repository, it might be looked for in other repositories (for exactly the same recipe revision). Let's try to reproduce this (though the bad news is that changing this might be quite breaking for other users, lets see...) |
Thanks for the swift response. We have |
Reproduced the behavior and checking in this PR #9355, if it can be changed and considered a bug, we better make sure that this change is not breaking other users that depend on this behavior. |
PR #9355 was merged, so this bug will be fixed and released in next 1.40 |
I'm trying to understand the expected behavior of
conan install --remote REMOTE
. We have a local Artifactory server for our own packages, but still haveconan-center
as a remote, even though it is not really used.Output of
conan remote list
:Whether or not I call
conan install --remote virtual-remote
or justconan install
, I always get these "extra" calls in the trace log.Is this to be expected and is there any way to avoid it (besides deleting the remote?)
Versions:
Python 3.9.5 (tags/v3.9.5:0a7dcbd, May 3 2021, 17:27:52) [MSC v.1928 64 bit (AMD64)] on win32
Conan version 1.37.1
Edit: added Python and Conan version
The text was updated successfully, but these errors were encountered: