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

Commit

Permalink
Remove necessary ignore for Gopkg files (#914)
Browse files Browse the repository at this point in the history
  • Loading branch information
andresmgot authored Sep 26, 2018
1 parent 2581ccb commit ef80223
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
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

0 comments on commit ef80223

Please sign in to comment.