Skip to content

Commit

Permalink
all: CUE_EXPERIMENT=modules no longer needs to be set in tests
Browse files Browse the repository at this point in the history
It has been the default for many months now.

While here, we don't need to set CUE_REGISTRY=registry.cue.works
in the end-to-end tests, as that is also the default now.

Signed-off-by: Daniel Martí <[email protected]>
Change-Id: Ieedd7bbfe4514f98099bc0b10e130bc4f14c58e3
Reviewed-on: https://review.gerrithub.io/c/cue-lang/cue/+/1205709
Unity-Result: CUE porcuepine <[email protected]>
TryBot-Result: CUEcueckoo <[email protected]>
Reviewed-by: Roger Peppe <[email protected]>
  • Loading branch information
mvdan committed Dec 13, 2024
1 parent 0005c22 commit eaea301
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 4 deletions.
1 change: 0 additions & 1 deletion cmd/cue/cmd/script_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -208,7 +208,6 @@ func TestScript(t *testing.T) {
if neg || len(args) != 1 {
ts.Fatalf("usage: oauthregistry <mode>")
}
ts.Setenv("CUE_EXPERIMENT", "modules")
srv := newMockRegistryOauth(args[0])
u, _ := url.Parse(srv.URL)
ts.Setenv("CUE_REGISTRY", u.Host+"+insecure")
Expand Down
1 change: 0 additions & 1 deletion cmd/cue/cmd/testdata/script/def_proto.txtar
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
env CUE_EXPERIMENT=modules
exec cue def policy.proto -p api -I include
cmp stdout expect-stdout

Expand Down
2 changes: 0 additions & 2 deletions internal/_e2e/script_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -94,8 +94,6 @@ func TestScript(t *testing.T) {
RequireExplicitExec: true,
RequireUniqueNames: true,
Setup: func(env *testscript.Env) error {
env.Setenv("CUE_EXPERIMENT", "modules")
env.Setenv("CUE_REGISTRY", "registry.cue.works")
env.Setenv("CUE_CACHED_GOBIN", os.Getenv("CUE_CACHED_GOBIN"))
env.Setenv("CUE_REGISTRY_TOKEN", os.Getenv("CUE_REGISTRY_TOKEN"))

Expand Down

0 comments on commit eaea301

Please sign in to comment.