-
Notifications
You must be signed in to change notification settings - Fork 259
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
Enhancement: add osversion.Build() utility #569
Conversation
osversion/osversion.go
Outdated
@@ -46,6 +46,12 @@ func Get() OSVersion { | |||
return osv | |||
} | |||
|
|||
// Build gets the build-number on Windows | |||
// The calling application must be manifested to get the correct version information. | |||
func Build() uint16 { |
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.
FWIW; I was in doubt wether to name this Build()
or BuildNumber()
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.
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.
LGTM
@thaJeztah Needs a rebase |
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
b4714cb
to
92cb5b6
Compare
rebased 👍 |
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.
LGTM
full diff: microsoft/hcsshim@672e52e...2226e08 - microsoft/hcsshim#569 Enhancement: add osversion.Build() utility - relates to moby/moby#39100 Use Microsoft/hcsshim constants and deprecate pkg/system.GetOsVersion() Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
full diff: microsoft/hcsshim@672e52e...2226e08 - microsoft/hcsshim#569 Enhancement: add osversion.Build() utility - relates to moby/moby#39100 Use Microsoft/hcsshim constants and deprecate pkg/system.GetOsVersion() Signed-off-by: Sebastiaan van Stijn <github@gone.nl> Upstream-commit: 5e4c7eba448246e90f88c0d319a45a62b2e62c33 Component: cli
@jhowardmsft ptal