non-tmpfs mode should use memfs

This commit is contained in:
Mustafa Gezen 2022-04-21 07:39:10 +02:00
parent a97ccb698b
commit 45ad998d41

View File

@ -189,7 +189,10 @@ func NewProcessData(req *ProcessDataRequest) (*data.ProcessData, error) {
}
fsCreator := func(branch string) (billy.Filesystem, error) {
return osfs.New("."), nil
if req.TmpFsMode != "" {
return osfs.New("."), nil
}
return memfs.New(), nil
}
reqFsCreator := fsCreator
if req.FsCreator != nil {