Skip to content
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

Update go.mod comment with the correct k8s version 😈 #1834

Merged
merged 1 commit into from
Jan 10, 2020

Conversation

vdemeester
Copy link
Member

@vdemeester vdemeester commented Jan 9, 2020

Changes

This is one of the downside of go modules, it replace the branch name
to a git magic thingy, making it impossible to know which branch you
were tracking initially.

The comment was saying 1.12.9, but it is 1.13.4 (k8s deps got bump
before switching to go modules and the comment was never updated).

Signed-off-by: Vincent Demeester [email protected]

/cc @wlynch @bobcatfish @a-roberts

Submitter Checklist

These are the criteria that every PR should meet, please check them off as you
review them:

See the contribution guide for more details.

Double check this list of stuff that's easy to miss:

Reviewer Notes

If API changes are included, additive changes must be approved by at least two OWNERS and backwards incompatible changes must be approved by more than 50% of the OWNERS, and they must first be added in a backwards compatible way.

This is one of the downside of go modules, it replace the branch name
to a git magic thingy, making it impossible to know which branch you
were tracking initially.

The comment was saying 1.12.9, but it is 1.13.4 (k8s deps got bump
before switching to go modules and the comment was never updated).

Signed-off-by: Vincent Demeester <[email protected]>
@googlebot googlebot added the cla: yes Trying to make the CLA bot happy with ppl from different companies work on one commit label Jan 9, 2020
@tekton-robot tekton-robot added the size/XS Denotes a PR that changes 0-9 lines, ignoring generated files. label Jan 9, 2020
Copy link
Member

@a-roberts a-roberts left a comment

Choose a reason for hiding this comment

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

Yeah definitely looks to be 1.13, so we see https://github.com/kubernetes/apimachinery/commits/01f8b7d1121a gets mentioned and that went into 1.13, this must have been pretty tedious to figure out (could we do something better to make it easier in future?!)

Otherwise lgtm 😸

@vdemeester
Copy link
Member Author

Yeah definitely looks to be 1.13, so we see https://github.com/kubernetes/apimachinery/commits/01f8b7d1121a gets mentioned and that went into 1.13, this must have been pretty tedious to figure out (could we do something better to make it easier in future?!)

Actually, I didn't really try to figure it out… I look at the git history to see the latest k8s bump. But on "updating" the k8s dependencies in go modules, the way to go would be to update the replace part of the go.mod with the branch name:

replace (
	k8s.io/api => k8s.io/api kubernetes-1.13.4
	k8s.io/apiextensions-apiserver => k8s.io/apiextensions-apiserver kubernetes-1.13.4
	k8s.io/apimachinery => k8s.io/apimachinery kubernetes-1.13.4
	// [ …] for the rest too…
)

and then run go build -v ./... && go mod tidy && go mod vendor... go will replace those branch name with the git magic thingy… and this is something I really dislike but…

@chmouel
Copy link
Member

chmouel commented Jan 10, 2020

/lgtm
/approve

Thanks 👍🏼🔥

@tekton-robot tekton-robot added the lgtm Indicates that a PR is ready to be merged. label Jan 10, 2020
Copy link
Member

@afrittoli afrittoli left a comment

Choose a reason for hiding this comment

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

Nice, thank you!
/approve

@tekton-robot
Copy link
Collaborator

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: afrittoli, chmouel

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

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@tekton-robot tekton-robot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Jan 10, 2020
@tekton-robot tekton-robot merged commit 2826423 into tektoncd:master Jan 10, 2020
@vdemeester vdemeester deleted the sad-go-mod-again branch January 10, 2020 11:14
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. cla: yes Trying to make the CLA bot happy with ppl from different companies work on one commit lgtm Indicates that a PR is ready to be merged. size/XS Denotes a PR that changes 0-9 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants