From 9a1e6d15a31ec667b2ff9cf20e43b1daca61e004 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bj=C3=B8rn=20Erik=20Pedersen?= Date: Wed, 9 Sep 2020 16:51:13 +0200 Subject: modules: Make ignoreVendor a glob pattern Fixes #7642 --- hugolib/hugo_modules_test.go | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'hugolib/hugo_modules_test.go') 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) -- cgit v1.2.3