For "global" installs of a tool via go (get|install), this is indeed a critical feature and is covered by https://github.com/golang/go/issues/24250. ("global" is defined as: outside of a module context (i.e. no go.mod), with GO111MODULE=on)
Within a module context, i.e. with a go.mod present, go (get|install) will just work. In a GOPATH context it will also work. The solution for now is to: GO111MODULE=off go get something, and this will put the binary in $GOPATH/bin On Sun, 2 Sep 2018 at 00:15, Vasily Korytov <vkory...@4tifier.com> wrote: > > well, `go get something` without a GOPATH existing or from an arbitrary > directory is a popular use case. > > I assume, `go mod` is not ready for it yet, but will be at time of enabling > it by default. > It’s still in early preview. > > but currently absence of this functionality stops me from experimenting with > `go mod` further and I’m back to govendor. > will try it in some next release though. > > -- > Vasily Korytov > https://chillum.github.io > > -- > You received this message because you are subscribed to the Google Groups > "golang-nuts" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to golang-nuts+unsubscr...@googlegroups.com. > For more options, visit https://groups.google.com/d/optout. -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.