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

github.com/gohugoio/testmodBuilder.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-10-18 11:38:54 +0300
committerGitHub <noreply@github.com>2020-10-18 11:38:54 +0300
commit72e1e0c332911ca221c526b686e63fdf319ae13c (patch)
treec0bc4b0eee2f0d5e64111116d00ef6725fbcc426
parent3e92b572b106d67edd5147f765da818feb9b2345 (diff)
parent89dabfed1415bc6cf4db7e8dcfd146c80bd169a9 (diff)
Merge pull request #6 from QuLogic/update-globHEADmaster
Update IgnoreVendor for latest hugo.
-rw-r--r--build/go.mod2
-rw-r--r--build/main.go4
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,
})