diff --git a/examples/golang/Gopkg.toml b/examples/golang/Gopkg.toml index 016f1d598..48bc46e41 100644 --- a/examples/golang/Gopkg.toml +++ b/examples/golang/Gopkg.toml @@ -1,6 +1,4 @@ -ignored = ["github.com/kubeless/kubeless/pkg/functions"] - [[constraint]] name = "github.com/sirupsen/logrus" branch = "master" diff --git a/pkg/langruntime/langruntime.go b/pkg/langruntime/langruntime.go index 3e9e013e6..a288b636f 100644 --- a/pkg/langruntime/langruntime.go +++ b/pkg/langruntime/langruntime.go @@ -336,7 +336,11 @@ func (l *Langruntimes) GetCompilationContainer(runtime, funcName string, install switch { case strings.Contains(runtime, "go"): command = fmt.Sprintf( + // Replace FUNCTION placeholder "sed 's/<>/%s/g' $GOPATH/src/controller/kubeless.tpl.go > $GOPATH/src/controller/kubeless.go && "+ + // Remove vendored version of kubeless if exists + "rm -rf $GOPATH/src/kubeless/vendor/github.com/kubeless/kubeless && "+ + // Build command "go build -o %s/server $GOPATH/src/controller/kubeless.go > /dev/termination-log 2>&1", funcName, installVolume.MountPath) case strings.Contains(runtime, "java"): command = "cp -r /usr/src/myapp/* /kubeless/ && " +