mirror of
https://github.com/tweag/gomod2nix.git
synced 2024-11-05 01:59: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 + "/tools.go"} source/tools.go
|
||||
cd source
|
||||
cp -r ${vendorEnv} vendor
|
||||
cp -rL ${vendorEnv} vendor
|
||||
|
||||
${internal.install}
|
||||
'';
|
||||
|
@ -282,7 +282,7 @@ let
|
|||
${optionalString (modulesStruct != { }) ''
|
||||
if [ -n "${vendorEnv}" ]; then
|
||||
rm -rf vendor
|
||||
cp -r ${vendorEnv} vendor
|
||||
cp -rL ${vendorEnv} vendor
|
||||
fi
|
||||
''}
|
||||
|
||||
|
|
Loading…
Reference in a new issue