From 83ad32c1fb439f690f313efe037ac2a33914d752 Mon Sep 17 00:00:00 2001 From: Cristian Maglie Date: Thu, 12 Dec 2024 16:06:44 +0100 Subject: [PATCH] Disable CGO in builds to avoid linking newest GLIBC --- Taskfile.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Taskfile.yml b/Taskfile.yml index 16c56e1c..b921c974 100644 --- a/Taskfile.yml +++ b/Taskfile.yml @@ -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 go:test: