diff options
Diffstat (limited to 'cache/filecache/filecache_test.go')
-rw-r--r-- | cache/filecache/filecache_test.go | 5 |
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() |