Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Introduce a WebcVolumeFileSystem that works for any WEBC version #3690

Merged
merged 19 commits into from
Apr 13, 2023

Conversation

Michael-F-Bryan
Copy link
Contributor

@Michael-F-Bryan Michael-F-Bryan commented Mar 20, 2023

This introduces a virtual_fs::WebcVolumeFileSystem which builds on top of the webc::compat::Container compatibility layer instead of being tied to webc::v1.

The runners have also been updated to use this compatibility layer directly instead of wasmer_wasix::runners::WapmContainer.

This is needed to fix #3712 because the latest version of wapm-targz-to-pirita generates WEBC v2 files. Currently, the wasmer_wasix::runners::WapmContainer has a todo!() for loading WEBC v2 files because we have no way to implement the container_fs(&self) -> Arc<dyn FileSystem + Send + Sync> method.

@Michael-F-Bryan Michael-F-Bryan marked this pull request as ready for review March 22, 2023 15:14
@Michael-F-Bryan Michael-F-Bryan requested a review from theduke March 22, 2023 15:14
Copy link
Member

@syrusakbary syrusakbary left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good once tests pass

lib/vfs/src/lib.rs Show resolved Hide resolved
lib/vfs/src/webc_volume_fs.rs Show resolved Hide resolved
@Michael-F-Bryan Michael-F-Bryan merged commit 9a51987 into master Apr 13, 2023
@Michael-F-Bryan Michael-F-Bryan deleted the webc-compat branch April 13, 2023 16:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Fix Triple webc Dependency
3 participants