Follow symlinks when copying vendor environment

This commit is contained in:
adisbladis 2022-09-02 16:43:31 +12:00
parent 37752fe423
commit 32ba72372b

View file

@ -205,7 +205,7 @@ let
cp ${pwd + "/go.sum"} source/go.sum cp ${pwd + "/go.sum"} source/go.sum
cp ${pwd + "/tools.go"} source/tools.go cp ${pwd + "/tools.go"} source/tools.go
cd source cd source
cp -r ${vendorEnv} vendor cp -rL ${vendorEnv} vendor
${internal.install} ${internal.install}
''; '';
@ -282,7 +282,7 @@ let
${optionalString (modulesStruct != { }) '' ${optionalString (modulesStruct != { }) ''
if [ -n "${vendorEnv}" ]; then if [ -n "${vendorEnv}" ]; then
rm -rf vendor rm -rf vendor
cp -r ${vendorEnv} vendor cp -rL ${vendorEnv} vendor
fi fi
''} ''}