You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
The proposal at https://go.dev/issue/50603 has been approved, so Go will at some point start producing module pseudo-versions even if the main module was built from a VCS clone. To not wait until a future release like Go 1.20, implement that ourselves with the help of module.PseudoVersion. The result is a friendlier version output; what used to be $ go install && garble version mvdan.cc/garble (devel) Build settings: [...] will now look like $ go install && garble version mvdan.cc/garble v0.0.0-20220505210747-22e3d30216be Build settings: [...] Note that we don't use VCS tags in any way, so the prefix is hard-coded as v0.0.0. That seems fine for development builds, and Go doesn't embed VCS tag information in binaries anyway. Finally, note that we start printing the module sum, as it's redundant. The VCS commit hash, at least in git, should be unique enough. |
3 years ago | |
---|---|---|
.. | ||
bench | 4 years ago | |
mod | 4 years ago | |
scripts | 3 years ago |