this repo has no description
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

cmd/cue: update which experiments are on by default

We again forgot to update `cue help environment` when
the embed and toposort experiments were turned on by default in v0.12.0.
https://cuelang.org/issue/3848 tracks automating this help text.

While here, add a TODO to remember to finish the toposort experiment
for v0.14, just like the TODO we already have for the embed experiment.

Signed-off-by: Daniel Martí <mvdan@mvdan.cc>
Change-Id: I19516d3a50f320107be1be5113ae382f67bbefba
Reviewed-on: https://review.gerrithub.io/c/cue-lang/cue/+/1214816
Unity-Result: CUE porcuepine <cue.porcuepine@gmail.com>
TryBot-Result: CUEcueckoo <cueckoo@cuelang.org>
Reviewed-by: Matthew Sackman <matthew@cue.works>

+4 -4
+2 -2
cmd/cue/cmd/help.go
··· 300 300 evalv3 (default true) 301 301 Enable the new CUE evaluator, addressing performance issues 302 302 and bringing a better disjunction algorithm. 303 - embed 303 + embed (default true) 304 304 Enable support for embedded data files as described in 305 305 https://cuelang.org/discussion/3264. 306 - toposort 306 + toposort (default true) 307 307 Enable topological sorting of struct fields. 308 308 Provide feedback via https://cuelang.org/issue/3558 309 309
+2 -2
internal/cueexperiment/exp.go
··· 20 20 Embed bool `envflag:"default:true"` 21 21 22 22 // Enable topological sorting of struct fields. 23 + // TODO(v0.14): deprecate this flag to forbid disabling this feature. 23 24 TopoSort bool `envflag:"default:true"` 24 25 25 26 // The flags below describe completed experiments; they can still be set ··· 33 34 // YAMLV3Decoder was an experiment which ran from early 2024 to late 2024. 34 35 YAMLV3Decoder bool `envflag:"deprecated,default:true"` 35 36 36 - // DecodeInt64 was an experiment which ran from late 2024 37 - // to mid 2025. 37 + // DecodeInt64 was an experiment which ran from late 2024 to mid 2025. 38 38 DecodeInt64 bool `envflag:"deprecated,default:true"` 39 39 } 40 40