From e9a7274bc879aab38d9b6e5bd828fdbd822d3cf6 Mon Sep 17 00:00:00 2001 From: Roger Peppe Date: Tue, 3 Sep 2024 13:11:10 +0100 Subject: [PATCH] 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 Change-Id: I1ad2a9eaa2d9b99a4e265734ce1286e442aeea53 Dispatch-Trailer: {"type":"trybot","CL":1200582,"patchset":2,"ref":"refs/changes/82/1200582/2","targetBranch":"master"} --- cmd/cue/cmd/help.go | 3 --- cue/load/config.go | 8 +++----- 2 files changed, 3 insertions(+), 8 deletions(-) diff --git a/cmd/cue/cmd/help.go b/cmd/cue/cmd/help.go index 5c5a5e530..c71b2c14a 100644 --- a/cmd/cue/cmd/help.go +++ b/cmd/cue/cmd/help.go @@ -312,9 +312,6 @@ If an environment variable is unset or empty, sensible default setting is used. CUE_EXPERIMENT Comma-separated list of experiment flags to enable or disable: - modules (default true) - Enable support for the Modules and package management proposal - as described in https://cuelang.org/discussion/2939. evalv3 Enable the new CUE evaluator, addressing performance issues and bringing a better disjunction algorithm. diff --git a/cue/load/config.go b/cue/load/config.go index ea8e2a993..af7a8fe8d 100644 --- a/cue/load/config.go +++ b/cue/load/config.go @@ -288,11 +288,9 @@ type Config struct { // Registry is used to fetch CUE module dependencies. // - // When nil, if the modules experiment is enabled - // (CUE_EXPERIMENT=modules), [modconfig.NewRegistry] - // will be used to create a registry instance using the - // usual cmd/cue conventions for environment variables - // (but see the Env field below). + // When nil, [modconfig.NewRegistry] will be used to create a + // registry instance using the usual cmd/cue conventions for + // environment variables (but see the Env field below). // // THIS IS EXPERIMENTAL. API MIGHT CHANGE. Registry modconfig.Registry