Skip to content

Add pkg/version #29

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

Merged
merged 1 commit into from
Dec 18, 2017
Merged

Add pkg/version #29

merged 1 commit into from
Dec 18, 2017

Conversation

dmage
Copy link
Contributor

@dmage dmage commented Dec 14, 2017

/assign @bparees
Resolves #26

@openshift-ci-robot openshift-ci-robot added size/M Denotes a PR that changes 30-99 lines, ignoring generated files. approved Indicates a PR has been approved by an approver from all required OWNERS files. labels Dec 14, 2017
@bparees
Copy link
Contributor

bparees commented Dec 14, 2017

lgtm but is our build process actually populating those fields?


var (
// commitFromGit is a constant representing the source version that
// generated this build. It should be set during build via -ldflags.
Copy link
Contributor

Choose a reason for hiding this comment

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

that is, is -ldflags being set in our build process?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yes,

ldflags+=($(os::build::ldflag "${OS_GO_PACKAGE}/pkg/version.majorFromGit" "${OS_GIT_MAJOR}"))
ldflags+=($(os::build::ldflag "${OS_GO_PACKAGE}/pkg/version.minorFromGit" "${OS_GIT_MINOR}"))
ldflags+=($(os::build::ldflag "${OS_GO_PACKAGE}/pkg/version.versionFromGit" "${OS_GIT_VERSION}"))
ldflags+=($(os::build::ldflag "${OS_GO_PACKAGE}/pkg/version.commitFromGit" "${OS_GIT_COMMIT}"))
ldflags+=($(os::build::ldflag "${OS_GO_PACKAGE}/pkg/version.buildDate" "${buildDate}"))

Copy link
Contributor

Choose a reason for hiding this comment

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

cool, thanks.

@bparees
Copy link
Contributor

bparees commented Dec 14, 2017

/retest

@bparees
Copy link
Contributor

bparees commented Dec 14, 2017

/lgtm

@openshift-ci-robot openshift-ci-robot added the lgtm Indicates that a PR is ready to be merged. label Dec 14, 2017
@openshift-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: bparees, dmage

The full list of commands accepted by this bot can be found here.

Needs approval from an approver in each of these OWNERS Files:

You can indicate your approval by writing /approve in a comment
You can cancel your approval by writing /approve cancel in a comment

@dmage
Copy link
Contributor Author

dmage commented Dec 14, 2017

@bparees looks like the extended test is broken.

@bparees
Copy link
Contributor

bparees commented Dec 14, 2017

@bparees looks like the extended test is broken.

or flaked anyway. are you looking into it?

@dmage
Copy link
Contributor Author

dmage commented Dec 14, 2017

issue for extended tests: openshift/origin#17786

@dmage
Copy link
Contributor Author

dmage commented Dec 18, 2017

/retest

@openshift-merge-robot openshift-merge-robot merged commit 5eb6853 into openshift:master Dec 18, 2017
@dmage dmage deleted the version branch January 29, 2018 14:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files. lgtm Indicates that a PR is ready to be merged. size/M Denotes a PR that changes 30-99 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants