promu
promu copied to clipboard
Use env var GO if available
Allows you to compile with a different GO toolchain when you have several version installed on your system.
I'd rather have it as a flag of the build
command.
I'd rather have it as a flag of the
build
command.
In general we indeed avoid using env variables
I wanted to stay in sync with the Makefiles https://github.com/prometheus/promu/blob/2e745da3feab32c483524de1b78efbffe13e9334/Makefile#L19
Maybe the makefile could do promu --gobin $GO, WDYT? And the does not resolve the issue with $go enerate
and custom $GO, doe it?
I agree with @roidelapluie. IMO it's cleaner to let the Makefile invoke promu build --gobin $(GO)
.