diff options
author | Bjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com> | 2023-06-27 09:16:42 +0200 |
---|---|---|
committer | Bjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com> | 2023-06-27 21:55:35 +0200 |
commit | fa0e16f4c79a703d122f1e3a3a99f4b779aea9b2 (patch) | |
tree | 1c4d7c86daee453906cf91ae7a208ab54aa7d1ab /commands | |
parent | 12e4c4d5dc7cdb700a6b4f341171a8361e2faa7b (diff) |
Fix false path warnings with resources.PostProcess
Fixes #7735
Diffstat (limited to 'commands')
-rw-r--r-- | commands/hugobuilder.go | 13 |
1 files changed, 0 insertions, 13 deletions
diff --git a/commands/hugobuilder.go b/commands/hugobuilder.go index 71992e409..3e96bfc73 100644 --- a/commands/hugobuilder.go +++ b/commands/hugobuilder.go @@ -45,7 +45,6 @@ import ( "github.com/gohugoio/hugo/resources/page" "github.com/gohugoio/hugo/tpl" "github.com/gohugoio/hugo/watcher" - "github.com/spf13/afero" "github.com/spf13/fsync" "golang.org/x/sync/errgroup" "golang.org/x/sync/semaphore" @@ -419,18 +418,6 @@ func (c *hugoBuilder) build() error { return err } - if c.r.printPathWarnings { - hugofs.WalkFilesystems(h.Fs.PublishDir, func(fs afero.Fs) bool { - if dfs, ok := fs.(hugofs.DuplicatesReporter); ok { - dupes := dfs.ReportDuplicates() - if dupes != "" { - c.r.logger.Warnln("Duplicate target paths:", dupes) - } - } - return false - }) - } - if c.r.printUnusedTemplates { unusedTemplates := h.Tmpl().(tpl.UnusedTemplatesProvider).UnusedTemplates() for _, unusedTemplate := range unusedTemplates { |