Skip to content

Add support for version prefixes in NewVersion and related methods#3

Merged
Oliver Karstoft (OrKarstoft) merged 1 commit into
BESTSELLER:masterfrom
ssagarverma:sv/minor-patch
Mar 29, 2026
Merged

Add support for version prefixes in NewVersion and related methods#3
Oliver Karstoft (OrKarstoft) merged 1 commit into
BESTSELLER:masterfrom
ssagarverma:sv/minor-patch

Conversation

@ssagarverma
Copy link
Copy Markdown

Description

  • It would make sense to have prefix as one of the attributes of version as the information may get lost when operations like Compare, GreaterThan, etc. strip the prefix to compare versions.
  • Added more context in readme to guide the users on this new feature.
  • Added some more prefix related unit tests which demonstrate what output to expect.

Related Issue

hashicorp#79

How Has This Been Tested?

go test ./...

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Well done. Thanks for the help!

@OrKarstoft Oliver Karstoft (OrKarstoft) merged commit d69b930 into BESTSELLER:master Mar 29, 2026
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