1
0
mirror of https://github.com/golang/go synced 2024-11-18 11:34:45 -07:00
go/godoc/vfs/zipfs
Agniva De Sarker ba93f9405e 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>
2018-08-23 15:26:32 +00:00
..
zipfs_test.go godoc/vfs/zipfs: use an os.IsNotExist-compatible error 2016-02-15 04:18:10 +00:00
zipfs.go godoc: update to use new goroot finding logic 2018-08-23 15:26:32 +00:00