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

Allows wasip1 guests to use arbitrarily nested pre-opens #1536

Merged
merged 2 commits into from
Jun 27, 2023

Conversation

codefromthecrypt
Copy link
Contributor

This removes composite filesystem support only used for guests compiled with GOOS=js. Now, these guests have mount a root path and do any composition externally (such as via symlinks or composing fs.FS).

Removing our composite filesystem reduces maintenance and allows wasip1 guests to use any paths they want.

Before, we had a composite filesystem adapter, allowing wasm compiled by Go's GOOS=js to emulate pre-opens. This implementation was incomplete, preventing mounts like "/usr/bin" to work in wasip1. GOOS=js is both experimental and will be removed after Go 1.22 is released (two versions of its alternative GOOS=wasip1).

Fixes #1525

This removes composite filesystem support only used for guests compiled
with `GOOS=js`. Now, these guests have mount a root path and do any
composition externally (such as via symlinks or composing `fs.FS`).

Removing our composite filesystem reduces maintenance and allows
`wasip1` guests to use any paths they want.

Before, we had a composite filesystem adapter, allowing wasm compiled by
Go's `GOOS=js` to emulate pre-opens. This implementation was incomplete,
preventing mounts like "/usr/bin" to work in wasip1. `GOOS=js` is both
experimental and will be removed after Go 1.22 is released (two versions
of its alternative `GOOS=wasip1`).

Fixes #1525

Signed-off-by: Adrian Cole <adrian@tetrate.io>
Signed-off-by: Adrian Cole <adrian@tetrate.io>
@codefromthecrypt codefromthecrypt merged commit 53ce5ee into main Jun 27, 2023
@codefromthecrypt codefromthecrypt deleted the gojs-root-only branch June 27, 2023 02:02
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.

Allow FSConfig to have arbitrarily nested mounts
2 participants