-
Notifications
You must be signed in to change notification settings - Fork 90
go-mod support #169
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 support #169
Conversation
7800347
to
0faf320
Compare
463a29a
to
5bdc8a5
Compare
go mod download | ||
|
||
local pseudo_version=$(gomod-pseudo-version) | ||
local cache_dir="${GOPATH}/pkg/mod/cache/download/${base_package}/${dep}/@v" |
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.
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:
- run
go mod download
on k/k to fetch all non-staging dependencies into the module cache - copy content of
${GOPATH}/pkg/mod/cache/download
to/some/goproxy/dir
- fake publish modules to
/some/goproxy/dir/${base_package}/${dep}/@v
- run module operations with
GOPROXY=file:///some/goproxy/dir
734c97e
to
165e3e7
Compare
aaed6dd
to
dab0e92
Compare
/hold until kubernetes/kubernetes#74877 merges. |
/lgtm |
/lgtm |
[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 |
/hold cancel |
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.