Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
rustc: Add setup hook to set $CARGO_HOME
This works around 'failed to open: /homeless-shelter/.cargo/.package-cache' with Rust 1.36 even when we're using 'cargo --frozen'.
- Loading branch information
Showing
2 changed files
with
6 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
# Fix 'failed to open: /homeless-shelter/.cargo/.package-cache' in rust 1.36. | ||
if [[ -z $IN_NIX_SHELL && -z $CARGO_HOME ]]; then | ||
export CARGO_HOME=$TMPDIR | ||
fi |