all: drop support for Go 1.16.x
Now that Go 1.18 has been out for a couple of months,
we can go ahead and drop the now-unsupported Go 1.16.x.
This is also important for keeping our dependencies up to date,
as a few of them like github.com/protocolbuffers/txtpbfmt
have already started to use std APIs added in Go 1.17.
Note that we also switch CI to run `go generate` with the latest stable
Go version we test on, 1.18.x, rather than the oldest,
which will now be 1.17.x rather than 1.16.x.
Using the oldest used to be an important detail,
as `go generate` would automatically run the qgo tool,
which would then copy code from Go's standard library.
Since CL 536072, that step is now manual, so CI is no longer involved.
Using the newest stable Go version is also more consistent,
as the majority of the developers working on CUE will use that version,
so that is the version they will run `go generate` with.
Signed-off-by: Daniel Martí <mvdan@mvdan.cc>
Change-Id: Id6c1b7d12dead62be2ba4612eca24ba756e4bdd3
Reviewed-on: https://review.gerrithub.io/c/cue-lang/cue/+/537704
Unity-Result: CUEcueckoo <cueckoo@cuelang.org>
TryBot-Result: CUEcueckoo <cueckoo@cuelang.org>
Reviewed-by: Paul Jolly <paul@myitcv.io>