Skip to content

command: default to toolchain version#491

Merged
mislav merged 2 commits intocli:masterfrom
urandom2:version
Feb 18, 2020
Merged

command: default to toolchain version#491
mislav merged 2 commits intocli:masterfrom
urandom2:version

Conversation

@urandom2
Copy link
Copy Markdown
Contributor

Since the Go toolchain is able to extract the module version at build
time, we should use that as a default instead of DEV. This means
customers installing via go-get will get the correct version.

Unfortunately, the toolchain does not store when the build occurs, so
BuildTime now defaults to the empty string. It is still set if build
officially, just not for go-get.

Since the Go toolchain is able to extract the module version at build
time, we should use that as a default instead of DEV. This means
customers installing via go-get will get the correct version.

Unfortunately, the toolchain does not store when the build occurs, so
BuildTime now defaults to the empty string. It is still set if build
officially, just not for go-get.
@urandom2 urandom2 requested a review from mislav February 18, 2020 07:56
Copy link
Copy Markdown
Contributor

@mislav mislav left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you! TIL runtime/debug 🎉

I've pushed a change that makes it possible for us to set the Version var again via Makefile.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants