-
Notifications
You must be signed in to change notification settings - Fork 365
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
Fix replace requires for zlib in profile #3765
Fix replace requires for zlib in profile #3765
Conversation
Signed-off-by: Uilian Ries <uilianries@gmail.com>
reference/config_files/profiles.rst
Outdated
@@ -36,7 +36,7 @@ They have this structure: | |||
tools.build:jobs=2 | |||
|
|||
[replace_requires] | |||
zlib/1.2.123: zlib/* | |||
zlib/1.2.123: zlib/[*] |
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.
The previous syntax is supported, and it means to replace the existing version with the same version, as a place holder, but needs to be something like zlib/*: zlib-ng/*
, which is different than replacing something by a version range.
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.
zlib/1.2.123: zlib/[*] | |
zlib/1.2.12: zlib/[*] |
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.
The previous syntax is supported, and it means to replace the existing version with the same version, as a place holder, but needs to be something like zlib/: zlib-ng/
Yes, but zlib/*: zlib-ng/*
is documented already in https://docs.conan.io/2/reference/config_files/profiles.html#replace-requires. Nice to know, thank you.
reference/config_files/profiles.rst
Outdated
@@ -36,7 +36,7 @@ They have this structure: | |||
tools.build:jobs=2 | |||
|
|||
[replace_requires] | |||
zlib/1.2.123: zlib/* | |||
zlib/1.2.123: zlib/[*] |
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.
zlib/1.2.123: zlib/[*] | |
zlib/1.2.12: zlib/[*] |
Co-authored-by: Rubén Rincón Blanco <git@rinconblanco.es>
The actual replace-requires usage in the profile shows
zlib/1.2.123: zlib/*
, which does not work. My guess is "replace zlib/1.2.123 by latest version available", but then we need to use[*]
instead.Related to the PR #3495
/cc @RubenRBS