Merge pull request #218472 from figsoda/cargo-setup
This commit is contained in:
commit
eedbf71d0d
1 changed files with 7 additions and 1 deletions
|
@ -6,7 +6,13 @@ cargoSetupPostUnpackHook() {
|
|||
# it writable. If we're using a tarball, the unpackFile hook already handles
|
||||
# this for us automatically.
|
||||
if [ -z $cargoVendorDir ]; then
|
||||
unpackFile "$cargoDeps"
|
||||
if [ -d "$cargoDeps" ]; then
|
||||
local dest=$(stripHash "$cargoDeps")
|
||||
cp -Lr --reflink=auto -- "$cargoDeps" "$dest"
|
||||
chmod -R +644 -- "$dest"
|
||||
else
|
||||
unpackFile "$cargoDeps"
|
||||
fi
|
||||
export cargoDepsCopy="$(realpath "$(stripHash $cargoDeps)")"
|
||||
else
|
||||
cargoDepsCopy="$(realpath "$(pwd)/$sourceRoot/${cargoRoot:+$cargoRoot/}${cargoVendorDir}")"
|
||||
|
|
Loading…
Reference in a new issue