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

WrapFS: for compatibility with the stdlib io/fs package #86

Merged
merged 2 commits into from
Oct 20, 2022

Conversation

apparentlymart
Copy link
Contributor

Unfortunately in #49 we adopted a not-yet-finalized snapshot of the io/fs API and the final design doesn't quite match, and so this is a trivial adapter layer to allow passing standard library filesystems into LoadModuleFromFilesystem even though they do not (and cannot) implement our own FS interface.

This closes #63.

@apparentlymart apparentlymart requested a review from a team as a code owner October 19, 2022 00:51
@apparentlymart apparentlymart self-assigned this Oct 19, 2022
Unfortunately we adopted a not-yet-finalized snapshot of the io/fs API
and the final design doesn't quite match, and so this is a trivial adapter
layer to allow passing standard library filesystems into
LoadModuleFromFilesystem even though they do not (and cannot) implement
our own FS interface.
Copy link

@infogulch infogulch left a comment

Choose a reason for hiding this comment

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

I haven't run it, but this looks like a reasonable implementation to me.

@apparentlymart apparentlymart merged commit 81db043 into master Oct 20, 2022
@apparentlymart apparentlymart deleted the f-stdlib-fs branch October 20, 2022 16:21
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.

Use finalized io/fs.FS interface definitions
3 participants