From 31f70af7ef635ccb1965cf2e3f8aa1ec49419da7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bj=C3=B8rn=20Erik=20Pedersen?= Date: Sun, 14 Feb 2021 19:24:13 +0100 Subject: [PATCH] modules: Add config option modules.vendorClosest Fixes #8235 Fixes #8242 --- content/en/hugo-modules/configuration.md | 3 +++ 1 file changed, 3 insertions(+) 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.