-
Notifications
You must be signed in to change notification settings - Fork 4.9k
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
Build: add -dev suffix for minikube version on master build #4479
Comments
@medyagh I would like to take this up. |
It is normally called "dev" in these contexts, not snapshot. Probably a good feature would be to add the git commit ? Compare:
|
I like that format you pasted ! yes that would be great. |
Yeah, I would probably use So this innocent feature has some implications on the release process... The first is that you should still be able to build from git. That is, just because I build from The second is that you should be able to not build from git. That is, there should be some way to override the information posted - what if you download the tarball and don't even have Maybe we can start with adding a second line with the commit, and take it from there ? $ minikube version
minikube version: v1.1.1
commit: ef60a69700170ace1b20b286cd6fd8d3e8d13277 There's already things in that little minimal output, to make people confused...
So I think we should start with something small (commit), and take it from there ? ¯_(ツ)_/¯ I personally like "git describe": But everything is "possible", even JSON (hello, kubectl)... $ minikube kubectl version
Client Version: version.Info{Major:"1", Minor:"14", GitVersion:"v1.14.3", GitCommit:"5e53fd6bc17c0dec8434817e69b04a25d8ae0ff0", GitTreeState:"clean", BuildDate:"2019-06-06T01:44:30Z", GoVersion:"go1.12.5", Compiler:"gc", Platform:"linux/amd64"} |
@afbjorklund cool, I will create a PR accordingly to display version in the format you mentioned above to get started with. |
Issue : kubernetes#4479. Now git commit id will be displayed in minukube version command output
One additional feature compared to what is described above was the addition of This means that there are local changes to the tracked files, compared to the git commit. Compare git-describe: $ git checkout master
$ git describe --dirty
v1.1.1-97-g247efde
$ echo >> README.md
$ git describe --dirty
v1.1.1-97-g247efde-dirty Similar to But unlike a patch file or something that describes which files, it just records it being "dirty". |
Issue : kubernetes#4479. Now git commit id will be displayed in minukube version command output
Closed by #4548 please reopen if needed. |
Feature request:
currently when we build minikube, the binary
out/minikube version
would return the latest versionit would be nice if it lets you know this is a built of master HEAD, maybe have a suffix 1.1.1-snapshot
The text was updated successfully, but these errors were encountered: