I did not have GO111MODULE set. a@spot:~$ env | grep GO GOROOT_BOOTSTRAP=/home/a/go1.18.5 GOROOT=/home/a/go GOPATH=/home/a a@spot:~$
and I use current Go tip. godoc only shows "Third party" section if I am inside of any go module directory, but not in /tmp . a@spot:~$ cd /tmp a@spot:/tmp$ godoc -http :8080 using module mode; GOMOD=/dev/null ^C a@spot:/tmp$ cd ~/src/golang.org/x/sys/ a@spot:~/src/golang.org/x/sys$ godoc -http :8080 using module mode; GOMOD=/home/a/src/golang.org/x/sys/go.mod go: no module dependencies to download ^C a@spot:~/src/golang.org/x/sys$ Note how GOMOD setting changes in godoc output as I change my directories. If I use GO111MODULE environment variable a@spot:~$ cd /tmp a@spot:/tmp$ GO111MODULE=off godoc -http :8080 using GOPATH mode ^C a@spot:/tmp$ cd ~/src/golang.org/x/sys/ a@spot:~/src/golang.org/x/sys$ GO111MODULE=off godoc -http :8080 using GOPATH mode ^C a@spot:~/src/golang.org/x/sys$ then godoc displays "using GOPATH mode" message, and displays all packages I have in my GOPATH on one large single page. This is not useful in my scenario, because we have many independent teams working on many independent Go repos. I don't see how it would be possible for me to automatically download and keep up-to-date then all into single GOPATH. And it would be overwhelming to see all our packages on one single page. And godoc does not displays package versions. But thanks for trying. Alex On Monday, 12 September 2022 at 18:31:11 UTC+10 Jan Mercl wrote: > On Mon, Sep 12, 2022 at 10:01 AM brainman <alex.b...@gmail.com> wrote: > > > I managed to run godoc. > > > > But godoc only displays standard library packages. > > > > Is it possible to configure godoc so it displays packages stored in > private github repos ? > > I use it with no configuration, '$ GO111MODULE=off godoc -http :6060 > &` in particular, and it also shows all packages in $GOPATH. Maybe > setting GOPATH is the configuration you need. > -- 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/637adbbb-2649-4815-94ae-3d989f0512adn%40googlegroups.com.