tools/internal/persistent
Alan Donovan e0b516bc0a gopls/internal/lsp/cache: invalidate metadata after vendor change
This change causes the snapshot to watch the vendor/modules.txt
file and to invalidate the metadata if it changes, since it
could cause modules to move.

Also, add a regression test for the bug in which running
go mod vendor causes a module to move, but the Definitions
operation reports the old location. (And the reverse case
of deleting the vendor tree.)

Also, add persistent.Map.String method, for debugging.

Fixes golang/go#55995

Change-Id: I48302416586c763b4a4de7d67aaa88fde52ea400
Reviewed-on: https://go-review.googlesource.com/c/tools/+/454315
TryBot-Result: Gopher Robot <gobot@golang.org>
Run-TryBot: Alan Donovan <adonovan@google.com>
Reviewed-by: Robert Findley <rfindley@google.com>
2022-12-02 15:45:07 +00:00
..
map.go gopls/internal/lsp/cache: invalidate metadata after vendor change 2022-12-02 15:45:07 +00:00
map_test.go internal/persistent: avoid incorrect map validation due to multiple keys 2022-11-08 21:01:57 +00:00