When running go list for a file= query, the go/packages code previously ran "go list ." command in the directory of the provided file. This was necessary for compatibility with the fallback, but caused problems when running file= queries for files in the module cache. We now use absolute directory paths (supported in Go >=1.11) in the non-fallback case and retain the previous behavior in the fallback case. Change-Id: I3a9feaaeda12e068ec3d510b5f78437482c65b4c Reviewed-on: https://go-review.googlesource.com/c/148199 Run-TryBot: Michael Matloob <matloob@golang.org> TryBot-Result: Gobot Gobot <gobot@golang.org> Reviewed-by: Ian Cottrell <iancottrell@google.com> |
||
---|---|---|
.. | ||
gopackages | ||
packagestest | ||
testdata | ||
doc.go | ||
example_test.go | ||
external.go | ||
golist.go | ||
golist_fallback.go | ||
golist_fallback_testmain.go | ||
packages.go | ||
packages110_test.go | ||
packages_test.go | ||
packagescgo_test.go | ||
stdlib_test.go | ||
visit.go |