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
mod/modfile: better error message when disallowed field is used
The current error message looks like this:
```
source: conflicting values 1 and {kind!:("self"|"git")} (mismatched types int and struct):
cuelang.org/go/mod/modfile/schema.cue:24:21
cuelang.org/go/mod/modfile/schema.cue:65:12
cuelang.org/go/mod/modfile/schema.cue:122:11
source: conflicting values 2 and 1:
cuelang.org/go/mod/modfile/schema.cue:24:21
cuelang.org/go/mod/modfile/schema.cue:24:25
cuelang.org/go/mod/modfile/schema.cue:55:18
```
The new error message is somewhat improved:
```
instance: invalid module.cue file: source field is not allowed at this language version; need at least v0.9.0-alpha.0
```
Signed-off-by: Roger Peppe <[email protected]>
Change-Id: I81481a90fcd5a4478fed8c8b6711b878b37ee461
Reviewed-on: https://review.gerrithub.io/c/cue-lang/cue/+/1193895
Reviewed-by: Daniel Martí <[email protected]>
TryBot-Result: CUEcueckoo <[email protected]>
Unity-Result: CUE porcuepine <[email protected]>
0 commit comments