Replies: 1 comment 1 reply
-
not a poor choice, just an oversight. It sounds like you think mise should use RUSTUP_HOME and CARGO_HOME and then the mise setting though? I think it should be the reverse. mise users should be able to sandbox their rust setup with mise while also having RUSTUP_HOME set |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Unlike other plugins such as the Go plugin which respects environment variables, the Rust plugin for Mise seems to completely ignore if the
CARGO_HOME
andRUSTUP_HOME
environment variables are set in the shell's environment, the code for this can be seen here.While the ability to set these paths via the Mise configuration file is nice, having it blatantly ignore the environment seems like a poor choice. A good example of why this would be bad is environment configurations that respect the XDG standard, such as my own.
I'm proposing to by default detect the environment variables
RUSTUP_HOME
andCARGO_HOME
from the shell environment, and if not set in the environment fallback to Mise's own configuration file allowing both to be possible and respect shell environment setups.Beta Was this translation helpful? Give feedback.
All reactions