diff options
author | Bjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com> | 2022-03-21 11:35:15 +0300 |
---|---|---|
committer | Bjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com> | 2022-04-08 14:26:17 +0300 |
commit | d070bdf10f14d233288f7318a4e9f7555f070a65 (patch) | |
tree | fff8d59f98bdab3027bb45c4e10ca88594332872 /commands/commands.go | |
parent | b08193971a821fc27e549a73120c15e5e5186775 (diff) |
Rework the Destination filesystem to make --renderStaticToDisk work
See #9626
Diffstat (limited to 'commands/commands.go')
-rw-r--r-- | commands/commands.go | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/commands/commands.go b/commands/commands.go index 01f076d1a..99b0866e5 100644 --- a/commands/commands.go +++ b/commands/commands.go @@ -18,10 +18,9 @@ import ( "os" "time" - "github.com/gohugoio/hugo/hugolib/paths" - "github.com/gohugoio/hugo/common/hugo" "github.com/gohugoio/hugo/common/loggers" + hpaths "github.com/gohugoio/hugo/common/paths" "github.com/gohugoio/hugo/config" "github.com/gohugoio/hugo/helpers" "github.com/spf13/cobra" @@ -243,14 +242,14 @@ func (cc *hugoBuilderCommon) timeTrack(start time.Time, name string) { func (cc *hugoBuilderCommon) getConfigDir(baseDir string) string { if cc.cfgDir != "" { - return paths.AbsPathify(baseDir, cc.cfgDir) + return hpaths.AbsPathify(baseDir, cc.cfgDir) } if v, found := os.LookupEnv("HUGO_CONFIGDIR"); found { - return paths.AbsPathify(baseDir, v) + return hpaths.AbsPathify(baseDir, v) } - return paths.AbsPathify(baseDir, "config") + return hpaths.AbsPathify(baseDir, "config") } func (cc *hugoBuilderCommon) getEnvironment(isServer bool) string { |