summaryrefslogtreecommitdiffstats
path: root/cache
diff options
context:
space:
mode:
authorBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>2020-09-09 21:10:28 +0200
committerBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>2020-09-10 08:47:05 +0200
commitd4611c4322dabfd8d2520232be578388029867db (patch)
treec68d7e14430b1f65021af6742b27a5496eb4aea4 /cache
parent20af9a078189ce1e92a1d2047c90fba2a4e91827 (diff)
modules: Add noVendor to module config
Fixes #7647
Diffstat (limited to 'cache')
-rw-r--r--cache/filecache/filecache_test.go5
1 files changed, 4 insertions, 1 deletions
diff --git a/cache/filecache/filecache_test.go b/cache/filecache/filecache_test.go
index 5a5dac983..00b4e5573 100644
--- a/cache/filecache/filecache_test.go
+++ b/cache/filecache/filecache_test.go
@@ -25,6 +25,8 @@ import (
"testing"
"time"
+ "github.com/gobwas/glob"
+
"github.com/gohugoio/hugo/langs"
"github.com/gohugoio/hugo/modules"
@@ -314,12 +316,13 @@ func initConfig(fs afero.Fs, cfg config.Provider) error {
if !filepath.IsAbs(themesDir) {
themesDir = filepath.Join(workingDir, themesDir)
}
+ globAll := glob.MustCompile("**", '/')
modulesClient := modules.NewClient(modules.ClientConfig{
Fs: fs,
WorkingDir: workingDir,
ThemesDir: themesDir,
ModuleConfig: modConfig,
- IgnoreVendor: true,
+ IgnoreVendor: globAll,
})
moduleConfig, err := modulesClient.Collect()