Skip to content

Commit de75bf4

Browse files
authored
Fix compilation of workflows on any machine. (#18960)
1 parent fafbccc commit de75bf4

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

system-tests/lib/cre/workflow/compile.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ func CompileWorkflow(workflowFilePath, workflowName string) (string, error) {
3434
buffer := bytes.Buffer{}
3535
compileCmd := exec.Command("go", "build", "-o", workflowWasmPath, filepath.Base(workflowFilePath)) // #nosec G204 -- we control the value of the cmd so the lint/sec error is a false positive
3636
compileCmd.Dir = filepath.Dir(workflowFilePath)
37-
compileCmd.Env = append(os.Environ(), "GOOS=wasip1", "GOARCH=wasm")
37+
compileCmd.Env = append(os.Environ(), "CGO_ENABLED=0", "GOOS=wasip1", "GOARCH=wasm")
3838
compileCmd.Stdout = &buffer
3939
compileCmd.Stderr = &buffer
4040
if err := compileCmd.Run(); err != nil {

0 commit comments

Comments
 (0)