Skip to content
New issue

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

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

Already on GitHub? # to your account

affected/package: x/tools/cmd/godoc #54931

Closed
media-informatics opened this issue Sep 7, 2022 · 2 comments
Closed

affected/package: x/tools/cmd/godoc #54931

media-informatics opened this issue Sep 7, 2022 · 2 comments

Comments

@media-informatics
Copy link

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

$ go version
go version go1.19 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/jurgen/.cache/go-build"
GOENV="/home/jurgen/.config/go/env"
GOEXE=""
GOEXPERIMENT=""
GOFLAGS=""
GOHOSTARCH="amd64"
GOHOSTOS="linux"
GOINSECURE=""
GOMODCACHE="/home/jurgen/Dev/Go/pkg/mod"
GONOPROXY=""
GONOSUMDB=""
GOOS="linux"
GOPATH="//home/jurgen/Dev/Go"
GOPRIVATE=""
GOPROXY="https://proxy.golang.org,direct"
GOROOT="/opt/go"
GOSUMDB="sum.golang.org"
GOTMPDIR=""
GOTOOLDIR="/opt/go/pkg/tool/linux_amd64"
GOVCS=""
GOVERSION="go1.19"
GCCGO="gccgo"
GOAMD64="v1"
AR="ar"
CC="gcc"
CXX="g++"
CGO_ENABLED="1"
GOMOD="/dev/null"
GOWORK="/home/jurgen/Dev/WebProg/go.work"
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 -Wl,--no-gc-sections -fmessage-length=0 -fdebug-prefix-map=/tmp/go-build3194052484=/tmp/go-build -gno-record-gcc-switches"

What did you do?

start godoc from dir containing go.work file: godoc -http=:6060 &

What did you expect to see?

go doc includes http-Pages for ThirdParty-section for all modules listed in go.work

What did you see instead?

go.work is ignored, godoc server does not include any ThirdParty modules

@seankhliao
Copy link
Member

godoc is deprecated as of #49212

@seankhliao seankhliao closed this as not planned Won't fix, can't repro, duplicate, stale Sep 7, 2022
@media-informatics
Copy link
Author

I do not think that godoc should be deprecated.
pkgsite seems no replacement for godoc, even if it would work. I do not want a copy of the go.dev Website. I want access to documentation for the stdlib and my own, unpublished packages without leaving my machine
I tried installing pkgsite with go install golang.org/x/pkgsite/cmd/pkgsite@latest
The package simply does not work, though it claims to be installed: it starts with a local copy of the go.dev website, but all search requests result in: a barrage of nested "returning 424 (Failed Dependency)" ending in

This page is not supported for this datasource

. I see no need for a local copy of go.dev and hence pkgsite - the website at go.dev is sufficient. I also think that package has too many dependencies, rendering it very fragile.

@golang golang locked and limited conversation to collaborators Sep 7, 2023
# for free to subscribe to this conversation on GitHub. Already have an account? #.
Projects
None yet
Development

No branches or pull requests

3 participants