cue: remove testdata/gen.go
It was introduced by https://cue-review.googlesource.com/c/cue/+/5821
back in 2020 when Marcel transitioned from table-driven tests in Go
test files to one txtar file per test inside testdata.
That transition finished a long time ago, and we have been expanding
the testdata txtar files manually to add test cases since.
For example, https://cuelang.org/cl/1172010 expanded the CUE input
to one of these generated txtar files, and we don't want to lose those
by re-generating the files.
Moreover, since `go generate ./...` skips over testdata directories
and this gen.go program had its own //go:generate directive,
we hadn't run this code generator for at least two or three years.
Case in point, it doesn't even work at this point.
As agreed with Marcel, it's well past the time to remove this generator.
Remove the "DO NOT EDIT" warnings too, as they no longer apply:
sed -i '/DO NOT EDIT; generated by go run testdata/,+1d' cue/testdata/*/*.txtar
Signed-off-by: Daniel Martí <mvdan@mvdan.cc>
Change-Id: I6673629e57da7608029c2c4a6caef24b259be926
Reviewed-on: https://review.gerrithub.io/c/cue-lang/cue/+/1201347
TryBot-Result: CUEcueckoo <cueckoo@cuelang.org>
Unity-Result: CUE porcuepine <cue.porcuepine@gmail.com>
Reviewed-by: Roger Peppe <rogpeppe@gmail.com>