Doesn't the `go install` command explicitly instruct you to add $GOBIN/$GOPATH/bin to your $PATH? To me, that seems enough - it feels a bit arduous, to expect this piece of information at any single point on the web where `go install` is mentioned.
On Thu, Feb 29, 2024 at 1:39 AM Robert Sawicki <kredopieka...@gmail.com> wrote: > Hey! > > As I was looking through Go docs recently, I've noticed docs for x/pkgsite > wrongly assume that user's $PATH includes $GOPATH/bin, by using `pkgsite` > as a way to launch the command right after installing it. > > Golang installation docs <https://go.dev/doc/install>only mention adding > */usr/local/bin/go* to $PATH, so I believe this may be confusing for new > users. At least it was to me. > > Shouldn't these docs explicitly state that they assume that path is added > to $PATH, just for clarity's sake? Or maybe adding $GOPATH/bin (or $GOBIN) > to user's $PATH is a worthy addition to installation docs? > > I decided to ask here, since I don't want to create a whole Github issue > just for something like that. If this gains traction, I'm willing to create > such an issue. > > -- > 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. > To view this discussion on the web visit > https://groups.google.com/d/msgid/golang-nuts/53386532-7bd4-421a-9f41-b973dbfa68ean%40googlegroups.com > <https://groups.google.com/d/msgid/golang-nuts/53386532-7bd4-421a-9f41-b973dbfa68ean%40googlegroups.com?utm_medium=email&utm_source=footer> > . > -- 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. To view this discussion on the web visit https://groups.google.com/d/msgid/golang-nuts/CAEkBMfG6Qi5%2BWwAkfH2tx9MVHpLpwe2bQKcFYFbmmJ5thvw6BA%40mail.gmail.com.