Skip to content

Commit

Permalink
internal/_e2e: remove unused CUE_REGISTRY_TOKEN env var
Browse files Browse the repository at this point in the history
The token passed to `cue login --token` is now done via CUE_TEST_TOKEN,
and before it was done for a logins.json file via CUE_TEST_LOGINS.

It seems like I wrote a bit of code for CUE_REGISTRY_TOKEN initially,
but it was never wired up for anything at all. It just confused me,
so remove it entirely.

Signed-off-by: Daniel Martí <[email protected]>
Change-Id: Ib3d16591cc50ebb61950057cfc551e93e5ddecf0
Reviewed-on: https://review.gerrithub.io/c/cue-lang/cue/+/1210431
TryBot-Result: CUEcueckoo <[email protected]>
Reviewed-by: Roger Peppe <[email protected]>
Unity-Result: CUE porcuepine <[email protected]>
  • Loading branch information
mvdan committed Mar 4, 2025
1 parent 24e90ed commit 239f3d3
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion internal/_e2e/script_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,6 @@ func TestScript(t *testing.T) {
RequireUniqueNames: true,
Setup: func(env *testscript.Env) error {
env.Setenv("CUE_CACHED_GOBIN", os.Getenv("CUE_CACHED_GOBIN"))
env.Setenv("CUE_REGISTRY_TOKEN", os.Getenv("CUE_REGISTRY_TOKEN"))

// Just like cmd/cue/cmd.TestScript, set up separate cache and config dirs per test.
env.Setenv("CUE_CACHE_DIR", filepath.Join(env.WorkDir, "tmp/cachedir"))
Expand Down

0 comments on commit 239f3d3

Please sign in to comment.