What's the best substitute for "go get my/tool" in a modules world?
I used to be able to tell my users to set up Go with a GOPATH workspace and then run "go get -u github.com/my/package". I can't find an equivalent workflow now. The closest I can find is GOBIN=~/bin GO111MODULES=on go get github.com/my/package@latest But this drops go.mod/go.sum files in the current directory, which I don't want. Is there some command to just build and put a binary in a directory without touching any other files (outside the cache)? -- 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.