-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Remove duplication around Go modules settings #2580
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
Remove duplication around Go modules settings #2580
Conversation
Signed-off-by: David Gageot <[email protected]>
Codecov Report
|
@@ -39,6 +38,11 @@ ifeq "$(strip $(VERSION))" "" | |||
override VERSION = $(shell git describe --always --tags --dirty) | |||
endif | |||
|
|||
# Force using Go Modules and always read the dependencies from | |||
# the `vendor` folder. | |||
export GO111MODULE = on |
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.
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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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.
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.
LGTM! Defer it to @nkubala for approval.
@@ -39,6 +38,11 @@ ifeq "$(strip $(VERSION))" "" | |||
override VERSION = $(shell git describe --always --tags --dirty) | |||
endif | |||
|
|||
# Force using Go Modules and always read the dependencies from | |||
# the `vendor` folder. | |||
export GO111MODULE = on |
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 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 [email protected]