cue/load: assume that Config.Registry is set when SkipImports is false
Now that the new modules implementation is always on by default,
any function which is only called when Config.SkipImports is false,
such as loadPackages or absDirFromImportPath1, can assume that
Config.Registry is set. Even if the user leaves it as nil, it takes
a default value derived from Config.Env.
Signed-off-by: Daniel Martí <mvdan@mvdan.cc>
Change-Id: I93b85fd9fa9cdad5e6d92d0cf8244490a1bb6679
Reviewed-on: https://review.gerrithub.io/c/cue-lang/cue/+/1205859
Reviewed-by: Roger Peppe <rogpeppe@gmail.com>
TryBot-Result: CUEcueckoo <cueckoo@cuelang.org>