Skip to content

Commit

Permalink
Disable CGO in builds to avoid linking newest GLIBC
Browse files Browse the repository at this point in the history
  • Loading branch information
cmaglie committed Dec 12, 2024
1 parent dcca225 commit 83ad32c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Taskfile.yml
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ tasks:
desc: Build the Go code
dir: "{{.DEFAULT_GO_MODULE_PATH}}"
cmds:
- go build -v -o libraries-repository-engine{{exeExt}} {{.LDFLAGS}}
- CGO_ENABLED=0 go build -v -o libraries-repository-engine{{exeExt}} {{.LDFLAGS}}

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

Check warning on line 72 in Taskfile.yml

View workflow job for this annotation

GitHub Actions / Generate problem matcher output

72:121 [line-length] line too long (123 > 120 characters)

Check warning on line 72 in Taskfile.yml

View workflow job for this annotation

GitHub Actions / Generate problem matcher output

72:121 [line-length] line too long (123 > 120 characters)
go:test:
Expand Down

0 comments on commit 83ad32c

Please sign in to comment.