1
0
mirror of https://github.com/go-task/task.git synced 2025-05-31 23:19:42 +02:00

Taskfile: Set CGO_ENABLED=0 globally

We want that also for running tests, and not only for building it.
This commit is contained in:
Andrey Nering 2021-03-07 09:30:33 -03:00
parent f923bb499b
commit f0cd7d27fb

View File

@ -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