-
Notifications
You must be signed in to change notification settings - Fork 723
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 persistent storage of installed toolchains #3797
Conversation
33cbd0d
to
9843b5b
Compare
9843b5b
to
b159182
Compare
I'm going to write a |
There's an open question about versioning. We probably shouldn't just discard old buckets like we do in the cache. Maybe we can version and write explicit migrations? |
Updated to include #3726 which wouldn't pass CI otherwise since it was unused. |
0454869
to
9517162
Compare
@@ -144,7 +144,6 @@ jobs: | |||
|
|||
- name: "Cargo test" | |||
run: | | |||
export UV_BOOTSTRAP_DIR="$(pwd)/bin" |
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.
🎉
9517162
to
8f2c59b
Compare
Prepares for merge of #3797, gating managed toolchain discovery with the preview flag to lower risk of releasing. e.g. ``` ❯ cargo dev -q fetch-python ❯ cargo run -q -- venv --python 3.11 Using Python 3.11.9 interpreter at: /opt/homebrew/opt/python@3.11/bin/python3.11 Creating virtualenv at: .venv Activate with: source .venv/bin/activate ❯ cargo run -q -- venv --preview --python 3.11 Using Python 3.11.7 interpreter at: /Users/zb/Library/Application Support/uv/toolchains/cpython-3.11.7-macos-aarch64-none/install/bin/python3 Creating virtualenv at: .venv Activate with: source .venv/bin/activate ``` We'll add automatic fetching of managed interpreters later.
Follow-up to #3797 to clean up the test isolation in `uv-interpreter`. I still want to expose a CLI at some point like `uv python <...>` for discovery and test from there, hopefully this will make that transition simpler.
Extends #3726
Moves toolchain storage out of
UV_BOOTSTRAP_DIR
(./bin
) into the proper user data directory as defined by #3726.Replaces
UV_BOOTSTRAP_DIR
withUV_TOOLCHAIN_DIR
for customization. Installed toolchains will be discovered without opt-in, but the idea is still that these are not yet user-facing.