mirror of
https://github.com/golang/go
synced 2024-11-18 15:34:53 -07:00
6441d34c3f
In (*snapshot).addPackage, we return early if the package handle is already cached, but we continue building the dependency graph with a handle passed into addPackage. This seems fine since both handles should have the same cache key, but if we clone the snapshot, we will end up dropping the handle that had the type information on it. It will then have to be recomputed, causing the skew in the types.Package. Fixes golang/go#38403 Change-Id: I0e360447a428123fcac444fbea3c2a3232ef941a Reviewed-on: https://go-review.googlesource.com/c/tools/+/232817 Run-TryBot: Rebecca Stambler <rstambler@golang.org> TryBot-Result: Gobot Gobot <gobot@golang.org> Reviewed-by: Heschi Kreinick <heschi@google.com> |
||
---|---|---|
.. | ||
analysis.go | ||
cache.go | ||
check.go | ||
debug.go | ||
error_test.go | ||
errors.go | ||
external.go | ||
load.go | ||
mod.go | ||
os_darwin.go | ||
os_windows.go | ||
parse.go | ||
pkg.go | ||
session.go | ||
snapshot.go | ||
view_test.go | ||
view.go |