astral-sh/uv

Allow `--isolated` with script execution

Open

Aperta il 17 set 2025

Vedi su GitHub
 (2 commenti) (0 reazioni) (0 assegnatari)Rust (84.934 star) (3111 fork)batch import
enhancementgood first issue

Descrizione

Right now, we ignore the flag and display a warning

❯ uv run --isolated --script example.py
warning: `--isolated` is a no-op for Python scripts with inline metadata, which always run in isolation

but now that we changed scripts to use a stable path, we should allow --isolated to opt-out of that, e.g., for people in situations like https://github.com/astral-sh/uv/issues/15918

Guida contributor