Skip to content

Commit 83ad32c

Browse files
committed
Disable CGO in builds to avoid linking newest GLIBC
1 parent dcca225 commit 83ad32c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Taskfile.yml

+1-1
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)