cmd/cue: actually update the _gen.go.want gengotypes testscript files
We were doing `cmp foo.go foo.go` rather than `cmp foo.go foo.go.want`,
which always succeeded, and caused CUE_UPDATE=1 to not update the
"want" files at all.
Fix that, and update the generated files to actually reflect
what we do.
This stumped and annoyed me enough that I also sent a change to
testscript to make such silly mistakes an error:
https://github.com/rogpeppe/go-internal/pull/295
Signed-off-by: Daniel Martí <mvdan@mvdan.cc>
Change-Id: If24c6e2439a828c9da7cf3028c61126e899bd96c
Reviewed-on: https://review.gerrithub.io/c/cue-lang/cue/+/1213229
Unity-Result: CUE porcuepine <cue.porcuepine@gmail.com>
TryBot-Result: CUEcueckoo <cueckoo@cuelang.org>
Reviewed-by: Roger Peppe <rogpeppe@gmail.com>