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

Use "go clean" to clean modules #233

Merged
merged 1 commit into from May 25, 2020

Conversation

amorenoz
Copy link
Contributor

Files downloaded by 'go mod' are not writable (removable).

Use the recommended way of cleaning modules [1]

[1] golang/go#27161 (comment)

Fixes #232
Signed-off-by: Adrian Moreno amorenoz@redhat.com

Files downloaded by 'go mod' are not writable (removable).

Use the recommended way of cleaning modules [1]

[1] golang/go#27161 (comment)

Signed-off-by: Adrian Moreno <amorenoz@redhat.com>
@zshi-redhat
Copy link
Collaborator

This PR works for me.

One additional comment (for discussion) is after switching to go mod, make will download modules when GO111MODULE is on which is time-consuming and not necessary as we have local vendor pkgs up to date. Should we disable it in Makefile for regular build and only enable it when running deps-update?

@ahalimx86 ahalimx86 merged commit 4c3e645 into k8snetworkplumbingwg:master May 25, 2020
@ahalimx86
Copy link
Collaborator

@zshi-redhat Sorry, just noticed your last comment here now. Let's review the behavior and discuss proper steps here. I think it's important. Right now, make doesn't update modules with GO111MODULE=on unless I clean the module cache with make clean beforehand. I'm on go version go1.13.8

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

make clean fails: rm: cannot remove ... Permission denied
3 participants