Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

x/tools/cmd/godoc: godoc doesn't list packages installed via go get #46193

Closed
ghost opened this issue May 17, 2021 · 2 comments
Closed

x/tools/cmd/godoc: godoc doesn't list packages installed via go get #46193

ghost opened this issue May 17, 2021 · 2 comments
Labels
FrozenDueToAge Tools This label describes issues relating to any tools in the x/tools repository.
Milestone

Comments

@ghost
Copy link

ghost commented May 17, 2021

What version of Go are you using (go version)?

$ go version
go version go1.16.3 linux/amd64

Does this issue reproduce with the latest release?

yes.

What operating system and processor architecture are you using (go env)?

go env Output
$ go env
GO111MODULE=""
GOARCH="amd64"
GOBIN=""
GOCACHE="/home/tnv/.cache/go-build"
GOENV="/home/tnv/.config/go/env"
GOEXE=""
GOFLAGS=""
GOHOSTARCH="amd64"
GOHOSTOS="linux"
GOINSECURE=""
GOMODCACHE="/home/tnv/go/pkg/mod"
GONOPROXY=""
GONOSUMDB=""
GOOS="linux"
GOPATH="/home/tnv/go"
GOPRIVATE=""
GOPROXY="direct"
GOROOT="/usr/lib/golang"
GOSUMDB="off"
GOTMPDIR=""
GOTOOLDIR="/usr/lib/golang/pkg/tool/linux_amd64"
GOVCS=""
GOVERSION="go1.16.3"
GCCGO="gccgo"
AR="ar"
CC="gcc"
CXX="g++"
CGO_ENABLED="1"
GOMOD="/dev/null"
CGO_CFLAGS="-g -O2"
CGO_CPPFLAGS=""
CGO_CXXFLAGS="-g -O2"
CGO_FFLAGS="-g -O2"
CGO_LDFLAGS="-g -O2"
PKG_CONFIG="pkg-config"
GOGCCFLAGS="-fPIC -m64 -pthread -fmessage-length=0 -fdebug-prefix-map=/tmp/go-build477839898=/tmp/go-build -gno-record-gcc-switches"

What did you do?

I ran godoc and before that i installed it via go get golang.org/x/tools/cmd/godoc

What did you expect to see?

documentation for stdlib and packages that was downloaded during go get

What did you see instead?

docs for only stdlib

@gopherbot gopherbot added the Tools This label describes issues relating to any tools in the x/tools repository. label May 17, 2021
@gopherbot gopherbot added this to the Unreleased milestone May 17, 2021
@crossphoton
Copy link

Let's just confirm what you did.
You started a server with godoc at port 6060 then when you visit it your package isn't listed.

Can you try the following things:

  • Try using the flag -index and search a regexp in the query box.
  • Try manually searching for the package instead of using the query box.
  • Try using go doc <package>

@seankhliao
Copy link
Member

Unlike many projects, the Go project does not use GitHub Issues for general discussion or asking questions. GitHub Issues are used for tracking bugs and proposals only.

For questions please refer to https://github.com/golang/go/wiki/Questions

@golang golang locked and limited conversation to collaborators May 17, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
FrozenDueToAge Tools This label describes issues relating to any tools in the x/tools repository.
Projects
None yet
Development

No branches or pull requests

3 participants