Skip to content
Open
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
wip: testing overlayfs
  • Loading branch information
rymut committed Dec 16, 2024
commit 6ed9c9bbc3a1da9f35ecb9c30c9b6f71185b6707
3 changes: 3 additions & 0 deletions hugolib/filesystems/basefs.go
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,9 @@ func (f *fakeLockfileMutex) Lock() (func(), error) {
return func() { f.mu.Unlock() }, nil
}

func (b *BaseFs) OverlayFs() (*overlayfs.OverlayFs) {
return b.theBigFs.overlayMounts
}
// Tries to acquire a build lock.
func (b *BaseFs) LockBuild() (unlock func(), err error) {
return b.buildMu.Lock()
Expand Down
2 changes: 1 addition & 1 deletion tpl/os/os.go
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ func New(d *deps.Deps) *Namespace {
})
// See #9599
workFs = d.PathSpec.BaseFs.WorkDir
projectFs = d.PathSpec.BaseFs.SourceFilesystems.Work
projectFs = d.PathSpec.BaseFs.OverlayFs()
}

return &Namespace{
Expand Down