Skip to content

Commit 4783533

Browse files
committed
Switch mechanism to ignore function SDK
- moves from setting an ignore flag in the Gopkg.toml to adding a .dockerignore to stop conflicting files being copied into the build package. This works and was tested with the faas-cli, but may cause issues in OpenFaaS Cloud. A follow-up item may be needed to get the --shrinkwrap (copy) behaviour to honour any .dockerignore files found and stop those files being put into ./build/<fn>/*. Signed-off-by: Alex Ellis (VMware) <[email protected]>
1 parent d3caa47 commit 4783533

File tree

4 files changed

+2
-33
lines changed

4 files changed

+2
-33
lines changed
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
function/vendor/github.com/openfaas-incubator/go-function-sdk

template/golang-http-armhf/Gopkg.toml

Lines changed: 0 additions & 26 deletions
This file was deleted.

template/golang-http/.dockerignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
function/vendor/github.com/openfaas-incubator/go-function-sdk

template/golang-http/function/Gopkg.toml

Lines changed: 0 additions & 7 deletions
This file was deleted.

0 commit comments

Comments
 (0)