diff --git a/doc/languages-frameworks/go.xml b/doc/languages-frameworks/go.xml index eee4706e5519..26414f23c7d2 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 25b031a8229d..020f22ecd339 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