Skip to content

Conversation

@brian-pane
Copy link

No description provided.

@brian-pane
Copy link
Author

My new test cases try to create temp files and directories, and the wasm32 run is failing with:

thread 'main' panicked at library/std/src/sys/pal/wasi/os.rs:267:5:
no filesystem on wasm

Copy link
Member

@folkertdev folkertdev left a comment

Choose a reason for hiding this comment

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

I got wasm to work for the tests. You need to make tempfile not use that std::env::temp_dir function

Comment on lines +68 to +69
let temp_dir = tempfile::TempDir::new_in(temp_dir_path).unwrap();
let temp_path = temp_dir.path();
Copy link
Member

Choose a reason for hiding this comment

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

so yeah we'll have to use TempDir::new_in instead of TempDir::new throughout. We can probably extract this logic into a function when we add more tests.

Copy link
Member

@folkertdev folkertdev left a comment

Choose a reason for hiding this comment

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

nice, thanks!

@folkertdev folkertdev merged commit 8a1afb7 into trifectatechfoundation:main Apr 2, 2025
22 checks passed
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.

3 participants