Skip to content

Don't add git hash to version if minor==0#409

Merged
abrown merged 1 commit into
WebAssembly:mainfrom
alexcrichton:fix-version-with-zero-minor
Apr 15, 2024
Merged

Don't add git hash to version if minor==0#409
abrown merged 1 commit into
WebAssembly:mainfrom
alexcrichton:fix-version-with-zero-minor

Conversation

@alexcrichton
Copy link
Copy Markdown
Collaborator

This commit fixes a minor mistake from #392 where the previous perl script had a special case that if the "minor" version was zero then the git hash information wouldn't be printed.

This commit fixes a minor mistake from WebAssembly#392 where the previous perl
script had a special case that if the "minor" version was zero then the
git hash information wouldn't be printed.
Copy link
Copy Markdown
Collaborator

@abrown abrown left a comment

Choose a reason for hiding this comment

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

Thanks for the fix! I should mention here for posterity, since I currently have this paged in: what I called "minor" here is actually not well-named, since I believe what git describe drops into this spot is actually "number of commits since last tag." I guess we'll run into issues if we ever decide to do an actual minor release like wasi-sdk-x.y; for now at least this will emulate what we have been doing.

@abrown abrown merged commit 99abb02 into WebAssembly:main Apr 15, 2024
@alexcrichton alexcrichton deleted the fix-version-with-zero-minor branch July 31, 2024 14:59
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