-
Notifications
You must be signed in to change notification settings - Fork 605
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
Add --isolated
support to uv run
#5471
Merged
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
charliermarsh
added
cli
Related to the command line interface
preview
Experimental behavior
labels
Jul 26, 2024
charliermarsh
commented
Jul 26, 2024
crates/uv-cli/src/lib.rs
Outdated
/// Run the tool in an isolated virtual environment, rather than leveraging the base environment | ||
/// for the current project, to enforce strict isolation between dependencies. | ||
#[arg(long)] | ||
pub isolate: bool, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Explaining the difference between --isolate
and --no-workspace
is fairly nuanced, though I believe that both are necessary, they serve very different purposes.
konstin
approved these changes
Jul 26, 2024
charliermarsh
force-pushed
the
charlie/isolate
branch
from
July 29, 2024 13:48
bebf492
to
277d0d7
Compare
charliermarsh
force-pushed
the
charlie/isolate-run
branch
from
July 29, 2024 13:48
07cbc8f
to
e1412c5
Compare
charliermarsh
force-pushed
the
charlie/isolate
branch
from
July 29, 2024 13:49
277d0d7
to
0800ab1
Compare
charliermarsh
force-pushed
the
charlie/isolate-run
branch
2 times, most recently
from
July 29, 2024 14:02
1b4d926
to
a9560ea
Compare
charliermarsh
force-pushed
the
charlie/isolate
branch
from
July 29, 2024 17:43
0800ab1
to
a1b888d
Compare
charliermarsh
force-pushed
the
charlie/isolate-run
branch
from
July 29, 2024 17:43
a9560ea
to
383b43d
Compare
charliermarsh
force-pushed
the
charlie/isolate
branch
from
July 29, 2024 17:52
a1b888d
to
3c2add6
Compare
charliermarsh
force-pushed
the
charlie/isolate-run
branch
from
July 29, 2024 17:52
383b43d
to
99638ad
Compare
zanieb
approved these changes
Jul 30, 2024
charliermarsh
force-pushed
the
charlie/isolate
branch
from
July 30, 2024 19:04
3c2add6
to
c849e0d
Compare
charliermarsh
force-pushed
the
charlie/isolate-run
branch
from
July 30, 2024 19:19
99638ad
to
608a4cf
Compare
charliermarsh
changed the title
Add
Add Jul 30, 2024
--isolate
support to uv run
--isolated
support to uv run
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Summary
The culmination of #4730. We now have
uv run --isolated
which always uses a fresh environment (but includes the workspace dependencies as needed). This enables you to test with strict isolation (e.g.,uv run --isolated -p foo
will ensure thatfoo
is unable to import anything that isn't an actual dependency).Closes #5430.