1
0
mirror of https://github.com/golang/go synced 2024-11-05 18:26:10 -07:00
go/cmd/godoc
Agniva De Sarker 79dbfd6c86 cmd/godoc: update findGOROOT
After godoc stopped being part of the Go distribution, the location
of the godoc binary and the go binary can be different. Hence the old
GOROOT finding logic does not work anymore.

We shell out to "go env GOROOT" to return the new GOROOT.

Fixes golang/go#23445

Change-Id: I16e4c0798e3f5cda13d9f6546cf82808a10c4a0b
Reviewed-on: https://go-review.googlesource.com/c/tools/+/199279
Reviewed-by: Andrew Bonventre <andybons@golang.org>
Run-TryBot: Andrew Bonventre <andybons@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
2019-10-07 18:40:23 +00:00
..
blog.go cmd/godoc: redirect to https instead of http for blog.golang.org 2018-08-22 02:22:54 +00:00
codewalk.go all: replace reference to plan9.bell-labs.com with 9p.io 2019-08-26 06:06:29 +00:00
dl.go cmd/godoc: remove golang.org serving code 2019-02-20 19:02:57 +00:00
doc.go cmd/godoc: re-add documentation for flat presentation mode 2019-02-19 03:57:21 +00:00
godoc_test.go cmd/godoc: move poll sleep to top of loop 2019-09-30 15:27:28 +00:00
goroot.go cmd/godoc: update findGOROOT 2019-10-07 18:40:23 +00:00
handlers.go godoc/env: replace with golangorgenv 2019-03-07 16:39:06 +00:00
index.go cmd/godoc: exclude /pkg from search indexing 2015-03-12 00:26:38 +00:00
main.go cmd/godoc: remove golang.org serving code 2019-02-20 19:02:57 +00:00
play.go cmd/godoc: remove golang.org serving code 2019-02-20 19:02:57 +00:00