-
Notifications
You must be signed in to change notification settings - Fork 409
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
Copy fixtures to temp dir #211
Copy fixtures to temp dir #211
Conversation
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.
hrm this looks like it is still failing. gonna hold off on sneaking this into 0.4.1 because it's 8pm and it's the weekend now <3
Just wanted to leave a quick note that tempdir is deprecated in favor of tempfile: rust-lang-deprecated/tempdir#45 |
526a8cb
to
c5b528b
Compare
r? @ashleygwilliams -- this should be ready for your attention again! |
If a test is going to do a potentially destructive operation, instead of mutating shared fixtures, it should copy the fixture to its own unique directory and then mutate that copy (doesn't this sound like Rust's borrowing and ownership rules?! ^.^)
The `tempdir` crate is deprecated and its functionality has been folded into the `tempfile` crate.
The implementation relies on the crate directory existing, and the `pkg` directory in the crate directory existing as well.
c5b528b
to
abfe66c
Compare
Rebased! |
Make sure these boxes are checked! 📦✅
rustfmt
installed and have yourcloned directory set to nightly
$ rustup override set nightly $ rustup component add rustfmt-preview --toolchain nightly
rustfmt
on the code base before submittingYou reference which issue is being closed in the PR text✨✨ 😄 Thanks so much for contributing to wasm-pack! 😄 ✨✨