feat: Add buildinfo package to embed version (#840)

This also resolves build time and commit hash using the
Go 1.18 debug/buildinfo package. An external URL is outputted
on running version as well to easily route the caller to a
release or commit.
This commit is contained in:
Kyle Carberry
2022-04-05 01:35:03 +00:00
committed by GitHub
parent d4e26ff8c2
commit 5ae71f0958
6 changed files with 137 additions and 3 deletions
+1 -1
View File
@@ -237,7 +237,7 @@ require (
github.com/zclconf/go-cty v1.10.0 // indirect
github.com/zeebo/errs v1.2.2 // indirect
go.opencensus.io v0.23.0 // indirect
golang.org/x/mod v0.5.1 // indirect
golang.org/x/mod v0.5.1
golang.org/x/net v0.0.0-20220325170049-de3da57026de // indirect
golang.org/x/term v0.0.0-20210927222741-03fcf44c2211
golang.org/x/text v0.3.7 // indirect