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

@@ -219,7 +219,7 @@ func (c *Client) Vendor() error {
// This is the project.
continue
}
// We respect the --ignoreVendor flag even for the vendor command.
if !t.IsGoMod() && !t.Vendor() {
// We currently do not vendor components living in the
// theme directory, see https://github.com/gohugoio/hugo/issues/5993