From 20af9a078189ce1e92a1d2047c90fba2a4e91827 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bj=C3=B8rn=20Erik=20Pedersen?= Date: Wed, 9 Sep 2020 19:08:03 +0200 Subject: modules: Add ignoreImports to module imports config Fixes #7646 --- modules/config.go | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'modules/config.go') diff --git a/modules/config.go b/modules/config.go index a50845df3..5e95f0ac1 100644 --- a/modules/config.go +++ b/modules/config.go @@ -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 { -- cgit v1.2.3