You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
go/packages: stop loading packages when context is done
The value of ld.Context.Err() is now always checked once at
the beginning of loadPackage before it begins reading files or
exportdata. loadPackage stops early if ld.Context is done.
If any packages failed to load due to stopping early, Load returns
(nil, ld.Context.Err()).
As a side-effect, this resolves logging ld.Context.Err() multiple
times per packages as unknown internal errors. (These are not
internal errors nor are they unknown.)
Change-Id: Iab8eedbe19ad07b592b3003d2934b20039e54a94
Reviewed-on: https://go-review.googlesource.com/c/tools/+/577395
Reviewed-by: Alan Donovan <[email protected]>
LUCI-TryBot-Result: Go LUCI <[email protected]>
0 commit comments