mirror of
https://github.com/go-task/task.git
synced 2025-03-05 15:05:42 +02:00
Fixes bug #61, and makes `env` work more similar to `vars` by allowing dynamic shell values to be evaluated as part of `CompiledTask`.
11 lines
206 B
YAML
11 lines
206 B
YAML
default:
|
|
vars:
|
|
AMD64: amd64
|
|
env:
|
|
GOOS: linux
|
|
GOARCH: "{{.AMD64}}"
|
|
CGO_ENABLED:
|
|
sh: echo '0'
|
|
cmds:
|
|
- echo "GOOS='$GOOS' GOARCH='$GOARCH' CGO_ENABLED='$CGO_ENABLED'" > env.txt
|