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

fix: --version flag includes release version #149

Merged
merged 2 commits into from
Jun 20, 2024
Merged

Conversation

gammazero
Copy link
Contributor

@gammazero gammazero commented Jun 18, 2024

The tagged release version should match the contents of version.json, so embed the version.json file and add the release version from it to the output from --version.

Output:

> docker run --rm -it 3dc6e920ed8d --version
rainbow version v1.3.0 2024-06-18-7d805fd-dirty                               
rainbow version v1.3.0 2024-06-18-7d805fd-dirty

Fixes #145

The tagged release version should match the contents of version.json, so embed the version.json file and add the release version from it to the output from --version.

Fixes #145
@gammazero gammazero requested a review from lidel June 18, 2024 21:08
@lidel lidel changed the title The --version flag includes release version fix: --version flag includes release version Jun 20, 2024
Copy link
Member

@lidel lidel left a comment

Choose a reason for hiding this comment

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

Thanks! Much better and simpler that the things we did before.

@lidel lidel merged commit eccc6d5 into main Jun 20, 2024
15 checks passed
@lidel lidel deleted the fix/show-release-version branch June 20, 2024 00:14
lidel added a commit to ipfs/someguy that referenced this pull request Jun 21, 2024
lidel added a commit to ipfs/someguy that referenced this pull request Jun 21, 2024
lidel added a commit to ipfs/someguy that referenced this pull request Jun 24, 2024
lidel added a commit to ipfs/someguy that referenced this pull request Jun 24, 2024
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.

make --version return tagged version on release builds
2 participants