Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/gohugoio/hugo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>2020-09-09 22:10:28 +0300
committerBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>2020-09-10 09:47:05 +0300
commitd4611c4322dabfd8d2520232be578388029867db (patch)
treec68d7e14430b1f65021af6742b27a5496eb4aea4 /hugolib
parent20af9a078189ce1e92a1d2047c90fba2a4e91827 (diff)
modules: Add noVendor to module config
Fixes #7647
Diffstat (limited to 'hugolib')
-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()