-
Notifications
You must be signed in to change notification settings - Fork 989
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
[feat] Send HTTP GET header with settings when looking for a 'package_reference' #8046
[feat] Send HTTP GET header with settings when looking for a 'package_reference' #8046
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good
@@ -107,9 +110,9 @@ def _evaluate_remote_pkg(self, node, pref, remote, remotes): | |||
# If the "remote" came from the registry but the user didn't specified the -r, with | |||
# revisions iterate all remotes | |||
if not remote or (not remote_info and self._cache.config.revisions_enabled): | |||
for r in remotes.values(): | |||
for r in remotes.values(): # FIXME: Here we hit the same remote we did before |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
good catch
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please make sure that it won't break different servers like Artifactory, Bintray, etc.
I've tried a local Artifactory in docker, my Bintray account, and a cloud Artifactory (staging environment for ConanCenter). |
…_reference' (conan-io#8046) * pass settings to the remote_manager * basic implementation * add tests * add comments * call function from test requires argument * add parameter to None * list options too in headers too * handle info variable with care * get the value from the one assigned by the test environment * add default argument
Changelog: Feature: Add headers with settings and options to HTTP GET requests when searching for packages.
Docs: Omit
closes #7870
Conan sends a request header
Conan-PkgID-Settings
when looking for apref
in the remotes:if using revisions, it is sent when looking for the latest package revision, URL like:
if not using revisions, it is in the downloads_url:
These are the headers, do we want this information in a single header? do we want to use different names?
#REVISIONS: 1