Commit 2b38837
committed
fix(ensure_rustc_commit): resolve repo root before running rustc -vV
If this script is sourced from a working directory outside the repo
tree, rustup won't find rust-toolchain.toml and may select whatever
default toolchain happens to be active, giving us the wrong commit
hash. We now derive the repo root from BASH_SOURCE (two levels up from
the script's own directory) and cd there before invoking rustc, so the
toolchain selection stays correct regardless of the caller's CWD.1 parent 4067da0 commit 2b38837
1 file changed
Lines changed: 5 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
16 | | - | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
17 | 21 | | |
18 | 22 | | |
19 | 23 | | |
| |||
0 commit comments