From 03e54683f519045f3fd0f7d2e75fc851609f0f19 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bj=C3=B8rn=20Erik=20Pedersen?= Date: Thu, 13 Feb 2025 11:00:02 +0100 Subject: [PATCH] modules: Add GOAUTH to module config Closes #13385 --- content/en/hugo-modules/configuration.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/content/en/hugo-modules/configuration.md b/content/en/hugo-modules/configuration.md index 0bc1b47d8..58a3e36f1 100644 --- a/content/en/hugo-modules/configuration.md +++ b/content/en/hugo-modules/configuration.md @@ -22,6 +22,7 @@ proxy = 'direct' replacements = '' vendorClosest = false workspace = 'off' +auth = '' {{< /code-toggle >}} noProxy @@ -36,6 +37,9 @@ private proxy : (`string`) Defines the proxy server to use to download remote modules. Default is `direct`, which means "git clone" and similar. +auth +: (`string`) {{< new-in 0.144.0 >}} Configures `GOAUTH` when running the Go command for module operations. This is a semicolon-separated list of authentication commands for go-import and HTTPS module mirror interactions. This is useful for private repositories. See `go help goauth` for more information. + vendorClosest : (`bool`) When enabled, we will pick the vendored module closest to the module using it. The default behavior is to pick the first. Note that there can still be only one dependency of a given module path, so once it is in use it cannot be redefined. Default is `false`.