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

Support Original to return original version #40

Merged
merged 1 commit into from
Jul 16, 2018
Merged

Support Original to return original version #40

merged 1 commit into from
Jul 16, 2018

Conversation

mitchellh
Copy link
Contributor

Fixes #16, #27

This keeps track of the original version that was parsed and makes it
available as v.Original. Additionally, I updated the String docs to
note that the returned value is canonicalized according to some set of
rules.

Fixes #16, #27

This keeps track of the original version that was parsed and makes it
available as `v.Original`. Additionally, I updated the String docs to
note that the returned value is canonicalized according to some set of
rules.
@mitchellh mitchellh requested a review from apparentlymart July 15, 2018 04:41
@mitchellh mitchellh merged commit 270f2f7 into master Jul 16, 2018
@mitchellh mitchellh deleted the f-raw branch July 16, 2018 21:50
thaJeztah added a commit to thaJeztah/cli that referenced this pull request Oct 24, 2019
full diff: hashicorp/go-version@23480c0...v1.2.0

includes:

- hashicorp/go-version#53 Implement GreaterThanOrEqual + LessThanOrEqual
- hashicorp/go-version#45 Add new constructor that strictly adheres to semver specs
- hashicorp/go-version#40 Support Original to return original version
    - fixes hashicorp/go-version#16 Store and allow retrieval of the string of the version in its original form
    - fixes hashicorp/go-version#27 Support for zero padded numbers (e.g. `17.03.0-ce`)
- hashicorp/go-version#41 Segments64 makes a copy to match Segments
- hashicorp/go-version#38 When using a specific pattern, unintended results are returned

Signed-off-by: Sebastiaan van Stijn <[email protected]>
docker-jenkins pushed a commit to docker-archive/docker-ce that referenced this pull request Oct 29, 2019
full diff: hashicorp/go-version@23480c0...v1.2.0

includes:

- hashicorp/go-version#53 Implement GreaterThanOrEqual + LessThanOrEqual
- hashicorp/go-version#45 Add new constructor that strictly adheres to semver specs
- hashicorp/go-version#40 Support Original to return original version
    - fixes hashicorp/go-version#16 Store and allow retrieval of the string of the version in its original form
    - fixes hashicorp/go-version#27 Support for zero padded numbers (e.g. `17.03.0-ce`)
- hashicorp/go-version#41 Segments64 makes a copy to match Segments
- hashicorp/go-version#38 When using a specific pattern, unintended results are returned

Signed-off-by: Sebastiaan van Stijn <[email protected]>
Upstream-commit: 87cf5b606a07607b03b311085d5b66a0944ec53c
Component: cli
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