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
internal/modpkgload: Make Package keep its set of files
Loading a package requires reading files and discovering which files are
in that package. The Package type already provides access to a package's
files' directories via the Locations method, but it does not hang on to
the actual files themselves. This is unfortunate as re-reading the files
may cause additional IO and may create race conditions.
Add a files field and Files getter method to Package, and populate with
the files that are included in a Package.
Signed-off-by: Matthew Sackman <[email protected]>
Change-Id: I94c8ae1e6d6b900f989d4408031ef05877ce0b00
Reviewed-on: https://review.gerrithub.io/c/cue-lang/cue/+/1218034
Unity-Result: CUE porcuepine <[email protected]>
TryBot-Result: CUEcueckoo <[email protected]>
Reviewed-by: Roger Peppe <[email protected]>
0 commit comments