Skip to content

Commit

Permalink
Fix uv blocks install and maintenance tasks (#763)
Browse files Browse the repository at this point in the history
Setting uv mirror to undefined causes it to set the environment var as an empty string.
  • Loading branch information
webfiltered authored Jan 29, 2025
1 parent b98d7b9 commit 390882f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/virtualEnvironment.ts
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ export class VirtualEnvironment implements HasTelemetry {
VIRTUAL_ENV: this.venvPath,
// Empty strings are not valid values for these env vars,
// dropping them here to avoid passing them to uv.
UV_PYTHON_INSTALL_MIRROR: this.pythonMirror || undefined,
...(this.pythonMirror ? { UV_PYTHON_INSTALL_MIRROR: this.pythonMirror } : {}),
};

if (!this.uvPty) {
Expand Down

0 comments on commit 390882f

Please sign in to comment.