Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/gohugoio/hugoDocs.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>2021-02-14 21:24:13 +0300
committerBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>2021-02-16 18:30:01 +0300
commit31f70af7ef635ccb1965cf2e3f8aa1ec49419da7 (patch)
treee05b5bc916aa892d6fe3cbcf0c68be0d8e49ca86
parent2631df94ea63ccb0f2b7e35c182bb663da3009a3 (diff)
modules: Add config option modules.vendorClosest
Fixes #8235 Fixes #8242
-rw-r--r--content/en/hugo-modules/configuration.md3
1 files changed, 3 insertions, 0 deletions
diff --git a/content/en/hugo-modules/configuration.md b/content/en/hugo-modules/configuration.md
index 5405e4e51..f82902ebb 100644
--- a/content/en/hugo-modules/configuration.md
+++ b/content/en/hugo-modules/configuration.md
@@ -29,6 +29,9 @@ replacements = ""
noVendor {{< new-in "0.75.0" >}}
: A optional Glob pattern matching module paths to skip when vendoring, e.g. "github.com/**"
+vendorClosest {{< new-in "0.81.0" >}}
+: When enabled, we will pick the vendored module closest to the module using it. The default behaviour 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.
+
proxy
: Defines the proxy server to use to download remote modules. Default is `direct`, which means "git clone" and similar.