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
This adds a method to the registry cache to enable fetching
from the cache directly without falling back to registry access.
This will be used as the fast path for looking up modules
by their absolute version without the need to check
all path prefixes in the registry.
We want the `modload` package to be able to depend on this
logic, so avoid the need for modcache to depend on modload
by exporting the concrete type instead of the interface type.
Also define an interface type for the new cache method so
we can potentially have different kinds of cache implementations
in the future.
Also document the error return of the `Fetch` and the
new `FetchFromCache` methods so that we can distinguish
between "module not present" and other errors.
For #3618.
Signed-off-by: Roger Peppe <[email protected]>
Change-Id: Idf713910ccb7f09b0c43c125281171dfb5638866
Reviewed-on: https://review.gerrithub.io/c/cue-lang/cue/+/1211884
Reviewed-by: Daniel Martí <[email protected]>
Unity-Result: CUE porcuepine <[email protected]>
TryBot-Result: CUEcueckoo <[email protected]>
0 commit comments