-
Notifications
You must be signed in to change notification settings - Fork 273
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
Hot-reloading on windows doesn't appear to work natively #2129
Comments
Thanks for submitting the issue. For what it's worth, we test every release manually on a Windows machine in Powershell and the cygdrive paths haven't caused any issues, but perhaps that's particular to our setup. And admittedly we haven't tested the releases on git bash. Assigning this to @thsig who's most familiar with the hot reloading. |
@eysi09 that’s good to know. So does that mean if cygwin is installed it’ll probably work in the meantime? |
Apologies for the late reply, but yes, it should. At least that's been the case on our end. And we're actively looking into this alongside other changes we're making to better handle paths on Windows. |
@wyrie, are you still bumping into this? AFAICT, we don't have Cygwin installed on our testing machine, and the assumption was that Powershell actually handles the Is there anything in your setup that you can think of that would explain the difference? |
Hi Guys, I can confirm after upgrading to version 0.12.11, we are still running into hot deploy issues. Error we are seeing is I'll give it a go with PowerShell |
Thanks for the update @MarvDann. Still trying to track this down because we've not been able to reproduce the error. I suspect it has something to do with differences in our Windows setup. Perhaps we could ask you to try one thing: Run |
Interesting update: - I deleted my environment, restarted my machine and tried the same command i tried previously (with the hot flag) and it worked. I'll try the command you suggested next to see how that works out. |
Ah, interesting. That's still a bug we need fix ofc, but helps narrow this down. |
@edvald I ran the command you suggested with the --watch flag and increased log level. Here are the logs I'm getting....
|
Bug
Windows users running garden outside of WSL on various shells cannot use hot-reloading. The issue we are seeing relates to how paths are handled on windows.
Current Behavior
A windows user, in our configuration, trying to launch a hot-reload session would get a
Error: bind EADDRINUSE
message. This comes from garden wanting to establish a port forwarding session but fails.The scenario above occurs in a bash shell and is due to the fact that the path to the kubectl binary is resolved to a windows style path (i.e.
C:\...
), which the bash shell does not understand and cannot therefore establish a port-forwarding session.Switching to powershell we get past the error above but then hit a different path issue when it comes to rsync. Rsync resolves paths to
/cygdrive/c/
which then is not understood in powershell.Expected behavior
Hot reloading should work in bash and powershell on windows, with the path handling considered and resolved correctly.
Reproducible example
Key elements to our environment are:
Workaround
None
Suggested solution(s)
This all looks entirely related to how paths are handled. Making that more robust should squash this one.
Additional context
https://kubernetes.slack.com/archives/CKM7CP8P9/p1604396117244300
Your environment
garden version
0.12.9
The text was updated successfully, but these errors were encountered: