aboutsummaryrefslogtreecommitdiffhomepage
path: root/hugolib/hugo_modules_test.go
diff options
context:
space:
mode:
authorBjørn Erik Pedersen <[email protected]>2020-09-09 16:51:13 +0200
committerBjørn Erik Pedersen <[email protected]>2020-09-10 08:47:05 +0200
commit9a1e6d15a31ec667b2ff9cf20e43b1daca61e004 (patch)
tree1e5bfed58030989858820e3e2e1ceba0b46a31c2 /hugolib/hugo_modules_test.go
parent84adecf97baa91ab18cb26812fa864b4451d3c5f (diff)
downloadhugo-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.go8
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)