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

Ensure that string(::VersionSpec) is compatible with semver_spec() #3580

Merged
merged 1 commit into from
Aug 28, 2023

Conversation

staticfloat
Copy link
Member

It is an unfortunate coincidence that if you try to print out a VersionSpec to a project's compat field, it can be in a format that semver_spec() rejects due to the ambiguity of 1.2.0-1.4.0 being either a prerelease with a very strange prerelease tag, or a range of versions. We reduce the ambiguity by changing VersionSpec to always print its bounds with a separating space.

It is an unfortunate coincidence that if you try to print out a
`VersionSpec` to a project's `compat` field, it can be in a format that
`semver_spec()` rejects due to the ambiguity of `1.2.0-1.4.0` being
either a prerelease with a very strange prerelease tag, or a range of
versions.  We reduce the ambiguity by changing `VersionSpec` to always
print its bounds with a separating space.
@KristofferC KristofferC merged commit 5e07cfe into master Aug 28, 2023
12 of 13 checks passed
@KristofferC KristofferC deleted the sf/consistent_version_spec branch August 28, 2023 13:58
bors bot added a commit to JuliaRegistries/RegistryCI.jl that referenced this pull request Oct 16, 2023
514: Registry consistency tests: before doing certain equality comparisons, add whitespace before and after hyphens r=DilumAluthge a=DilumAluthge

This is necessary due to JuliaLang/Pkg.jl#3580, which made it onto Julia master in JuliaLang/julia#51186.

Co-authored-by: Dilum Aluthge <[email protected]>
bors bot added a commit to JuliaRegistries/RegistryCI.jl that referenced this pull request Oct 16, 2023
514: Registry consistency tests: before doing certain equality comparisons, add whitespace before and after hyphens r=DilumAluthge a=DilumAluthge

This is necessary due to JuliaLang/Pkg.jl#3580, which made it onto Julia master in JuliaLang/julia#51186.

Co-authored-by: Dilum Aluthge <[email protected]>
bors bot added a commit to JuliaRegistries/RegistryCI.jl that referenced this pull request Oct 16, 2023
514: Registry consistency tests: before doing certain equality comparisons, add whitespace before and after hyphens r=DilumAluthge a=DilumAluthge

This is necessary due to JuliaLang/Pkg.jl#3580, which made it onto Julia master in JuliaLang/julia#51186.

Co-authored-by: Dilum Aluthge <[email protected]>
bors bot added a commit to JuliaRegistries/RegistryCI.jl that referenced this pull request Oct 16, 2023
514: Registry consistency tests: before doing certain equality comparisons, add whitespace before and after hyphens r=DilumAluthge a=DilumAluthge

This is necessary due to JuliaLang/Pkg.jl#3580, which made it onto Julia master in JuliaLang/julia#51186.

Co-authored-by: Dilum Aluthge <[email protected]>
bors bot added a commit to JuliaRegistries/RegistryCI.jl that referenced this pull request Oct 16, 2023
514: Registry consistency tests: before doing certain equality comparisons, add whitespace before and after hyphens r=DilumAluthge a=DilumAluthge

This is necessary due to JuliaLang/Pkg.jl#3580, which made it onto Julia master in JuliaLang/julia#51186.

Co-authored-by: Dilum Aluthge <[email protected]>
bors bot added a commit to JuliaRegistries/RegistryCI.jl that referenced this pull request Oct 16, 2023
514: Registry consistency tests: before doing certain equality comparisons, add whitespace before and after hyphens r=DilumAluthge a=DilumAluthge

This is necessary due to JuliaLang/Pkg.jl#3580, which made it onto Julia master in JuliaLang/julia#51186.

Co-authored-by: Dilum Aluthge <[email protected]>
bors bot added a commit to JuliaRegistries/RegistryCI.jl that referenced this pull request Oct 16, 2023
514: Registry consistency tests: before doing certain equality comparisons, add whitespace before and after hyphens r=DilumAluthge a=DilumAluthge

This is necessary due to JuliaLang/Pkg.jl#3580, which made it onto Julia master in JuliaLang/julia#51186.

Co-authored-by: Dilum Aluthge <[email protected]>
bors bot added a commit to JuliaRegistries/RegistryCI.jl that referenced this pull request Oct 19, 2023
514: Registry consistency tests: before doing certain equality comparisons, add whitespace before and after hyphens r=DilumAluthge a=DilumAluthge

This is necessary due to JuliaLang/Pkg.jl#3580, which made it onto Julia master in JuliaLang/julia#51186.

Co-authored-by: Dilum Aluthge <[email protected]>
bors bot added a commit to JuliaRegistries/RegistryCI.jl that referenced this pull request Oct 19, 2023
514: Registry consistency tests: before doing certain equality comparisons, add whitespace before and after hyphens r=DilumAluthge a=DilumAluthge

This is necessary due to JuliaLang/Pkg.jl#3580, which made it onto Julia master in JuliaLang/julia#51186.

Co-authored-by: Dilum Aluthge <[email protected]>
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.

2 participants