This repository has been archived by the owner on Jan 22, 2025. It is now read-only.
Wrong target directory while executing cargo-install-all.sh with env CARGO_TARGET_DIR set #35663
Labels
community
Community contribution
Problem
I got an error while I was trying to install Solana binaries with cargo-install-all.sh:
I think it's because I set my CARGO_TARGET_DIR to ~/.cargo/target
Proposed Solution
You can get the target directory with:
Then just replace all "target/" with "$target_dir/".
This seemed to fix my problem.
I'd love to make a PR to fix it if this is a proper solution to you guys, along with other shell scripts with same issue.
Thx for this wonderful project.
The text was updated successfully, but these errors were encountered: