Skip to content

explore version range patterns#18012

Merged
czoido merged 2 commits intoconan-io:develop2from
memsharded:feature/version_range_patterns
Mar 28, 2025
Merged

explore version range patterns#18012
czoido merged 2 commits intoconan-io:develop2from
memsharded:feature/version_range_patterns

Conversation

@memsharded
Copy link
Member

@memsharded memsharded commented Mar 24, 2025

Changelog: Feature: Add version-ranges patterns defined with [1.2.3.4.*] with the * at the end of the string.
Docs: conan-io/docs#4040

Close #18010

['*', [[[">=", "0.0.0-"]]], ["1.0", "a.b"], []],
['', [[[">=", "0.0.0-"]]], ["1.0", "a.b"], []],
# Patterns
['1.2.3.*', [[["*", "1.2.3."]]], ["1.2.3.1"], ["1.2.4"]],
Copy link
Member

Choose a reason for hiding this comment

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

What about 1.2.3 itself? I'd expect it to be a matching version, but looks like the startswith above will return False

@czoido czoido marked this pull request as ready for review March 28, 2025 09:49
@czoido czoido merged commit 8e1f78f into conan-io:develop2 Mar 28, 2025
15 checks passed
@memsharded memsharded deleted the feature/version_range_patterns branch March 28, 2025 09:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[suggestion] Wildcards in version range

3 participants