Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions integration/cmd/environments/setup_local_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,15 @@ func TestSetupLocalServerlessProvision(t *testing.T) {
t.Skipf("uv not found on PATH (%v)", err)
}

// Give `uv python install` its own install dir: it rewrites the minor-version
// links of every managed Python in the dir, which on Windows means deleting and
// recreating junctions. Concurrent uv users of the shared dir (the acceptance
// harness builds its wheel at the same time) then fail to import the stdlib.
pythonDir := t.TempDir()
t.Setenv("UV_PYTHON_INSTALL_DIR", filepath.Join(pythonDir, "installs"))
t.Setenv("UV_PYTHON_BIN_DIR", filepath.Join(pythonDir, "bin"))
t.Setenv("UV_PYTHON_INSTALL_REGISTRY", "0")

stdout, _ := testcli.RequireSuccessfulRun(t, ctx,
"environments", "setup-local",
"--serverless-version", testServerlessVersion,
Expand Down
Loading