tpl/os: Revert readDir in theme behaviour

Fixes #9599
This commit is contained in:
Bjørn Erik Pedersen
2022-03-04 07:07:11 +01:00
parent e46e9ceb29
commit 673cde1eb1
4 changed files with 60 additions and 2 deletions

View File

@@ -33,7 +33,8 @@ func New(d *deps.Deps) *Namespace {
// The docshelper script does not have or need all the dependencies set up.
if d.PathSpec != nil {
readFileFs = afero.NewReadOnlyFs(afero.NewCopyOnWriteFs(d.PathSpec.BaseFs.Content.Fs, d.PathSpec.BaseFs.Work))
workFs = d.PathSpec.BaseFs.Work
// See #9599
workFs = d.PathSpec.BaseFs.WorkDir
}
return &Namespace{