Skip to content

Commit

Permalink
update oci builder to respect FUNC_GO
Browse files Browse the repository at this point in the history
  • Loading branch information
lkingland committed Apr 24, 2024
1 parent 49f74b4 commit 9f28399
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions pkg/oci/containerize_go.go
Original file line number Diff line number Diff line change
Expand Up @@ -102,8 +102,13 @@ func goBuildCmd(p v1.Platform, cfg *buildConfig) (gobin string, args []string, o
* Either replace or append to gobin
*/

// Use the binary specified FUNC_GO_PATH if defined
gobin = os.Getenv("FUNC_GO_PATH") // TODO: move to main and plumb through
// FIXME: the FUNC_GO environment variable should be
// pulled out into "cmd", and this setting plumbed through
// either as an argument or context variable accessed here, rather
// than accessing the environment variables directly from within a
// library. This is temporary for purposes of the E2E update and
// will be completed in a separate issue. Issue #TBD
gobin = os.Getenv("FUNC_GO")
if gobin == "" {
gobin = "go"
}
Expand Down

0 comments on commit 9f28399

Please sign in to comment.