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

github.com/gohugoio/hugo.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
commitbdfbcf6f4b4ab53a617ab76f72e8aa28da6067de (patch)
treea5b2fb8aeabe9103bb44b2516533f2c498806d08 /modules/config.go
parentb60e9279ab95030828eb4f822be96250284c4d8d (diff)
modules: Add config option modules.vendorClosest
Fixes #8235 Fixes #8242
Diffstat (limited to 'modules/config.go')
-rw-r--r--modules/config.go7
1 files changed, 7 insertions, 0 deletions
diff --git a/modules/config.go b/modules/config.go
index 106becc60..1e3e3c798 100644
--- a/modules/config.go
+++ b/modules/config.go
@@ -279,6 +279,13 @@ type Config struct {
// "github.com/**".
NoVendor string
+ // 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.
+ VendorClosest bool
+
Replacements []string
replacementsMap map[string]string