-
Notifications
You must be signed in to change notification settings - Fork 461
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
Set version based on git tags. #339
Set version based on git tags. #339
Conversation
pkg/version/version.go
Outdated
package version | ||
|
||
// Version holds the complete version number. Filled in at linking time. | ||
var Version = "1.11.0+unknown" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do we need to keep updating this Version
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That's how containerd does it. We can keep this as a simple unknown
string. :)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This looks like a placeholder so I just wondered what we're going to do with it
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'll change this to unknown
.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done.
/lgtm |
Signed-off-by: Lantao Liu <[email protected]>
60ed6e6
to
01e710e
Compare
New changes are detected. LGTM label has been removed. |
Apply LGTM based on #339 (comment) |
LGTM. |
Cherrypick #339 to release-1.11.
@Random-Liu does |
yep, @ncdc would you like make a PR for that? |
Sure, I can do it today
…On Wed, Aug 8, 2018 at 10:15 PM Pengfei Ni ***@***.***> wrote:
yep, @ncdc <https://github.com/ncdc> would you like make a PR for that?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#339 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AAABYhoqZ4swJXfeqc2CXjOELKi88vWzks5uO5sxgaJpZM4VL6h4>
.
|
PR is #367 |
I want to release a 1.11.1 from
release/1.11
. However, I don't know whether I should only update the version number inrelease/1.11
or update bothrelease/1.11
and master.If we only update
release/1.11
, master will still stay at1.11.0
.But if we update both, master isn't actually at
1.11.1
.This PR changes to use
git tags
instead, which contains commit number for non-tag commits.@yujuhong @feiskyer
Signed-off-by: Lantao Liu [email protected]