-
Notifications
You must be signed in to change notification settings - Fork 18k
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
proposal: cmd/go: add go version --short
#72867
Comments
I think this is like #55136, if you need to script something, then you'll already have the necessary processing tools. |
go version --short
I have to pass a build tag to $ go build -tag shrinkpkg$(go version --short) ... Do you have a solution (that all main os and terminal apps can run)? The prior issue linked is not relevant and RSC says it was likely declined because he wanted a use-case. |
|
go version --short
go version --short
Currently,
It would be nice if
Not every operating system or terminal app has consistent utility applications to extract it like this:
https://stackoverflow.com/questions/59820549/how-to-extract-only-version-from-go-version-command-using-sed-or-other-bash-co
The text was updated successfully, but these errors were encountered: