-
Notifications
You must be signed in to change notification settings - Fork 900
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
os: implement os.(*File).ReadDir for -target=wasi #3696
Conversation
Thanks @achille-roussel for the PR. Looks like an actual CI fail here: |
e4438c4
to
0851c23
Compare
Paging Dr. @dkegel-fastly |
Bit jammed but will look at it as soon as I get unjammed... |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me after review.
@achille-roussel did you want to squash these commits yourself?
0851c23
to
66ca34c
Compare
Done! |
Hmm looks like something went wrong on the squash? Please check CI fails. |
|
Do we need to adjust the build tags for |
Signed-off-by: Achille Roussel <achille.roussel@gmail.com>
66ca34c
to
0606f64
Compare
I forgot to add |
Thank you for getting it all fixed up and thru CI @achille-roussel and to @dgryski for your erstwhile advice. Now merging, thanks again! |
yay! |
This PR adds support for reading directories when compiling to programs to WASI.
The implementation uses wasi-libc's DIR type and opendir/readdir/closedir functions.
Please take a look and let me know if you would like to see anything changed.