-
Notifications
You must be signed in to change notification settings - Fork 57
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
default go module to on #63
Conversation
/assign @alexellis |
README.md
Outdated
@@ -27,8 +27,8 @@ The two templates are equivalent with `golang-http` using a structured request/r | |||
|
|||
You can manage dependencies in one of the following ways: | |||
|
|||
* To use Go modules without vendoring, add `--build-arg GO111MODULE=on` to `faas-cli up`, you can also use `--build-arg GOPROXY=https://` if you want to use your own mirror for the modules | |||
* You can also Go modules with vendoring, run `go mod vendor` in your function folder and add `--build-arg GO111MODULE=on` to `faas-cli up` | |||
* To use Go modules without vendoring, go module is enabled by default, you can also use `--build-arg GOPROXY=https://` if you want to use your own mirror for the modules |
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.
Can you bring those messages back and use them to say how to turn it off?
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.
sure, will update tomorrow my morning
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.
Looking good. Just one comment
Signed-off-by: Carlos Panato <[email protected]>
made the requested change, ptal |
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
Tested with local docker build, also enables Go modules as a default for golang-http, which was missing but meant to be enabled via #63 Fixes #67 Signed-off-by: Alex Ellis (OpenFaaS Ltd) <[email protected]>
Tested with local docker build, also enables Go modules as a default for golang-http, which was missing but meant to be enabled via #63 Fixes #67 Signed-off-by: Alex Ellis (OpenFaaS Ltd) <[email protected]>
Description
default golang template to always download go module
How Has This Been Tested?
How are existing users impacted? What migration steps/scripts do we need?
Building with no
build arg
andgo modules
should beon
:Building with no
build arg --build-arg GO111MODULE=off
andgo modules
should beoff
and use the vendor:I have:
git commit -s
Fixes #62