Skip to content

Commit 94d5c72

Browse files
authored
Merge pull request #285 from arduino/disable-cgo
Disable CGO in builds to avoid linking newest GLIBC
2 parents dcca225 + 83ad32c commit 94d5c72

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Taskfile.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ tasks:
6767
desc: Build the Go code
6868
dir: "{{.DEFAULT_GO_MODULE_PATH}}"
6969
cmds:
70-
- go build -v -o libraries-repository-engine{{exeExt}} {{.LDFLAGS}}
70+
- CGO_ENABLED=0 go build -v -o libraries-repository-engine{{exeExt}} {{.LDFLAGS}}
7171

7272
# Source: https://github.com/arduino/tooling-project-assets/blob/main/workflow-templates/assets/test-go-task/Taskfile.yml
7373
go:test:

0 commit comments

Comments
 (0)