Skip to content

Commit

Permalink
force CGO_ENABLED=0
Browse files Browse the repository at this point in the history
Signed-off-by: Pablo Chacin <[email protected]>
  • Loading branch information
pablochacin committed Sep 25, 2024
1 parent 8c930cd commit 2ee9eb3
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions pkg/local/local.go
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,12 @@ func NewBuildService(ctx context.Context, config BuildServiceConfig) (k6build.Bu
return nil, fmt.Errorf("getting catalog %w", err)
}

// disable CGO_ENABLED until https://github.com/grafana/k6build/issues/37 is fixed
if config.BuildEnv == nil {
config.BuildEnv = make(map[string]string)
}
config.BuildEnv["CGO_ENABLED"] = "0"

builderOpts := k6foundry.NativeBuilderOpts{
GoOpts: k6foundry.GoOpts{
Env: config.BuildEnv,
Expand Down

0 comments on commit 2ee9eb3

Please sign in to comment.