From bdfbcf6f4b4ab53a617ab76f72e8aa28da6067de 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: modules: Add config option modules.vendorClosest Fixes #8235 Fixes #8242 --- modules/config.go | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'modules/config.go') 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 -- cgit v1.2.3