mirror of
https://github.com/go-task/task.git
synced 2025-06-02 23:27:37 +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:
parent
f923bb499b
commit
f0cd7d27fb
@ -12,6 +12,9 @@ vars:
|
|||||||
GO_PACKAGES:
|
GO_PACKAGES:
|
||||||
sh: go list ./...
|
sh: go list ./...
|
||||||
|
|
||||||
|
env:
|
||||||
|
CGO_ENABLED: '0'
|
||||||
|
|
||||||
tasks:
|
tasks:
|
||||||
default:
|
default:
|
||||||
cmds:
|
cmds:
|
||||||
@ -21,8 +24,6 @@ tasks:
|
|||||||
desc: Installs Task
|
desc: Installs Task
|
||||||
cmds:
|
cmds:
|
||||||
- go install -v -ldflags="-w -s -X main.version={{.GIT_COMMIT}}" ./cmd/task
|
- go install -v -ldflags="-w -s -X main.version={{.GIT_COMMIT}}" ./cmd/task
|
||||||
env:
|
|
||||||
CGO_ENABLED: '0'
|
|
||||||
|
|
||||||
mod:
|
mod:
|
||||||
desc: Downloads and tidy Go modules
|
desc: Downloads and tidy Go modules
|
||||||
|
Loading…
x
Reference in New Issue
Block a user