Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
cmd/cue: document -ldflags for local release builds
https://cuelang.org/cl/1194044 did away with fallbackVersion, and we are moving back to a situation where local builds of cmd/cue contain v0.0.0 pseudo-versions derived from stamped VCS information. As such, local release builds should go back to using -ldflags=-X, which many downstreams such as Linux distros were still doing. I manually verified that building master with the flag works: $ go install ./cmd/cue $ cue version | sed 1q cue version v0.0.0-20240501095423-2b2cc23a5d70 $ go install -ldflags='-X cuelang.org/go/cmd/cue/cmd.version=v0.12.345' ./cmd/cue $ cue version | sed 1q cue version v0.12.345 Signed-off-by: Daniel Martí <mvdan@mvdan.cc> Change-Id: I91678ad763c584931147bc540f9446ef78622f3a Reviewed-on: https://review.gerrithub.io/c/cue-lang/cue/+/1194118 Reviewed-by: Paul Jolly <paul@myitcv.io> TryBot-Result: CUEcueckoo <cueckoo@cuelang.org> Unity-Result: CUE porcuepine <cue.porcuepine@gmail.com>
- Loading branch information