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

Reverted to published language RE build metadata #182

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

damianpowell
Copy link

"Build metadata SHOULD be ignored" instead of "Build metadata MUST be
ignored".

"Build metadata SHOULD be ignored" instead of "Build metadata MUST be
ignored".
@haacked
Copy link
Contributor

haacked commented Feb 13, 2014

Should we increment the number to 2.0.1 in both places? Or is this just a clarification of the 2.0.0 intent? Anyone have thoughts?

Added a sentence to specify that an all-digits pre-release identifier
with a leading zero is not a valid alphabetic identifier. Nor is it,
according to the existing documentation, a valid numeric identifier.
@damianpowell
Copy link
Author

Changing from "MUST" back to "SHOULD" (e62c5f2) is actually a net change of nothing, when compared to the published version on semver.org, so I wouldn't consider that a patch change.
(How meta is this discussion?!)
However, for the clarification that I added (d11a146) I would suggest that's a minor bug fix so, yes, 2.0.1.

@haacked
Copy link
Contributor

haacked commented Feb 13, 2014

Ack, I'm confused. Why are we changing this? I thought we were going to change semver.org to match semver.md here.

@haacked
Copy link
Contributor

haacked commented Feb 13, 2014

I think MUST is the right word here.

@damianpowell
Copy link
Author

I'm sorry if I've confused you!

The markdown document claims to be SemVer 2.0.0 but it is inconsistent with the published document at SemVer.org. Therefore, given that it is a deviation from the published interface, it MUST be version 3. That's why I reverted back to "SHOULD" in order to maintain compatability with the existing, published interface. Since this is a change back, no increment is required.

The clarification about treating "0123" being an invalid alphanumeric identifier was ambiguous in the published document but it matches up with the (unpublished) BNF you pulled a while ago. Therefore, I think it can safely be considered a bug fix, hence 2.0.1

As for submitting a change on SemVer.org rather than here, the document itself points to https://github.com/mojombo/semver/issues. Is this not the right place, then?

@haacked
Copy link
Contributor

haacked commented Feb 13, 2014

Ah, the document here is the work in progress one.

The one on Semver.org is 2.0.0 and corresponds to this commit: https://github.com/mojombo/semver/blob/7c834b3f3a4940d77ab593bc32583004d6a426a9/semver.md

We probably need to update this one to as the in-progress 2.0.1 immediately to avoid confusion.

@haacked
Copy link
Contributor

haacked commented Feb 13, 2014

Did that make sense? So no PR to semver.org is necessary yet. We're still working on an update to 2.0.0 that we'll tentatively call 2.0.1 unless we introduce a breaking change or a "new feature".

@haacked
Copy link
Contributor

haacked commented Feb 13, 2014

I'm sorry if I've confused you!

Not your fault. I'm doing 10 things at once and I thought I was on semver.org when I read this PR. Sorry for the confusion on my part!

@damianpowell
Copy link
Author

Sorry to keep on, but I'm not convinced you're right.

If you don't change the wording of section 10 back to "SHOULD" then you already have a breaking change in the next version of the spec which will require the version to become 3.0.0 rather than 2.0.1.

Also, the other thing is a genuine bug because it's an ambiguity in the spec. I'll leave it with you though.

@haacked
Copy link
Contributor

haacked commented Feb 13, 2014

Sometimes following SemVer is a pain. Even when you are semver. Ok, perhaps it should be 3.0.0

@andrerom
Copy link

Some implementations are following the SHOULD and actually provide sorting possibilities based on meta data (I guess if they follow a given pattern) to cover certain uses cases. So it must be changed back to SHOULD for now, and might be worth asking for use cases among misc package managers and similar software for inclusion in version 3.0.

@HansOlsson
Copy link

Above it seems to be assumed that SemVer itself should follow SemVer restricting the ways of resolving this ticket.
I agree that it might be good, but it is nowhere stated as far as I can see; so we could just use another version number for now #274 (possibly with pre-release identifier).

If SemVer had followed SemVer the existence of more than one version of 2.0.0 would mean that it would seem it is forever non-compliant and reverting the changes wouldn't help, see - #229

As for the specifics of meta-data in precedence http://semver.org/ item 11 states precedence MUST only be determined by specific data excluding meta-data, and item 10 states that meta-data SHOULD be ignored. Thus any tool that uses meta-data in comparison is not correct according to item 11 - regardless of the contents of item 10.

Copy link
Contributor

@jwdonahue jwdonahue left a comment

Choose a reason for hiding this comment

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

This would be a non-breaking change w.r.t. semver.org, and reverts an earlier breaking change w.r.t. semver/semver/semver.md. @haacked, please accept this change at your earliest possible convenience.

@alexandrtovmach alexandrtovmach added the spelling/grammar Grammar changes without affect to specification rules itself label Jun 10, 2020
@alexandrtovmach
Copy link
Member

Closing & re-opening to trigger CI

@alexandrtovmach alexandrtovmach added extend Brand new ideas/rules to add to the specification RFC Request for comments state for next version labels Jun 19, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
extend Brand new ideas/rules to add to the specification RFC Request for comments state for next version spelling/grammar Grammar changes without affect to specification rules itself
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

7 participants