From d4611c4322dabfd8d2520232be578388029867db Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bj=C3=B8rn=20Erik=20Pedersen?= Date: Wed, 9 Sep 2020 21:10:28 +0200 Subject: modules: Add noVendor to module config Fixes #7647 --- cache/filecache/filecache_test.go | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'cache') 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() -- cgit v1.2.3