buildGoModule: update deleteVendor docs

This commit is contained in:
zowoq 2020-08-12 19:33:03 +10:00
parent 6a43399747
commit 961aa31455
2 changed files with 9 additions and 2 deletions

View File

@ -40,7 +40,9 @@ pet = buildGoModule rec {
subPackages = [ "." ]; <co xml:id='ex-buildGoModule-2' /> subPackages = [ "." ]; <co xml:id='ex-buildGoModule-2' />
runVend = true; <co xml:id='ex-buildGoModule-3' /> deleteVendor = true; <co xml:id='ex-buildGoModule-3' />
runVend = true; <co xml:id='ex-buildGoModule-4' />
meta = with lib; { meta = with lib; {
description = "Simple command-line snippet manager, written in Go"; description = "Simple command-line snippet manager, written in Go";
@ -67,6 +69,11 @@ pet = buildGoModule rec {
</para> </para>
</callout> </callout>
<callout arearefs='ex-buildGoModule-3'> <callout arearefs='ex-buildGoModule-3'>
<para>
<varname>deleteVendor</varname> removes the pre-existing vendor directory and fetches the dependencies. This should only be used if the dependencies included in the vendor folder are broken or incomplete.
</para>
</callout>
<callout arearefs='ex-buildGoModule-4'>
<para> <para>
<varname>runVend</varname> runs the vend command to generate the vendor directory. This is useful if your code depends on c code and go mod tidy does not include the needed sources to build. <varname>runVend</varname> runs the vend command to generate the vendor directory. This is useful if your code depends on c code and go mod tidy does not include the needed sources to build.
</para> </para>

View File

@ -89,7 +89,7 @@ let
fi fi
if [ -e vendor ]; then if [ -e vendor ]; then
echo "vendor folder exists, please set 'vendorSha256=null;' or 'deleteVendor=true;' in your expression" echo "vendor folder exists, please set 'vendorSha256 = null;' in your expression"
exit 10 exit 10
fi fi