Problem
hack/install.sh line 33 reads the Go architecture with:
KO_ARCH=$(go env | grep GOARCH | awk -F\' '{print $2}')
This is fragile because:
- It pipes through three commands instead of one
- It depends on the exact string format of
go env output (using single-quote delimiters), which is an implementation detail that can change
Proposed Fix
Use the canonical single-variable form:
go env <VAR> is the documented, stable way to read one environment variable and outputs just the value with no surrounding quotes.