Skip to content
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

Merged

Conversation

uilianries
Copy link
Member

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

Signed-off-by: Uilian Ries <uilianries@gmail.com>
@@ -36,7 +36,7 @@ They have this structure:
tools.build:jobs=2

[replace_requires]
zlib/1.2.123: zlib/*
zlib/1.2.123: zlib/[*]
Copy link
Member

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.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
zlib/1.2.123: zlib/[*]
zlib/1.2.12: zlib/[*]

Copy link
Member Author

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.

@@ -36,7 +36,7 @@ They have this structure:
tools.build:jobs=2

[replace_requires]
zlib/1.2.123: zlib/*
zlib/1.2.123: zlib/[*]
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
zlib/1.2.123: zlib/[*]
zlib/1.2.12: zlib/[*]

Co-authored-by: Rubén Rincón Blanco <git@rinconblanco.es>
@czoido czoido merged commit d831a9a into conan-io:release/2.4 Jun 10, 2024
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants