Remove duplication around Go modules settings#2580
Remove duplication around Go modules settings#2580dgageot merged 1 commit intoGoogleContainerTools:masterfrom
Conversation
Signed-off-by: David Gageot <david@gageot.net>
Codecov Report
|
|
|
||
| # Force using Go Modules and always read the dependencies from | ||
| # the `vendor` folder. | ||
| export GO111MODULE = on |
There was a problem hiding this comment.
This might cause issues if you are compiling another go project in the same terminal. will defer it to @nkubala if he had it this way for specific reason.
There was a problem hiding this comment.
No. The variable will be set only for the Makefile.
Also, with linux, a process can't change the env variables of a parent -> The makefile can't change the env variables of the terminal.
There was a problem hiding this comment.
I think it should be fine, but worst case scenario you can always just unset the variable if you're gonna build something else in that terminal. also this would only be an issue for go versions 1.11 and older.
|
|
||
| # Force using Go Modules and always read the dependencies from | ||
| # the `vendor` folder. | ||
| export GO111MODULE = on |
There was a problem hiding this comment.
I think it should be fine, but worst case scenario you can always just unset the variable if you're gonna build something else in that terminal. also this would only be an issue for go versions 1.11 and older.
Signed-off-by: David Gageot david@gageot.net