diff options
author | Bjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com> | 2022-09-29 12:37:38 +0300 |
---|---|---|
committer | Bjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com> | 2022-09-29 13:27:25 +0300 |
commit | 4611b6920ba73fbb0cec13b4df8ce659ea97f760 (patch) | |
tree | 7e82c0e414e4826e1d861967b053f5e77107e5a4 | |
parent | 2171e3c9a55bbc39a052f141180ffcad5a5941cb (diff) |
Fix htimes /: operation not permitted error on config changes
Regression introduced in v0.104.1.
-rw-r--r-- | commands/commandeer.go | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/commands/commandeer.go b/commands/commandeer.go index 5e5e1b3ab..a66601dfa 100644 --- a/commands/commandeer.go +++ b/commands/commandeer.go @@ -79,8 +79,8 @@ type commandeer struct { changeDetector *fileChangeDetector // We need to reuse these on server rebuilds. - // These 2 will be different if --renderStaticToDisk is set. publishDirFs afero.Fs + publishDirStaticFs afero.Fs publishDirServerFs afero.Fs h *hugoBuilderCommon @@ -170,6 +170,7 @@ func (c *commandeer) Set(key string, value any) { func (c *commandeer) initFs(fs *hugofs.Fs) error { c.publishDirFs = fs.PublishDir + c.publishDirStaticFs = fs.PublishDirStatic c.publishDirServerFs = fs.PublishDirServer c.DepsCfg.Fs = fs @@ -426,6 +427,7 @@ func (c *commandeer) loadConfig() error { if c.publishDirFs != nil { // Need to reuse the destination on server rebuilds. fs.PublishDir = c.publishDirFs + fs.PublishDirStatic = c.publishDirStaticFs fs.PublishDirServer = c.publishDirServerFs } else { if c.renderStaticToDisk { |