-
Notifications
You must be signed in to change notification settings - Fork 893
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
Undocumented environment variables? #3957
Comments
You did not describe the "problem you are trying to solve". What is it? What are you confused about? |
Sorry, my English is far from perfect. |
Right -- the question I'm asking is, what are you trying to achieve that you need to understand these variables? |
How to correctly access the staging manifests at least. I just noticed that |
I'm not sure it makes sense to me to document a list of internal-only environment variables. I think most of these should probably remain internal and keeping those undocumented seems okay to me. |
Problem you are trying to solve
https://rust-lang.github.io/rustup/environment-variables.html
https://rust-lang.github.io/rustup/dev-guide/tips-and-tricks.html
After reading the
rustup
code a little (rust-lang/rust-forge#760), I found out that not all the environment variables it supports are documented. A quick search usinggrep -rniI -e "var(" -e "env\!(" -e "env(" -e "var_os("
revealed at least these:rustup/src/cli/self_update/unix.rs
Line 21 in edf5c22
rustup/src/cli/self_update/windows.rs
Line 186 in edf5c22
rustup/src/cli/self_update.rs
Line 512 in edf5c22
rustup/src/cli/self_update.rs
Line 627 in edf5c22
rustup/src/dist/mod.rs
Line 368 in edf5c22
rustup/src/dist/mod.rs
Line 534 in edf5c22
rustup/src/dist/mod.rs
Line 660 in edf5c22
RUSTUP_DIST_SERVER
for this, contrary to f08c4fe:rustup/doc/user-guide/src/environment-variables.md
Lines 17 to 20 in edf5c22
rustup/src/utils/utils.rs
Line 248 in edf5c22
rustup/src/config.rs
Line 274 in edf5c22
rustup/src/config.rs
Line 400 in edf5c22
rustup/src/toolchain.rs
Line 247 in edf5c22
Solution you'd like
Describe all this somewhere and/or make a list of variables for internal use so as not to confuse people.
The text was updated successfully, but these errors were encountered: