summary refs log tree commit diff
path: root/doc
diff options
context:
space:
mode:
authorzowoq <59103226+zowoq@users.noreply.github.com>2020-08-12 19:33:03 +1000
committerzowoq <59103226+zowoq@users.noreply.github.com>2020-08-14 07:50:37 +1000
commit961aa3145599bb7f44afb2eff9667c7ba5d28159 (patch)
tree2ee2935f0fff823dc5070072195101c298d36f30 /doc
parent6a4339974726bb78dc9f59d54859087ee5fbd429 (diff)
downloadnixpkgs-961aa3145599bb7f44afb2eff9667c7ba5d28159.tar
nixpkgs-961aa3145599bb7f44afb2eff9667c7ba5d28159.tar.gz
nixpkgs-961aa3145599bb7f44afb2eff9667c7ba5d28159.tar.bz2
nixpkgs-961aa3145599bb7f44afb2eff9667c7ba5d28159.tar.lz
nixpkgs-961aa3145599bb7f44afb2eff9667c7ba5d28159.tar.xz
nixpkgs-961aa3145599bb7f44afb2eff9667c7ba5d28159.tar.zst
nixpkgs-961aa3145599bb7f44afb2eff9667c7ba5d28159.zip
buildGoModule: update deleteVendor docs
Diffstat (limited to 'doc')
-rw-r--r--doc/languages-frameworks/go.xml9
1 files changed, 8 insertions, 1 deletions
diff --git a/doc/languages-frameworks/go.xml b/doc/languages-frameworks/go.xml
index eee4706e551..26414f23c7d 100644
--- a/doc/languages-frameworks/go.xml
+++ b/doc/languages-frameworks/go.xml
@@ -40,7 +40,9 @@ pet = buildGoModule rec {
 
   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; {
     description = "Simple command-line snippet manager, written in Go";
@@ -68,6 +70,11 @@ pet = buildGoModule rec {
     </callout>
     <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>
       <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>
     </callout>