Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use top-level --isolated for uv run #3431

Merged
merged 1 commit into from
May 7, 2024
Merged

Use top-level --isolated for uv run #3431

merged 1 commit into from
May 7, 2024

Conversation

charliermarsh
Copy link
Member

Summary

We already have a global --isolated, which means "ignore any on-disk configuration". I think we should reuse this for the "ignore the workspace" setting in uv run, rather than --no-workspace.

I've also merged the existing --isolated and --no-workspace behaviors in uv run into a single flag. We may not need separate flags for this, since the current intent seems to be "ignore the workspace environment"? Though we could always re-add later.

Closes #3421.

@charliermarsh charliermarsh requested a review from zanieb May 7, 2024 17:08
@charliermarsh charliermarsh added cli Related to the command line interface preview Experimental behavior labels May 7, 2024
Comment on lines -1827 to -1829
/// Always use a new virtual environment for execution.
#[arg(long)]
pub(crate) isolated: bool,
Copy link
Member

@zanieb zanieb May 7, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This (behavior) was useful for testing, but oh well I can add it back if I need it.

@charliermarsh charliermarsh merged commit e8b423d into main May 7, 2024
43 checks passed
@charliermarsh charliermarsh deleted the charlie/isolated branch May 7, 2024 17:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cli Related to the command line interface preview Experimental behavior
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Reconcile uv run --isolated with uv pip install --isolated
2 participants