diff options
author | Bjørn Erik Pedersen <[email protected]> | 2020-09-09 21:10:28 +0200 |
---|---|---|
committer | Bjørn Erik Pedersen <[email protected]> | 2020-09-10 08:47:05 +0200 |
commit | d4611c4322dabfd8d2520232be578388029867db (patch) | |
tree | c68d7e14430b1f65021af6742b27a5496eb4aea4 /cache | |
parent | 20af9a078189ce1e92a1d2047c90fba2a4e91827 (diff) | |
download | hugo-d4611c4322dabfd8d2520232be578388029867db.tar.gz hugo-d4611c4322dabfd8d2520232be578388029867db.zip |
modules: Add noVendor to module config
Fixes #7647
Diffstat (limited to 'cache')
-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() |