summaryrefslogtreecommitdiff
path: root/internal/types
diff options
context:
space:
mode:
authorPaul Buetow <paul@buetow.org>2024-05-26 00:07:17 +0300
committerPaul Buetow <paul@buetow.org>2024-05-26 00:07:17 +0300
commit9be6694a4a70e06be713033145f763e9d7f86295 (patch)
tree8f27b47097f92c272706b4b12b6a85459af52116 /internal/types
parent9852cfaf6c44b9e2960719feb57c6d0e53598f3c (diff)
add negative memory fs test as well
Diffstat (limited to 'internal/types')
-rw-r--r--internal/types/entry.go4
1 files changed, 3 insertions, 1 deletions
diff --git a/internal/types/entry.go b/internal/types/entry.go
index c2ccb82..af1e991 100644
--- a/internal/types/entry.go
+++ b/internal/types/entry.go
@@ -72,7 +72,9 @@ func NewEntryFromFile(filePath string, vfsToUse ...vfs.VFS) (Entry, error) {
if err != err {
return Entry{}, err
}
- return NewEntry(bytes)
+ e, err := NewEntry(bytes)
+ e.vfs = vfs
+ return e, err
}
func NewEntryFromCopy(other Entry) (Entry, error) {