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

go.mod changes: less replace #1751

Merged
merged 2 commits into from
Dec 19, 2019
Merged

Conversation

vdemeester
Copy link
Member

@vdemeester vdemeester commented Dec 16, 2019

Changes

This PR removes as much replace as possible as they won't "transpire" in modules depending on tektoncd/pipeline. I think replace should be used as last resort (a bit like [[override]] was to be used using dep). There is two commits in there:

  • go.mod: remove replace on tektoncd/plumbing
  • go.mod: remove replace for kubernetes

For kubernetes, putting kubernetes in replace means we don't tell
dependency which version we are depending too, which could lead with
compilation failure (as they would get higher version).

For plumbing, this allows to do a go get -u github.com/tektoncd/plumbing and actually depending on what was updated.

NB: we need to had a check on the vendor folder, to make sure the vendor folder is in sync with the go.mod.

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.

@googlebot googlebot added the cla: yes Trying to make the CLA bot happy with ppl from different companies work on one commit label Dec 16, 2019
@tekton-robot tekton-robot added the size/XXL Denotes a PR that changes 1000+ lines, ignoring generated files. label Dec 16, 2019
@vdemeester
Copy link
Member Author

/cc @wlynch

)

// Local overrides for testing. Remove before submitting.
Copy link
Member Author

Choose a reason for hiding this comment

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

@wlynch we forgot to remove before merging 😅

@tekton-robot tekton-robot added size/L Denotes a PR that changes 100-499 lines, ignoring generated files. and removed size/XXL Denotes a PR that changes 1000+ lines, ignoring generated files. labels Dec 16, 2019
@vdemeester
Copy link
Member Author

ok nevermind, the replace for kubernetes deps seem necessary… because we have an import on k8s.io/kubernetes that.. has v0.0.0… oh my.. I don't like go.mod + kubernetes already 😅

At least we now it needs to be replaced…

Signed-off-by: Vincent Demeester <[email protected]>
@ghost
Copy link

ghost commented Dec 16, 2019

/lgtm

@tekton-robot tekton-robot assigned ghost Dec 16, 2019
@tekton-robot tekton-robot added the lgtm Indicates that a PR is ready to be merged. label Dec 16, 2019
Copy link
Contributor

@piyush-garg piyush-garg left a comment

Choose a reason for hiding this comment

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

/lgtm

@chmouel
Copy link
Member

chmouel commented Dec 19, 2019

/lgtm

Thanks 👍🏼🔥

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.

Thanks for this.
I did not really dig into the issues that force us to replace the k8s deps, but the the plumbing changes sounds good.
/approve

@tekton-robot
Copy link
Collaborator

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: afrittoli, piyush-garg

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 Dec 19, 2019
@tekton-robot tekton-robot merged commit aa4d9c0 into tektoncd:master Dec 19, 2019
@vdemeester vdemeester deleted the go-mod-clean branch December 19, 2019 12:36
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/L Denotes a PR that changes 100-499 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants