buildGoModule: copy vendor instead of symlinking
Allow the second phase to modify the contents of the vendor directory.
This commit is contained in:
parent
d1febbeb1b
commit
66d424514f
1 changed files with 4 additions and 4 deletions
|
@ -136,10 +136,10 @@ let
|
|||
export GOSUMDB=off
|
||||
export GOPROXY=off
|
||||
cd "$modRoot"
|
||||
if [ -n "${go-modules}" ]; then
|
||||
rm -rf vendor
|
||||
ln -s ${go-modules} vendor
|
||||
fi
|
||||
'' + lib.optionalString (go-modules != "") ''
|
||||
rm -rf vendor
|
||||
cp -r --reflink=auto ${go-modules} vendor
|
||||
'' + ''
|
||||
|
||||
runHook postConfigure
|
||||
'';
|
||||
|
|
Loading…
Reference in a new issue