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
@ -136,10 +136,10 @@ let
|
|||||||
export GOSUMDB=off
|
export GOSUMDB=off
|
||||||
export GOPROXY=off
|
export GOPROXY=off
|
||||||
cd "$modRoot"
|
cd "$modRoot"
|
||||||
if [ -n "${go-modules}" ]; then
|
'' + lib.optionalString (go-modules != "") ''
|
||||||
rm -rf vendor
|
rm -rf vendor
|
||||||
ln -s ${go-modules} vendor
|
cp -r --reflink=auto ${go-modules} vendor
|
||||||
fi
|
'' + ''
|
||||||
|
|
||||||
runHook postConfigure
|
runHook postConfigure
|
||||||
'';
|
'';
|
||||||
|
Loading…
x
Reference in New Issue
Block a user