Skip to content

Commit

Permalink
fix: Go buildpack
Browse files Browse the repository at this point in the history
* test: updates to match latest func

* fix: Go buildpack
  • Loading branch information
matejvasek authored Nov 23, 2021
1 parent 530a806 commit 36a5500
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 4 additions & 0 deletions buildpacks/go/bin/build
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,10 @@ layers_dir="$1"
# INJECT INVOCATION SCAFFOLDING (main)
cp -r $bp_dir/faas $build_dir/faas
mkdir -p $build_dir/bin

echo " Fetching framework dependencies"
go get function/faas

go build -o $build_dir/bin/faas $build_dir/faas

# PLACE COMPILED BINARY IN APP LAYER FOR LAUNCH
Expand Down
4 changes: 2 additions & 2 deletions test/test_builders.go
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ func runTests(ctx context.Context, version string) error {
}
templates := []string{
"http",
"events",
"cloudevents",
}

oldWD, err := os.Getwd()
Expand Down Expand Up @@ -209,7 +209,7 @@ func runTest(ctx context.Context, packCmd, funcBinary, builderImage, lifecycleIm
err := runCmd(
funcBinary,
"create", fnName,
"--runtime", runtime,
"--language", runtime,
"--template", template,
"--verbose")
if err != nil {
Expand Down

0 comments on commit 36a5500

Please sign in to comment.