modules: Add ignoreImports to module imports config

Fixes #7646
This commit is contained in:
Bjørn Erik Pedersen
2020-09-09 19:08:03 +02:00
parent 9a1e6d15a3
commit 20af9a0781
4 changed files with 70 additions and 25 deletions

View File

@@ -301,10 +301,12 @@ func (v HugoVersion) IsValid() bool {
}
type Import struct {
Path string // Module path
IgnoreConfig bool // Ignore any config.toml found.
Disable bool // Turn off this module.
Mounts []Mount
Path string // Module path
IgnoreConfig bool // Ignore any config in config.toml (will still folow imports).
IgnoreImports bool // Do not follow any configured imports.
NoVendor bool // Never vendor this import (only allowed in main project).
Disable bool // Turn off this module.
Mounts []Mount
}
type Mount struct {