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
cmd/go: go install does not provide vcs.revision buildinfo #65904
Comments
I believe this is working as intended? |
Do I get it right that
|
Binary installed via `go install github.com/zalando/skipper/cmd/skipper@latest` does not contain `vcs.revision`, see golang/go#65904 Followup on #2954 Signed-off-by: Alexander Yastrebov <alexander.yastrebov@zalando.de>
go build:
go install pkg@version:
|
@seankhliao Thank you for the prompt response and clarification. |
Binary installed via `go install github.com/zalando/skipper/cmd/skipper@latest` does not contain `vcs.revision`, see golang/go#65904 Followup on #2954 Signed-off-by: Alexander Yastrebov <alexander.yastrebov@zalando.de>
Go version
go version go1.22.0 linux/amd64
Output of
go env
in your module/workspace:What did you do?
Added a snippet to read vcs.revision setting from
debug.ReadBuildInfo()
zalando/skipper#2954
and installed the binary:
What did you see happen?
version output contains proper version (
info.Main.Version
) but empty commit (vcs.revision
)What did you expect to see?
non-empty commit zalando/skipper@8c03dfb
The text was updated successfully, but these errors were encountered: