Skip to content

Commit f0cd7d2

Browse files
committed
Taskfile: Set CGO_ENABLED=0 globally
We want that also for running tests, and not only for building it.
1 parent f923bb4 commit f0cd7d2

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

Taskfile.yml

+3-2
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,9 @@ vars:
1212
GO_PACKAGES:
1313
sh: go list ./...
1414

15+
env:
16+
CGO_ENABLED: '0'
17+
1518
tasks:
1619
default:
1720
cmds:
@@ -21,8 +24,6 @@ tasks:
2124
desc: Installs Task
2225
cmds:
2326
- go install -v -ldflags="-w -s -X main.version={{.GIT_COMMIT}}" ./cmd/task
24-
env:
25-
CGO_ENABLED: '0'
2627

2728
mod:
2829
desc: Downloads and tidy Go modules

0 commit comments

Comments
 (0)