You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
As suggested in gordonklaus/ineffassign#53 (comment) we can use runtime.DebugInfo to get the version when installing via go install. This avoids the confusion of #8691. We should check our official builds to avoid breaking the version on non-go install binaries (in the worst case, we can check which of the two we are in)
The text was updated successfully, but these errors were encountered:
With this change, running `builder version` on binaries installed with
`go install` will output the version specified at the suffix.
If it's under development, the following output will be obtained.
```
$ GO111MODULE=on CGO_ENABLED=0 go run . version
ocb version (devel)
```
**Link to tracking Issue:** #8770
---------
Co-authored-by: Bogdan Drutu <[email protected]>
As suggested in gordonklaus/ineffassign#53 (comment) we can use
runtime.DebugInfo
to get the version when installing viago install
. This avoids the confusion of #8691. We should check our official builds to avoid breaking the version on non-go install
binaries (in the worst case, we can check which of the two we are in)The text was updated successfully, but these errors were encountered: