Skip to content

CustomFile in mem_fs can only be read once #5375

Open
@Arshia001

Description

@Arshia001

More context: #5374

Running mounted commands was broken because CustomFile is backed by a VirtualFile, and VirtualFile stores its offset whereas other file types are just pointers to file data. The issue was worked around in #5374, but more uses of copy_reference (which creates CustomFiles) exist and I'm not sure what other code paths are broken as a result.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workinglib-wasixIssues related to the WASIX toolchain.priority-mediumMedium priority issue📦 lib-vfsAbout wasmer-vfs

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions