diff options
-rw-r--r-- | build/go.mod | 2 | ||||
-rw-r--r-- | build/main.go | 4 |
2 files changed, 4 insertions, 2 deletions
diff --git a/build/go.mod b/build/go.mod index 09ab567..c687cca 100644 --- a/build/go.mod +++ b/build/go.mod @@ -3,7 +3,7 @@ module github.com/gohugoio/testmodBuilder/build go 1.12 require ( - github.com/gohugoio/hugo v0.56.0 + github.com/gohugoio/hugo v0.75.1 github.com/gohugoio/testmodBuilder/mods v0.0.0-20190520184928-c56af20f2e95 github.com/pkg/errors v0.8.1 github.com/spf13/afero v1.2.2 diff --git a/build/main.go b/build/main.go index da86f30..06f73e6 100644 --- a/build/main.go +++ b/build/main.go @@ -13,6 +13,7 @@ import ( "runtime" "strings" + "github.com/gohugoio/hugo/hugofs/glob" "github.com/gohugoio/hugo/modules" testmods "github.com/gohugoio/testmodBuilder/mods" "github.com/pkg/errors" @@ -109,10 +110,11 @@ func (b *mb) newModulesHandler(m *testmods.Md) *modules.Client { modConfig := modules.DefaultModuleConfig modConfig.Imports = imports + globAll, _ := glob.GetGlob("**") client := modules.NewClient(modules.ClientConfig{ Fs: b.fs, WorkingDir: b.abs(m.Name()), - IgnoreVendor: true, + IgnoreVendor: globAll, ModuleConfig: modConfig, }) |