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

Remove necessary ignore for Gopkg files #914

Merged
merged 1 commit into from
Sep 26, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 0 additions & 2 deletions examples/golang/Gopkg.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@

ignored = ["github.com/kubeless/kubeless/pkg/functions"]

[[constraint]]
name = "github.com/sirupsen/logrus"
branch = "master"
4 changes: 4 additions & 0 deletions pkg/langruntime/langruntime.go
Original file line number Diff line number Diff line change
Expand Up @@ -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/<<FUNCTION>>/%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/ && " +
Expand Down