-
Notifications
You must be signed in to change notification settings - Fork 259
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
HTTP component sources do not work on Windows #2112
Comments
I am seeing this on Windows as well. I am using Git Bash for Windows. I am doing this as a workaround: I then get another error which I can solve by either doing this: Or this: But I cannot do a spin deploy, even with these workarounds: |
@david-wallace-croft Sorry for not replying earlier. I think once we fix this and #2111 that should sort out the deploy problem. I'm afraid that for now the only workaround for deployment may be to use WSL2, which I appreciate is rather disruptive. I am hoping to look at these this week. |
@itowlson I am able to deploy for the Advent of Spin 2023 submissions by using GitHub CodeSpaces. I made some notes about my setup here: |
Oh, I'm relieved to hear that! And thanks for sharing your setup! |
I ran into this while trying to repro #2111. The static-fileserver template uses a HTTP reference to the fileserver Wasm. On Windows,
spin up
fails because it is unable to persist the downloaded Wasm file. The error is "failed to persist temporary file path: The parameter is incorrect. (os error 87)" and the location isloader/src/http.rs
line 41,temp_path.persist_noclobber
.My guess is that Windows dislikes the colon in file names such as
C:\Users\ivan\AppData\Local\spin\registry\wasm\sha256:5f05b15f0f7cd353d390bc5ebffec7fe25c6a6d7a05b9366c86dcb1a346e9f0f
but I haven't confirmed that.The text was updated successfully, but these errors were encountered: