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>2020-09-09 22:10:28 +0300
committerBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>2020-09-10 09:47:05 +0300
commitd4611c4322dabfd8d2520232be578388029867db (patch)
treec68d7e14430b1f65021af6742b27a5496eb4aea4 /modules/config.go
parent20af9a078189ce1e92a1d2047c90fba2a4e91827 (diff)
modules: Add noVendor to module config
Fixes #7647
Diffstat (limited to 'modules/config.go')
-rw-r--r--modules/config.go4
1 files changed, 4 insertions, 0 deletions
diff --git a/modules/config.go b/modules/config.go
index 5e95f0ac1..1964479f4 100644
--- a/modules/config.go
+++ b/modules/config.go
@@ -227,6 +227,10 @@ type Config struct {
// Will be validated against the running Hugo version.
HugoVersion HugoVersion
+ // A optional Glob pattern matching module paths to skip when vendoring, e.g.
+ // "github.com/**".
+ NoVendor string
+
// Configures GOPROXY.
Proxy string
// Configures GONOPROXY.