Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
cmd/cue: include Go in the version command
We were showing CUE's own module version, plus all the settings used for its Go build, but we entirely forgot to include the version of Go used. For example, a CUE tip build with Go tip now reports: $ cue version cue version v0.0.0-20230202102539-2293f18bafde go version devel go1.21-6d4de4e386 Wed Feb 1 21:31:01 2023 +0000 -buildmode exe -compiler gc CGO_ENABLED 1 GOARCH amd64 GOOS linux GOAMD64 v3 vcs git vcs.revision 2293f18bafde366df4171c78bd6e7029b53429e0 vcs.time 2023-02-02T10:25:39Z vcs.modified false I chose to put the new line next to the build settings, as they both relate to how "go build" was run. This would have helped us to figure out a recent "cue fmt" bug, as it only happened to reproduce when cmd/cue was built with Go 1.18. For #1791. Signed-off-by: Daniel Martí <mvdan@mvdan.cc> Change-Id: Id6f28ed4a011404a1b87b49b53dc1ad36cd86338 Reviewed-on: https://review.gerrithub.io/c/cue-lang/cue/+/549302 Reviewed-by: Paul Jolly <paul@myitcv.io> Unity-Result: CUEcueckoo <cueckoo@cuelang.org> TryBot-Result: CUEcueckoo <cueckoo@cuelang.org>
- Loading branch information