Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.Sign up
cmd/go: consider including Go's own version in 'go env' #41116
I wonder if we could add it to go env, similar to other "not really an env var" lines like
It would not include the string prefix
I'm not making this a proposal for now, since the idea seems pretty simple.
On our last golang-tools call, @bcmills, @jayconrod, and @heschik raised a good point. The version reported by
At the time of writing, if one runs Go 1.15.2, one could imagine:
That seems simple enough. In the case of a stable release, they'll always share the first two semver components. However, it gets more interesting for devel builds. For example, with my current master build, as per
We could bikeshed about the names, but it seems clear to me that both versions are useful to have, and they're clearly different.