tools/godoc/vfs
Agniva De Sarker b86cb9a852 [release-branch.go1.11] godoc: update to use new goroot finding logic
The logic to determine whether a filesystem root was in GOROOT or GOPATH
still relied on runtime.GOROOT(), whereas cmd/godoc was updated to copy
the goroot finding logic from standard library.

Hence, godoc is unable to determine if a filesystem is in GOROOT or not
when the binary is outside runtime.GOROOT(). So we expose a new variable
and set that from cmd/godoc to avoid copying the logic again for the 3rd time.

Fixes golang/go#27162

Change-Id: I160dcdbdd262e671f09f7bf01c329be5eac280ad
Reviewed-on: https://go-review.googlesource.com/130796
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
Run-TryBot: Brad Fitzpatrick <bradfitz@golang.org>
(cherry picked from commit b43ba4d01e7b143a264aa4aa57a5abff6c8a1534)
Reviewed-on: https://go-review.googlesource.com/131035
Reviewed-by: Agniva De Sarker <agniva.quicksilver@gmail.com>
2018-08-23 19:32:48 +00:00
..
gatefs godoc/vfs: improve implementation of RootType 2018-04-11 20:41:25 +00:00
httpfs tools: add import comments. 2014-12-09 22:42:16 +00:00
mapfs godoc/vfs: improve implementation of RootType 2018-04-11 20:41:25 +00:00
zipfs [release-branch.go1.11] godoc: update to use new goroot finding logic 2018-08-23 19:32:48 +00:00
emptyvfs.go godoc/vfs: improve implementation of RootType 2018-04-11 20:41:25 +00:00
emptyvfs_test.go x/tools/godoc: gofmt -s -w 2017-02-15 21:42:32 +00:00
namespace.go godoc/vfs: improve implementation of RootType 2018-04-11 20:41:25 +00:00
os.go [release-branch.go1.11] godoc: update to use new goroot finding logic 2018-08-23 19:32:48 +00:00
os_test.go godoc/vfs: improve implementation of RootType 2018-04-11 20:41:25 +00:00
vfs.go godoc/vfs: improve implementation of RootType 2018-04-11 20:41:25 +00:00