-
Notifications
You must be signed in to change notification settings - Fork 302
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
cue/load: minimal module fetching implementation
This is just a proof of concept for now - the details will probably change, but it demonstrates MVS module version resolution and fetching modules from a server. Note that public behaviour does not change here - the new behavior is only triggered by setting the `load.Config.Registry` field to a non-empty URL. The `Config.absDirFromImportPath` method became `loader.absDirFromImportPath` so was moved - the only changes are to use `l.cfg` instead of `c` and the `if l.cfg.Registry` conditional code. Signed-off-by: Roger Peppe <rogpeppe@gmail.com> Change-Id: I7c5e0888db780f23a6d58081e70680a48dce509f Reviewed-on: https://review.gerrithub.io/c/cue-lang/cue/+/549762 Reviewed-by: Marcel van Lohuizen <mpvl@gmail.com> Unity-Result: CUEcueckoo <cueckoo@cuelang.org> TryBot-Result: CUEcueckoo <cueckoo@cuelang.org>
- Loading branch information
Showing
16 changed files
with
1,043 additions
and
112 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.