Skip to content
This repository was archived by the owner on Dec 15, 2021. It is now read-only.

Commit ef80223

Browse files
authored
Remove necessary ignore for Gopkg files (#914)
1 parent 2581ccb commit ef80223

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

examples/golang/Gopkg.toml

-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
11

2-
ignored = ["github.com/kubeless/kubeless/pkg/functions"]
3-
42
[[constraint]]
53
name = "github.com/sirupsen/logrus"
64
branch = "master"

pkg/langruntime/langruntime.go

+4
Original file line numberDiff line numberDiff line change
@@ -336,7 +336,11 @@ func (l *Langruntimes) GetCompilationContainer(runtime, funcName string, install
336336
switch {
337337
case strings.Contains(runtime, "go"):
338338
command = fmt.Sprintf(
339+
// Replace FUNCTION placeholder
339340
"sed 's/<<FUNCTION>>/%s/g' $GOPATH/src/controller/kubeless.tpl.go > $GOPATH/src/controller/kubeless.go && "+
341+
// Remove vendored version of kubeless if exists
342+
"rm -rf $GOPATH/src/kubeless/vendor/github.com/kubeless/kubeless && "+
343+
// Build command
340344
"go build -o %s/server $GOPATH/src/controller/kubeless.go > /dev/termination-log 2>&1", funcName, installVolume.MountPath)
341345
case strings.Contains(runtime, "java"):
342346
command = "cp -r /usr/src/myapp/* /kubeless/ && " +

0 commit comments

Comments
 (0)