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 --version flag #105

Merged

Conversation

shuheiktgw
Copy link
Collaborator

@shuheiktgw shuheiktgw commented Nov 11, 2022

Closes #101.

@@ -15,6 +15,8 @@ builds:
- arm64
- arm
- 386
ldflags:
- -s -w -X go.mercari.io/yo/cmd.version={{.Version}}
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Default is -s -w -X main.version={{.Version}} -X main.commit={{.Commit}} -X main.date={{.Date}} -X main.builtBy=goreleaser.

https://goreleaser.com/customization/build/

@shuheiktgw shuheiktgw marked this pull request as ready for review November 11, 2022 00:08
@kazegusuri kazegusuri merged commit 6499e10 into cloudspannerecosystem:master Nov 11, 2022
@shuheiktgw shuheiktgw deleted the support_version_flag branch November 12, 2022 03:36
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.

Suggestion to add -version option
2 participants