File tree 1 file changed +2
-1
lines changed
1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -37,6 +37,7 @@ pre_fetch_cargo_deps() {
37
37
38
38
local outLink=" --no-out-link"
39
39
local cargoVendorMsg=" "
40
+ local cargoVendorDir=" "
40
41
if [ -n " $CARGO_VENDOR_DIR " ]; then
41
42
if [ " $( realpath -s " $CARGO_VENDOR_DIR " ) " = " $( realpath -s " $SCRIPTDIR /.." ) " ]; then
42
43
cargoVendorDir=" $CARGO_VENDOR_DIR /$GIT_BRANCH "
@@ -45,11 +46,11 @@ pre_fetch_cargo_deps() {
45
46
fi
46
47
47
48
outLink=" --out-link " $cargoVendorDir " "
48
- cargoVendorMsg=" into $( realpath -s " $cargoVendorDir " ) "
49
49
fi
50
50
51
51
for (( attempt= 1 ; attempt<= maxAttempt; attempt++ )) ; do
52
52
if $NIX_BUILD $outLink -A " $nixAttrPath " ; then
53
+ [ -n " $cargoVendorDir " ] && cargoVendorMsg=" into $( realpath -s " $cargoVendorDir " ) "
53
54
echo " Cargo vendored dependencies pre-fetched " $cargoVendorMsg " after $attempt attempt(s)"
54
55
return 0
55
56
fi
You can’t perform that action at this time.
0 commit comments