-
Notifications
You must be signed in to change notification settings - Fork 118
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
fix(wash): windows path to target #1486
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.
LGTM 🚀
Would love a test for this so we can catch it in the future when we change/to make sure it keeps not being broken, but that can be a follow up thing!
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.
Just a note we'll need to make sure this makes it into the upcoming wash-lib release so we can release the fix in wash-cli
Hmm, it looks like a lot of the |
Verbatim paths on Windows are not well supported, e.g. "\\\\?\\C:\\Users..." while technically valid, causes some fs api's like `exists` to fail errantly. The fix is to use a third party lib normpath to normalize the path to the wasm binary. Related issue: rust-lang/cargo#9770 Signed-off-by: Bailey Hayes <behayes2@gmail.com> Co-authored-by: Victor Adossi <123968127+vados-cosmonic@users.noreply.github.com>
Integration tests caught a bug with what I added. Normalize uses the fs to run the normalization and the file must exist. Tweaked this a bit and re-tested on windows and macos. |
Signed-off-by: Connor Smith <connor.smith.256@gmail.com>
Signed-off-by: Brooks Townsend <brooksmtownsend@gmail.com>
Signed-off-by: Brooks Townsend <brooksmtownsend@gmail.com>
Verbatim paths on Windows are not well supported,
e.g. "\\?\C:\Users..." while technically valid, causes some fs api's like
exists
to fail errantly.The fix is to use a third party lib normpath to normalize the path to the wasm
binary.
Related issue: rust-lang/cargo#9770
Fixes #1481
Signed-off-by: Bailey Hayes behayes2@gmail.com