We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 86f7a64 commit 5a04616Copy full SHA for 5a04616
cue/load/config.go
@@ -368,8 +368,8 @@ func (c Config) complete() (cfg *Config, err error) {
368
}
369
if c.SkipImports {
370
// We should never use the registry in SkipImports mode
371
- // but nil it out to be sure.
372
- c.Registry = nil
+ // but make it always return an error just to be sure.
+ c.Registry = errorRegistry{errors.New("unexpected use of registry in SkipImports mode")}
373
} else if c.Registry == nil {
374
registry, err := modconfig.NewRegistry(&modconfig.Config{
375
Env: c.Env,
0 commit comments