diff options
author | zowoq <59103226+zowoq@users.noreply.github.com> | 2020-08-31 15:54:19 +1000 |
---|---|---|
committer | zowoq <59103226+zowoq@users.noreply.github.com> | 2020-09-08 16:32:39 +1000 |
commit | 23c781a810e6133a3c22eea04dc08d820a912ecc (patch) | |
tree | be556f283234b3dec6646c712921b12bb3e6aedc /doc/languages-frameworks | |
parent | 945fdbe1b91bb1cc24cf0f9963d8945dae52705c (diff) |
buildGoPackage: check/delete vendor
Diffstat (limited to 'doc/languages-frameworks')
-rw-r--r-- | doc/languages-frameworks/go.xml | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/doc/languages-frameworks/go.xml b/doc/languages-frameworks/go.xml index 26414f23c7d2f..7cff7a85c62c3 100644 --- a/doc/languages-frameworks/go.xml +++ b/doc/languages-frameworks/go.xml @@ -117,7 +117,9 @@ deis = buildGoPackage rec { goDeps = ./deps.nix; <co xml:id='ex-buildGoPackage-3' /> - buildFlags = [ "--tags" "release" ]; <co xml:id='ex-buildGoPackage-4' /> + deleteVendor = true; <co xml:id='ex-buildGoPackage-4' /> + + buildFlags = [ "--tags" "release" ]; <co xml:id='ex-buildGoPackage-5' /> } </programlisting> </example> @@ -145,6 +147,11 @@ deis = buildGoPackage rec { </callout> <callout arearefs='ex-buildGoPackage-4'> <para> + <varname>deleteVendor</varname> removes the pre-existing vendor directory. This should only be used if the dependencies included in the vendor folder are broken or incomplete. + </para> + </callout> + <callout arearefs='ex-buildGoPackage-5'> + <para> <varname>buildFlags</varname> is a list of flags passed to the go build command. </para> </callout> |