mirror of
https://github.com/golang/go
synced 2024-10-01 03:28:32 -06:00
912f50adde
When a file is changed, we invalidate various cached data so we re-type check and refetch metadata as needed. Previously when a file changed we would delete the metadata for all transitive reverse dependencies. This broke all-packages-in-workspace features since we could no longer fetch the package handle for packages without metadata. Fix by only deleting metadata for the packages that the file being changed belongs to. It doesn't seem like a package's metadata contains anything that is sensitive to changes in the package's dependencies. Change-Id: I6a2d5df49ecd4d627b37689e48ed48fe78ce658d Reviewed-on: https://go-review.googlesource.com/c/tools/+/210458 Run-TryBot: Muir Manders <muir@mnd.rs> TryBot-Result: Gobot Gobot <gobot@golang.org> Reviewed-by: Rebecca Stambler <rstambler@golang.org> |
||
---|---|---|
.. | ||
analysis.go | ||
builtin.go | ||
cache.go | ||
check.go | ||
error_test.go | ||
errors.go | ||
external.go | ||
file.go | ||
load.go | ||
parse.go | ||
pkg.go | ||
session.go | ||
snapshot.go | ||
view.go | ||
watcher.go |