modules: Add noVendor to module config

Fixes #7647
This commit is contained in:
Bjørn Erik Pedersen
2020-09-09 21:10:28 +02:00
parent 20af9a0781
commit d4611c4322
6 changed files with 122 additions and 60 deletions

View File

@@ -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.