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

Add option to disable fetching managed toolchains #4425

Closed
wants to merge 3 commits into from

Conversation

zanieb
Copy link
Member

@zanieb zanieb commented Jun 20, 2024

Adds a toolchain preference (introduced in #4424) to only allow installed managed toolchains.

This might not actually belong in the toolchain preferences? i.e. the way it's currently spelled there's no option for "prefer system but allow installed managed toolchains". Enabling or disabling fetches could be totally independent of the toolchain preference. I'm on the fence on what the correct approach is. Regardless, this functionality is important and this is a good starting point for discussion on how to expose it.

@zanieb zanieb force-pushed the zb/toolchain-only-installed branch from 8dfaf0a to 29e49b5 Compare June 20, 2024 15:46
@zanieb zanieb marked this pull request as draft June 20, 2024 15:46
@zanieb zanieb added the preview Experimental behavior label Jun 20, 2024
@zanieb zanieb force-pushed the zb/toolchain-only-installed branch from 29e49b5 to 013d493 Compare June 20, 2024 15:48
@zanieb zanieb force-pushed the zb/toolchain-only-installed branch from 54aa755 to 6b028fd Compare June 20, 2024 16:26
@zanieb zanieb force-pushed the zb/toolchain-setting branch 2 times, most recently from 7963af4 to a2e6b9c Compare June 20, 2024 17:55
Base automatically changed from zb/toolchain-setting to main June 20, 2024 18:42
zanieb added a commit that referenced this pull request Jul 2, 2024
Adds a `toolchain-fetch` option alongside `toolchain-preference` with
`automatic` (default) and `manual` values allowing automatic toolchain
fetches to be disabled (replaces
#4425). When `manual`, toolchains
must be installed with `uv toolchain install`.

Note this was previously implemented with `if-necessary`, `always`,
`never` variants but the interaction between this and
`toolchain-preference` was too confusing. By reducing to a binary
option, things should be clearer. The `if-necessary` behavior moved to
`toolchain-preference=installed`. See
#4601 (comment) and
#4601 (comment)
@zanieb
Copy link
Member Author

zanieb commented Jul 2, 2024

Replaced by #4601

@zanieb zanieb closed this Jul 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
preview Experimental behavior
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant