wire icon indicating copy to clipboard operation
wire copied to clipboard

wire: README should explain how to install Wire with modules-aware go tool

Open zombiezen opened this issue 5 years ago • 2 comments

Wire's current installation documentation reads:

Install Wire by running:

go get github.com/google/go-cloud/wire/cmd/wire

and ensuring that $GOPATH/bin is added to your $PATH.

This works fine for a GOPATH-based Go tool, but in Go 1.11 with modules enabled, go get has a number of new hurdles around how to install a binary (i.e. golang/go#24250, golang/go#25922, and golang/go#27653). Once there is more consensus on those issues, we should update the Wire README with the best practices on how to make Wire available.

zombiezen avatar Nov 09 '18 16:11 zombiezen

All the abovementioned tickets are closed - perhaps it's time to removed the 'blocked' label?

zabbal avatar May 07 '21 11:05 zabbal

Good point! go install github.com/google/wire/cmd/wire@latest is the instruction we can give reliably now.

zombiezen avatar May 07 '21 13:05 zombiezen