Skip to content

Commit ecbcf34

Browse files
committed
cmd/cue: remove mention of CUE_EXPERIMENT=modules from help
It doesn't make sense to mention the experiment when it cannot be disabled. Signed-off-by: Roger Peppe <[email protected]> Change-Id: I1ad2a9eaa2d9b99a4e265734ce1286e442aeea53 Reviewed-on: https://review.gerrithub.io/c/cue-lang/cue/+/1200582 Reviewed-by: Daniel Martí <[email protected]> TryBot-Result: CUEcueckoo <[email protected]> Unity-Result: CUE porcuepine <[email protected]>
1 parent a51a98f commit ecbcf34

File tree

2 files changed

+3
-8
lines changed

2 files changed

+3
-8
lines changed

cmd/cue/cmd/help.go

-3
Original file line numberDiff line numberDiff line change
@@ -312,9 +312,6 @@ If an environment variable is unset or empty, sensible default setting is used.
312312
CUE_EXPERIMENT
313313
Comma-separated list of experiment flags to enable or disable:
314314
315-
modules (default true)
316-
Enable support for the Modules and package management proposal
317-
as described in https://cuelang.org/discussion/2939.
318315
evalv3
319316
Enable the new CUE evaluator, addressing performance issues
320317
and bringing a better disjunction algorithm.

cue/load/config.go

+3-5
Original file line numberDiff line numberDiff line change
@@ -288,11 +288,9 @@ type Config struct {
288288

289289
// Registry is used to fetch CUE module dependencies.
290290
//
291-
// When nil, if the modules experiment is enabled
292-
// (CUE_EXPERIMENT=modules), [modconfig.NewRegistry]
293-
// will be used to create a registry instance using the
294-
// usual cmd/cue conventions for environment variables
295-
// (but see the Env field below).
291+
// When nil, [modconfig.NewRegistry] will be used to create a
292+
// registry instance using the usual cmd/cue conventions for
293+
// environment variables (but see the Env field below).
296294
//
297295
// THIS IS EXPERIMENTAL. API MIGHT CHANGE.
298296
Registry modconfig.Registry

0 commit comments

Comments
 (0)