fix: make sure VIRTUAL_ENV is an absolute path (#224)
Some checks failed
test-cache-windows / test-setup-cache (push) Waiting to run
test-cache-windows / test-restore-cache (push) Blocked by required conditions
test-cache / test-setup-cache (auto, selfhosted-ubuntu-arm64) (push) Waiting to run
test-cache / test-setup-cache (false, selfhosted-ubuntu-arm64) (push) Waiting to run
test-cache / test-setup-cache (true, selfhosted-ubuntu-arm64) (push) Waiting to run
test-cache / test-restore-cache (auto, selfhosted-ubuntu-arm64) (push) Blocked by required conditions
test-cache / test-restore-cache (auto, ubuntu-latest) (push) Blocked by required conditions
test-cache / test-restore-cache (false, selfhosted-ubuntu-arm64) (push) Blocked by required conditions
test-cache / test-restore-cache (false, ubuntu-latest) (push) Blocked by required conditions
test-cache / test-restore-cache (true, selfhosted-ubuntu-arm64) (push) Blocked by required conditions
test-cache / test-restore-cache (true, ubuntu-latest) (push) Blocked by required conditions
test-cache / test-restore-cache-requirements-txt (push) Blocked by required conditions
test-cache / test-setup-cache-local (push) Waiting to run
test-cache / test-restore-cache-local (push) Blocked by required conditions
test-cache / test-tilde-expansion-cache-local-path (push) Waiting to run
test-cache / test-tilde-expansion-cache-dependency-glob (push) Waiting to run
test-cache / cleanup-tilde-expansion-tests (push) Blocked by required conditions
test-windows / test-default-version (push) Waiting to run
test / test-default-version (macos-14) (push) Waiting to run
test / test-default-version (macos-latest) (push) Waiting to run
test / test-checksum (a70cbfbf3bb5c08b2f84963b4f12c94e08fbb2468ba418a3bfe1066fbe9e7218, macos-latest) (push) Waiting to run
test / test-tool-install (macos-14) (push) Waiting to run
test / test-tool-install (macos-latest) (push) Waiting to run
test / test-tool-install (windows-latest) (push) Waiting to run
test / test-tilde-expansion-tool-dirs (push) Waiting to run
CodeQL / Analyze (TypeScript) (push) Failing after 29s
Release Drafter / ✏️ Draft release (push) Failing after 8s
Check dist/ / check-dist (push) Successful in 49s
test-cache / test-setup-cache (auto, ubuntu-latest) (push) Failing after 9s
test-cache / test-setup-cache (false, ubuntu-latest) (push) Failing after 10s
test-cache / test-setup-cache (true, ubuntu-latest) (push) Failing after 9s
test-cache / test-setup-cache-requirements-txt (push) Failing after 9s
test-cache / test-setup-cache-dependency-glob (push) Failing after 9s
test-cache / test-restore-cache-dependency-glob (push) Has been skipped
test-cache / test-no-python-version (push) Failing after 9s
test / test-default-version (ubuntu-latest) (push) Failing after 9s
test / test-specific-version (0.3) (push) Failing after 9s
test / build (push) Successful in 48s
test / test-specific-version (0.3.0) (push) Successful in 16s
test / test-specific-version (0.3.x) (push) Failing after 10s
test / test-specific-version (0.3.2) (push) Successful in 16s
test / test-specific-version (>=0.3.0) (push) Failing after 9s
test / test-semver-range (push) Failing after 10s
test / test-with-explicit-token (push) Failing after 9s
test / test-checksum (4d9279ad5ca596b1e2d703901d508430eb07564dc4d8837de9e2fca9c90f8ecd, ubuntu-latest) (push) Successful in 15s
test / test-uvx (push) Failing after 9s
test / test-tool-install (ubuntu-latest) (push) Failing after 9s
test / test-python-version (macos-latest) (push) Failing after 10s
test / test-python-version (ubuntu-latest) (push) Failing after 9s
test / test-python-version (windows-latest) (push) Failing after 9s

Closes https://github.com/astral-sh/setup-uv/issues/219
This commit is contained in:
samypr100 2025-01-06 18:34:15 -04:00 committed by GitHub
parent 7b290f7b85
commit 7768fe6bf0
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 2 additions and 2 deletions

2
dist/setup/index.js generated vendored
View File

@ -99397,7 +99397,7 @@ function setupPython() {
venvBinPath = ".venv/Scripts"; venvBinPath = ".venv/Scripts";
} }
core.addPath(venvBinPath); core.addPath(venvBinPath);
core.exportVariable("VIRTUAL_ENV", ".venv"); core.exportVariable("VIRTUAL_ENV", path.resolve(".venv"));
} }
}); });
} }

View File

@ -143,7 +143,7 @@ async function setupPython(): Promise<void> {
venvBinPath = ".venv/Scripts"; venvBinPath = ".venv/Scripts";
} }
core.addPath(venvBinPath); core.addPath(venvBinPath);
core.exportVariable("VIRTUAL_ENV", ".venv"); core.exportVariable("VIRTUAL_ENV", path.resolve(".venv"));
} }
} }