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

Deprecate the --isolated flag #5466

Merged
merged 1 commit into from
Jul 30, 2024
Merged

Conversation

charliermarsh
Copy link
Member

@charliermarsh charliermarsh commented Jul 26, 2024

Summary

This PR deprecates the --isolated flag. The treatment varies across the APIs:

  • For non-preview APIs, we warn but treat it as equivalent to --no-config.
  • For preview APIs, we warn and ignore it, with two exceptions...
  • For tool run and run specifically, we don't even warn, because we can't differentiate the command-specific --isolated from the global --isolated.

@charliermarsh charliermarsh added the cli Related to the command line interface label Jul 26, 2024
@charliermarsh charliermarsh marked this pull request as ready for review July 26, 2024 00:15
@charliermarsh charliermarsh changed the base branch from charlie/no-project to charlie/isolate July 26, 2024 00:32
@j178
Copy link
Contributor

j178 commented Jul 26, 2024

Could you also update the sync-python-releases.yml workflow and the module commets in the uv-python/*.py scripts? Or do you think it would be better to handle this in a separate PR?

@charliermarsh
Copy link
Member Author

Yes, thanks for the reminder.

@charliermarsh charliermarsh changed the base branch from charlie/isolate to charlie/isolate-run July 26, 2024 00:56
scripts/release.sh Outdated Show resolved Hide resolved
@charliermarsh charliermarsh force-pushed the charlie/isolate-run branch 2 times, most recently from e1412c5 to 1b4d926 Compare July 29, 2024 13:49
@charliermarsh charliermarsh force-pushed the charlie/isolate-run branch 2 times, most recently from 383b43d to 99638ad Compare July 29, 2024 17:52
@charliermarsh charliermarsh force-pushed the charlie/deprecate-isolated branch 2 times, most recently from 2bf70cc to abf2d17 Compare July 29, 2024 17:54
charliermarsh added a commit that referenced this pull request Jul 30, 2024
## Summary

This PR gets rid of the global `--isolated` flag (which serves a bunch
of independent responsibilities right now) on `uv tool run` in favor of
a dedicated `--isolated` flag, which tells uv to avoid re-using an
existing tool environment for this invocation. We'll add the same thing
to `uv run`, to avoid using the base project environment.

This will become a bit clearer in #5466, when we deprecate the
`--isolated` flag on the preview APIs.
Base automatically changed from charlie/isolate-run to main July 30, 2024 19:27
@charliermarsh charliermarsh force-pushed the charlie/deprecate-isolated branch 2 times, most recently from 73105e2 to 2879fde Compare July 30, 2024 19:49
@charliermarsh charliermarsh enabled auto-merge (squash) July 30, 2024 19:53
@zanieb
Copy link
Member

zanieb commented Jul 30, 2024

Will review this next.

@charliermarsh
Copy link
Member Author

Oh I was just gonna merge -- go for it, np.

crates/uv/src/lib.rs Outdated Show resolved Hide resolved
crates/uv/src/lib.rs Outdated Show resolved Hide resolved
Copy link
Member

@zanieb zanieb left a comment

Choose a reason for hiding this comment

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

Thought the review request was new for some reason :)

@charliermarsh charliermarsh enabled auto-merge (squash) July 30, 2024 22:32
@charliermarsh charliermarsh merged commit 5d727cb into main Jul 30, 2024
57 checks passed
@charliermarsh charliermarsh deleted the charlie/deprecate-isolated branch July 30, 2024 22:40
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
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants