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

Write use-uv = true in no-prompt mode #1098

Merged
merged 1 commit into from
May 20, 2024
Merged

Write use-uv = true in no-prompt mode #1098

merged 1 commit into from
May 20, 2024

Conversation

charliermarsh
Copy link
Member

@charliermarsh charliermarsh commented May 20, 2024

Summary

Ensures that if the user runs in InstallMode::NoPrompts, we still write the default (use-uv = true) to the configuration file.

Closes #1081.

Test Plan

rye on  charlie/def:main
❯ cargo run self install -y
    Finished dev [unoptimized + debuginfo] target(s) in 0.08s
     Running `target/debug/rye self install -y`
Welcome to Rye!

This installer will install rye to /Users/crmarsh/.rye
This path can be changed by exporting the RYE_HOME environment variable.

Details:
  Rye Version: 0.34.0
  Platform: macos (aarch64)

Installed binary to /Users/crmarsh/.rye/shims/rye
Updated self-python installation at /Users/crmarsh/.rye/self

The rye directory /Users/crmarsh/.rye/shims was not detected on PATH.
It is highly recommended that you add it.
Added to PATH.
note: for this to take effect you will need to restart your shell or run this manually:

    source "$HOME/.rye/env"

To make it work with zsh, you might need to add this to your .zprofile:

    source "$HOME/.rye/env"

To make it work with fish, run this once instead:

    set -Ua fish_user_paths "$HOME/.rye/shims"

For more information read https://rye-up.com/guide/installation/

All done!
rye on  charlie/def:main
❯ cat /Users/crmarsh/.rye/config.toml
[behavior]
use-uv = true
global-python = true

@charliermarsh charliermarsh added the bug Something isn't working label May 20, 2024
@charliermarsh charliermarsh enabled auto-merge (squash) May 20, 2024 19:41
@charliermarsh charliermarsh merged commit 0cd65d8 into main May 20, 2024
8 checks passed
@charliermarsh charliermarsh deleted the charlie/def branch May 20, 2024 19:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Installing rye with --yes does not install interactive defaults
1 participant