From 961aa3145599bb7f44afb2eff9667c7ba5d28159 Mon Sep 17 00:00:00 2001
From: zowoq <59103226+zowoq@users.noreply.github.com>
Date: Wed, 12 Aug 2020 19:33:03 +1000
Subject: [PATCH] buildGoModule: update deleteVendor docs
---
doc/languages-frameworks/go.xml | 9 ++++++++-
pkgs/development/go-modules/generic/default.nix | 2 +-
2 files changed, 9 insertions(+), 2 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 = [ "." ];
- runVend = true;
+ deleteVendor = true;
+
+ runVend = true;
meta = with lib; {
description = "Simple command-line snippet manager, written in Go";
@@ -67,6 +69,11 @@ pet = buildGoModule rec {
+
+ deleteVendor 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.
+
+
+
runVend 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.
diff --git a/pkgs/development/go-modules/generic/default.nix b/pkgs/development/go-modules/generic/default.nix
index 25b031a8229..020f22ecd33 100644
--- a/pkgs/development/go-modules/generic/default.nix
+++ b/pkgs/development/go-modules/generic/default.nix
@@ -89,7 +89,7 @@ let
fi
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
fi