mirror of
https://github.com/gohugoio/hugo.git
synced 2025-08-12 20:13:59 +02:00
modules: Add config option modules.vendorClosest
Fixes #8235 Fixes #8242
This commit is contained in:
@@ -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
|
||||
|
||||
|
Reference in New Issue
Block a user