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
cmd/cue: verify the JSON for equivalence in get_go_json_compat
We took the JSON from `cue export` and unmarshalled it into the Go type
to verify it is still compatible, but we did not actually check
that the values are unchanged. This might not be the case if we,
for example, dropped a key or changed one of the key values.
This also means that we don't need to do a Go json.Unmarshal check;
if Go's json.Marshal results in exactly the same bytes as `cue export`,
then it's safe to assume that json.Unmarshal would work too.
While here, make sure we use `cue vet` in concrete mode.
Signed-off-by: Daniel Martí <[email protected]>
Change-Id: Id488eddfba3120d5d8f443a10e008805954a0d9d
Reviewed-on: https://review.gerrithub.io/c/cue-lang/cue/+/1211575
TryBot-Result: CUEcueckoo <[email protected]>
Unity-Result: CUE porcuepine <[email protected]>
Reviewed-by: Roger Peppe <[email protected]>
0 commit comments