Repository navigation
fix: update FindRust to work with rustup v1.28.0 - #591
Conversation
|
The intended way to specify a toolchain is by running |
jschwe
left a comment
There was a problem hiding this comment.
LGTM, I'll be travelling today so I won't be able to make a new release today
|
@jschwe Thanks for the quick response! The CI error does look weird to me as it doesn't seem related to my change, is this a pre-existing issue? |
|
Yeah, the CI issue with installing cbindgen is unrelated. It's popped up recently and I haven't had time to investigate what changed and why it's only failing on Linux. |
|
@rami3l Thanks for the PR! Please do note, that I still need to do a backport to the v0.5 branch and cut a new release. |
Closes #590 by applying the following mapping:
$_TOOLCHAIN_OVERRIDE(override)(active)$_TOOLCHAIN_DEFAULT(default)(default)or(active, default)Rationale
Corrosion would like to find out the path for the active toolchain via
rustup toolchain list --verbosefrom the toolchains marked(override)and/or(default): if(override)is present, then it's active, otherwise(default)would be active:corrosion/cmake/FindRust.cmake
Lines 423 to 428 in b88ec09
In rustup v1.28.0 beta (or rust-lang/rustup#3225 to be more precise), we have recognized that this output format has become a common source of confusion among users in determining the active toolchain, so we now mark the active toolchain with
(active)instead. Unfortunately, this has broken corrosion's parsing logic.Verification
Changes verified locally via the following interactions:
Concerns
-URust_TOOLCHAINis required to make this work. Has it been somehow set to""by something?