We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9b76817 commit fdec924Copy full SHA for fdec924
src/cli/main.rs
@@ -31,6 +31,7 @@ mod topical_doc;
31
32
use crate::errors::*;
33
use rustup::env_var::RUST_RECURSION_COUNT_MAX;
34
+use rustup::utils::utils;
35
36
use std::env;
37
use std::path::PathBuf;
@@ -60,6 +61,11 @@ fn run_rustup_inner() -> Result<()> {
60
61
// bugs in rustup.
62
do_recursion_guard()?;
63
64
+ // Before we do anything else, ensure we know where we are and who we
65
+ // are because otherwise we cannot proceed usefully.
66
+ utils::current_dir()?;
67
+ utils::current_exe()?;
68
+
69
// The name of arg0 determines how the program is going to behave
70
let arg0 = match env::var("RUSTUP_FORCE_ARG0") {
71
Ok(v) => Some(v),
0 commit comments