From 5e2f1289118dc1489fb782bf289298a05104eeaf Mon Sep 17 00:00:00 2001 From: =?utf8?q?Bj=C3=B8rn=20Erik=20Pedersen?= Date: Sun, 28 Mar 2021 21:42:44 +0200 Subject: [PATCH] Try to fix the fuzz build --- tpl/transform/fuzz.go | 24 ------------------------ 1 file changed, 24 deletions(-) diff --git a/tpl/transform/fuzz.go b/tpl/transform/fuzz.go index af3da9af..7d3a97fd 100644 --- a/tpl/transform/fuzz.go +++ b/tpl/transform/fuzz.go @@ -16,33 +16,9 @@ package transform import ( - "github.com/gohugoio/hugo/common/loggers" - "github.com/gohugoio/hugo/config" - "github.com/gohugoio/hugo/deps" - "github.com/gohugoio/hugo/helpers" - "github.com/gohugoio/hugo/hugofs" - "github.com/gohugoio/hugo/langs" - "github.com/spf13/afero" "github.com/spf13/viper" ) -type tstNoStringer struct{} - -func newDeps(cfg config.Provider) *deps.Deps { - cfg.Set("contentDir", "content") - cfg.Set("i18nDir", "i18n") - - l := langs.NewLanguage("en", cfg) - - cs, _ := helpers.NewContentSpec(l, loggers.NewErrorLogger(), afero.NewMemMapFs()) - - return &deps.Deps{ - Cfg: cfg, - Fs: hugofs.NewMem(l), - ContentSpec: cs, - } -} - func FuzzMarkdownify(data []byte) int { v := viper.New() v.Set("contentDir", "content") -- 2.30.2