-
-
Notifications
You must be signed in to change notification settings - Fork 41
The multiline script fails to be uploaded to server (Windows) #166
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
Comments
spot is already trying to enforce unix-slashes on remote hosts, but it is likely partial. I have found a few places related to the remote operations using things like If you can build a binary from enfoce-unix-slash branch and try it, this would be nice. I don't have a win box handy to try it for real, but if needed should be able to make one; this just will take time. |
Cloned
|
Good catch. I have changed all I could in remote.go to use slash-insensitive functions for the path operations (i.e. forced to use |
I have tried to set up dev env on windows VM, and gave up. This thing doesn't seem to be compatible with testcontainers-go needed for tests. However, my question is - why do we even bother with any of this? Why not run spot on win from wsl2? |
I am already doing it for Ansible. Then I saw that Spot has Windows binary and decided to try. I guess it would be better to remove the Windows binary from the release page if there is no way to use it |
I have the following playbook:
It fails with the next logs:
If I rewrite the command into multiple stages:
it starts to work fine.
I suppose it is some weird interaction between the
spot
,golang
on windows machine and the target linux machine because on the target machine in~/
folder, I can see the following:Something like that, when the folder names are concatenated together, I saw when working on another project on Linux and creating folders with long names like that '/tmp/random stuff/another random stuff' in one attempt. I suppose the solution would be to use some "official way" to create temp folders in golang or create multiple folders in steps.
Later on, I may have a look at the source code of the
spot
to figure out the issue myself.OS cat /etc/*-release
The text was updated successfully, but these errors were encountered: