all: move pkg/gen and internal/cmd/qgo to build-ignored files
These two are code generators which we need to be able to run.
One advantage of having them in their own package directories
used to be that gopls did not support build tags well at all,
so editing a file with `//go:build ignore` would show many errors.
In October 2022, gopls added built-in support for `//go:build ignore`,
since it's a very common pattern in cases like this.
We can now have these generators as standalone files.
Not only does that reduce the need for more directories,
but it also means `go install ./...` no longer installs the binaries
confusingly named `gen` and `qgo` in `go env GOBIN`.
While here, update the "generated by" comments in pkg source files,
as these files are no longer automatically generated since
https://cuelang.org/cl/536072, and the comment might confuse someone.
The `go run` example is also updated to use the standalone file.
Fixes #1869.
Signed-off-by: Daniel Martí <mvdan@mvdan.cc>
Change-Id: I3976a613cc501ddaa47ad23afe0d5fd6df536267
Reviewed-on: https://review.gerrithub.io/c/cue-lang/cue/+/552599
Reviewed-by: Marcel van Lohuizen <mpvl@gmail.com>
Unity-Result: CUEcueckoo <cueckoo@cuelang.org>
TryBot-Result: CUEcueckoo <cueckoo@cuelang.org>