diff options
author | Bjørn Erik Pedersen <[email protected]> | 2020-09-09 16:51:13 +0200 |
---|---|---|
committer | Bjørn Erik Pedersen <[email protected]> | 2020-09-10 08:47:05 +0200 |
commit | 9a1e6d15a31ec667b2ff9cf20e43b1daca61e004 (patch) | |
tree | 1e5bfed58030989858820e3e2e1ceba0b46a31c2 /hugolib/hugo_modules_test.go | |
parent | 84adecf97baa91ab18cb26812fa864b4451d3c5f (diff) | |
download | hugo-9a1e6d15a31ec667b2ff9cf20e43b1daca61e004.tar.gz hugo-9a1e6d15a31ec667b2ff9cf20e43b1daca61e004.zip |
modules: Make ignoreVendor a glob pattern
Fixes #7642
Diffstat (limited to 'hugolib/hugo_modules_test.go')
-rw-r--r-- | hugolib/hugo_modules_test.go | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/hugolib/hugo_modules_test.go b/hugolib/hugo_modules_test.go index b69503021..037684862 100644 --- a/hugolib/hugo_modules_test.go +++ b/hugolib/hugo_modules_test.go @@ -126,11 +126,15 @@ baseURL = "https://example.com" title = "My Modular Site" workingDir = %q theme = %q -ignoreVendor = %t +ignoreVendorPaths = %q ` - config := fmt.Sprintf(configTemplate, workingDir, m.Path(), ignoreVendor) + ignoreVendorPaths := "" + if ignoreVendor { + ignoreVendorPaths = "github.com/**" + } + config := fmt.Sprintf(configTemplate, workingDir, m.Path(), ignoreVendorPaths) b := newTestSitesBuilder(t) |