You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Fix vendoring for golang-http
Tested with a private Go module which was vendored, setting
GO111MODULE: off in build_args in stack.yml
I also created a nested package called pkg and referenced it
as "handler/function/pkg" from handler.go which worked as
expected.
Closes: #78
Signed-off-by: Alex Ellis (OpenFaaS Ltd) <alexellis2@gmail.com>
Switch to io from ioutil to read body
Tested with local docker build, also enables Go modules as a
default for golang-http, which was missing but meant to be
enabled via #63Fixes#67
Signed-off-by: Alex Ellis (OpenFaaS Ltd) <alexellis2@gmail.com>
Handle case when function is not a module
**What**
- Add check and skip when the funciton folder is not a module
Signed-off-by: Lucas Roesler <roesler.lucas@gmail.com>
Move to using templates-sdk repo for http function
The HTTP function now makes use of a dedicated repository
for SDK resources in the openfaas org.
Signed-off-by: Alex Ellis (OpenFaaS Ltd) <alexellis2@gmail.com>