mirror of
https://github.com/tweag/gomod2nix.git
synced 2024-11-09 12:09:08 +00:00
Follow symlinks when copying vendor environment
This commit is contained in:
parent
37752fe423
commit
32ba72372b
1 changed files with 2 additions and 2 deletions
|
@ -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
|
||||||
''}
|
''}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue