Default to $GOARCH
Seems like a daft question: How can I pass a custom arch to a task but have that task default to $GOARCH?
I've tried:
Can't seem to find anything in the docs about it
2 Replies
I just discovered
{{ARCH}}
but that seems to match the arch Task was compiled on, even though {{OS}}
matches the current OS... https://taskfile.dev/usage/#gos-template-engine. I guess it wouldn't matter in the majority of cases as the binary will be aligned to the arch? Would be good to have GOOS
and GOARCH
available though.Usage | Task
Getting started
Hi @leaanthony,
You are probably looking to something like this: