We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
The version command is outdated. Goreleaser supports setting the version by using this code:
package main import "fmt" var ( version = "dev" commit = "none" date = "unknown" ) func main() { fmt.Printf("my app %s, commit %s, built at %s", version, commit, date) }
The dedicated version command is not needed, as Cobra has a Version attribute for the root command that can be used for this.
Version
The text was updated successfully, but these errors were encountered:
On hold due to #43
Sorry, something went wrong.
mrusme
No branches or pull requests
The version command is outdated. Goreleaser supports setting the version by using this code:
The dedicated version command is not needed, as Cobra has a
Version
attribute for the root command that can be used for this.The text was updated successfully, but these errors were encountered: