mirror of
https://github.com/tweag/gomod2nix.git
synced 2024-11-10 04:21:33 +00:00
Merge pull request #75 from adisbladis/no-ln-cp
Copy vendor directory instead of symlinking to them
This commit is contained in:
commit
8054136f81
1 changed files with 2 additions and 2 deletions
|
@ -193,7 +193,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
|
||||||
ln -s ${vendorEnv} vendor
|
cp -r ${vendorEnv} vendor
|
||||||
|
|
||||||
${internal.install}
|
${internal.install}
|
||||||
'';
|
'';
|
||||||
|
@ -266,7 +266,7 @@ let
|
||||||
cd "$modRoot"
|
cd "$modRoot"
|
||||||
if [ -n "${vendorEnv}" ]; then
|
if [ -n "${vendorEnv}" ]; then
|
||||||
rm -rf vendor
|
rm -rf vendor
|
||||||
ln -s ${vendorEnv} vendor
|
cp -r ${vendorEnv} vendor
|
||||||
fi
|
fi
|
||||||
|
|
||||||
runHook postConfigure
|
runHook postConfigure
|
||||||
|
|
Loading…
Reference in a new issue