From f0cd7d27fbd58122fbc7d17815414843b41631c0 Mon Sep 17 00:00:00 2001 From: Andrey Nering Date: Sun, 7 Mar 2021 09:30:33 -0300 Subject: [PATCH] Taskfile: Set CGO_ENABLED=0 globally We want that also for running tests, and not only for building it. --- Taskfile.yml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Taskfile.yml b/Taskfile.yml index 1d4dafb0..913878e0 100644 --- a/Taskfile.yml +++ b/Taskfile.yml @@ -12,6 +12,9 @@ vars: GO_PACKAGES: sh: go list ./... +env: + CGO_ENABLED: '0' + tasks: default: cmds: @@ -21,8 +24,6 @@ tasks: desc: Installs Task cmds: - go install -v -ldflags="-w -s -X main.version={{.GIT_COMMIT}}" ./cmd/task - env: - CGO_ENABLED: '0' mod: desc: Downloads and tidy Go modules