Skip to content

Conversation

sttts
Copy link
Contributor

@sttts sttts commented Mar 21, 2019

This removes godeps support and adds generation of go.mod+sum. No vendor/ is generated anymore.

In parallel, there is a godeps branch forked off before this PR. We will keep running a second instance for all pre-1.15 versions.

@k8s-ci-robot k8s-ci-robot added do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. size/L Denotes a PR that changes 100-499 lines, ignoring generated files. approved Indicates a PR has been approved by an approver from all required OWNERS files. labels Mar 21, 2019
@k8s-ci-robot k8s-ci-robot requested review from mfojtik and nikhita March 21, 2019 15:12
@k8s-ci-robot k8s-ci-robot added size/XL Denotes a PR that changes 500-999 lines, ignoring generated files. and removed size/L Denotes a PR that changes 100-499 lines, ignoring generated files. labels Mar 21, 2019
@sttts sttts force-pushed the sttts-go-mod branch 3 times, most recently from 7800347 to 0faf320 Compare March 22, 2019 15:05
@sttts sttts force-pushed the sttts-go-mod branch 4 times, most recently from 463a29a to 5bdc8a5 Compare April 1, 2019 15:33
go mod download

local pseudo_version=$(gomod-pseudo-version)
local cache_dir="${GOPATH}/pkg/mod/cache/download/${base_package}/${dep}/@v"
Copy link
Member

Choose a reason for hiding this comment

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

I'd be hesitant to modify the modcache directory with our own "fake published" module versions. Would it be possible to do something like this instead:

  1. run go mod download on k/k to fetch all non-staging dependencies into the module cache
  2. copy content of ${GOPATH}/pkg/mod/cache/download to /some/goproxy/dir
  3. fake publish modules to /some/goproxy/dir/${base_package}/${dep}/@v
  4. run module operations with GOPROXY=file:///some/goproxy/dir

@sttts sttts force-pushed the sttts-go-mod branch 2 times, most recently from 734c97e to 165e3e7 Compare April 1, 2019 18:25
@sttts sttts force-pushed the sttts-go-mod branch 3 times, most recently from aaed6dd to dab0e92 Compare April 2, 2019 20:18
@sttts sttts changed the title WIP: go-mod support go-mod support Apr 3, 2019
@k8s-ci-robot k8s-ci-robot removed the do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. label Apr 3, 2019
@sttts
Copy link
Contributor Author

sttts commented Apr 3, 2019

/hold

until kubernetes/kubernetes#74877 merges.

@k8s-ci-robot k8s-ci-robot added the do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. label Apr 3, 2019
@liggitt
Copy link
Member

liggitt commented Apr 3, 2019

/lgtm

@k8s-ci-robot k8s-ci-robot added the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Apr 3, 2019
@k8s-ci-robot k8s-ci-robot removed the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Apr 3, 2019
@liggitt
Copy link
Member

liggitt commented Apr 3, 2019

/lgtm

@k8s-ci-robot k8s-ci-robot added the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Apr 3, 2019
@k8s-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: liggitt, sttts

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

@sttts
Copy link
Contributor Author

sttts commented Apr 3, 2019

/hold cancel

@k8s-ci-robot k8s-ci-robot removed the do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. label Apr 3, 2019
@k8s-ci-robot k8s-ci-robot merged commit 79a5b2a into kubernetes:master Apr 3, 2019
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. cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. lgtm "Looks good to me", indicates that a PR is ready to be merged. size/XL Denotes a PR that changes 500-999 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants