mirror of
https://github.com/burrowers/garble.git
synced 2025-12-24 12:58:05 +08:00
make "garble version" include VCS information
When someone builds garble from a git clone,
the resulting binary used to not contain any information:
$ garble version
(devel)
Since Go 1.18, VCS information is stamped by default into binaries.
We now print it, alongside any other available build settings:
$ garble version
mvdan.cc/garble (devel)
Build settings:
-compiler gc
CGO_ENABLED 1
GOARCH amd64
GOOS linux
GOAMD64 v3
vcs git
vcs.revision 91ea246349
vcs.time 2022-03-18T13:45:11Z
vcs.modified true
Note that it's still possible for a garble build to contain no useful
version information, such as when built via "go build -buildvcs=false".
However, if a user opts into omitting the information, it's on them to
figure out what version of garble they actually built.
While here, bump test-gotip.
Fixes #491.
This commit is contained in:
2
.github/workflows/test.yml
vendored
2
.github/workflows/test.yml
vendored
@@ -72,7 +72,7 @@ jobs:
|
||||
steps:
|
||||
- name: Install Go
|
||||
env:
|
||||
GO_COMMIT: e475cf2e705d4eda8647426e060898ab3f643610 # 2022-03-14
|
||||
GO_COMMIT: 80a7504a13a5dccb60757d1fc66d71bcba359799 # 2022-03-25
|
||||
run: |
|
||||
cd $HOME
|
||||
mkdir $HOME/gotip
|
||||
|
||||
Reference in New Issue
Block a user