magefile / mage

a Make/rake-like dev tool using Go
https://magefile.org
Apache License 2.0
4.12k stars 251 forks source link

Magefile install requires GOBIN env #334

Open hampgoodwin opened 3 years ago

hampgoodwin commented 3 years ago

Howdy!, I was having issues with the go mod bootstrap install instructions because my go set up didn't have GOBIN defined. Would it be worth it to make that more explicit in the instructions? Thanks, I'm looking forward to doing away with bash for my setups!

ljluestc commented 1 year ago

you can set the GOBIN environment variable to the desired directory where you want the executables to be installed. For example, you can do this:

export GOBIN=/path/to/desired/directory

Alternatively, you can simply run go install directly without using go mod bootstrap. This will install the executables to the default location, which is $GOPATH/bin.