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

Add filesystem mappings to the resolver #3913

Merged
merged 16 commits into from
Jun 8, 2023
Merged

Add filesystem mappings to the resolver #3913

merged 16 commits into from
Jun 8, 2023

Conversation

Michael-F-Bryan
Copy link
Contributor

@Michael-F-Bryan Michael-F-Bryan commented May 25, 2023

This PR fixes #3744 by teaching the resolver how to determine the resulting filesystem based on the [fs] table in the manifest for each package in a dependency tree.

I've also moved the DependencyGraph struct over to using a true graph library (petgraph) because I found myself constantly re-implementing common graph operations like dfs and toposort.

@Michael-F-Bryan Michael-F-Bryan force-pushed the fs-table branch 2 times, most recently from 7d86544 to 559d7c9 Compare June 6, 2023 09:50
@Michael-F-Bryan Michael-F-Bryan marked this pull request as ready for review June 6, 2023 14:01
Copy link
Contributor

@theduke theduke left a comment

Choose a reason for hiding this comment

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

Appreciate the comments.

Especially

/// As a result, we'll duct-tape things together and hope for the best 🤞

This looks reasonable to me, though I haven't done an entirely thorough review.

Can we have a test to ensure that a [fs] mapping with a local dir works?

lib/wasi/src/runtime/package_loader/load_package_tree.rs Outdated Show resolved Hide resolved
@Michael-F-Bryan Michael-F-Bryan merged commit 9be34ca into master Jun 8, 2023
@Michael-F-Bryan Michael-F-Bryan deleted the fs-table branch June 8, 2023 19:55
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.

Runners and wasmer_wasix::wapm don't take the [fs] table into account
2 participants