Closed twang817 closed 2 years ago
Also, noticed that this works too:
zinit wait'[[ -v CARGO_HOME && -v RUSTUP_HOME ]]' for \
id-as'rust-uq' \
cargo'!uq' \
zdharma-continuum/null \
;
After some consideration, I think this should be closed as not a bug -- but I think an addition to the README.md is worthwhile.
As I understand it, rustup will install a private rustc and cargo per plugin. I wanted to use a global installation of rust:
When running, I get the error:
I added some debug:
I think the issue comes from the fact that RUSTUP_HOME and CARGO_HOME are not set for the duration of this script.
I removed the
wait'0c'
from the first zinit that installs rust globally, and it works again: