mirror of
https://github.com/golang/go
synced 2024-11-18 21:54:49 -07:00
857b4dd9f8
The root of the module containing a package in the module cache can be determined by looking at the directory path. Use this instead of scanning up the file tree to find the mod file of a package from a module cache. The go command prunes nested modules before populating the module cache, so there is only one go.mod within each module. Change-Id: I434a04350ef3ca2f44b7ffd08ccc5afe4209654f Reviewed-on: https://go-review.googlesource.com/c/tools/+/190906 Run-TryBot: Suzy Mueller <suzmue@golang.org> TryBot-Result: Gobot Gobot <gobot@golang.org> Reviewed-by: Heschi Kreinick <heschi@google.com> |
||
---|---|---|
.. | ||
testdata/mod | ||
fix_test.go | ||
fix.go | ||
imports_test.go | ||
imports.go | ||
mkindex.go | ||
mkstdlib.go | ||
mod_112_test.go | ||
mod_cache.go | ||
mod_test.go | ||
mod.go | ||
proxy_112_test.go | ||
proxy_113_test.go | ||
sortimports.go | ||
zstdlib.go |