aboutsummaryrefslogtreecommitdiffhomepage
path: root/hugolib/filesystems
diff options
context:
space:
mode:
authorBjørn Erik Pedersen <[email protected]>2020-09-09 21:10:28 +0200
committerBjørn Erik Pedersen <[email protected]>2020-09-10 08:47:05 +0200
commitd4611c4322dabfd8d2520232be578388029867db (patch)
treec68d7e14430b1f65021af6742b27a5496eb4aea4 /hugolib/filesystems
parent20af9a078189ce1e92a1d2047c90fba2a4e91827 (diff)
downloadhugo-d4611c4322dabfd8d2520232be578388029867db.tar.gz
hugo-d4611c4322dabfd8d2520232be578388029867db.zip
modules: Add noVendor to module config
Fixes #7647
Diffstat (limited to 'hugolib/filesystems')
-rw-r--r--hugolib/filesystems/basefs_test.go5
1 files changed, 4 insertions, 1 deletions
diff --git a/hugolib/filesystems/basefs_test.go b/hugolib/filesystems/basefs_test.go
index e3222af48..633c8fe08 100644
--- a/hugolib/filesystems/basefs_test.go
+++ b/hugolib/filesystems/basefs_test.go
@@ -21,6 +21,8 @@ import (
"strings"
"testing"
+ "github.com/gobwas/glob"
+
"github.com/gohugoio/hugo/config"
"github.com/gohugoio/hugo/langs"
@@ -49,12 +51,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()