-
Notifications
You must be signed in to change notification settings - Fork 102
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 windows subsystem #8
Conversation
By the way, usually you expect nothing to be printed to your stdout when calling commands on an API like this one[, but error]. The reason I am removing it is because Windows does print something. |
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.
not lgtm. Thanks for looking at this but the changes to make this work on windows (I'm honestly not sure if it ever did, i'm not a windows user) should be constrained to files ending in _windows.go. There shouldn't be any changes to other os's.
I agree it should be constrained to files ending in _windows.go and makes little to no sense to have them on a file ending in linux.go, but we should blame Windows subsystem on it as there seems to be no standard way to detect it (and the program identifies it as Linux) ¯_(ツ)/¯ Probably there's not much to do regarding this. |
A little necromancy here, but as WSL usage is growing, would be nice to solve it somehow. Can confirm the fix does need to be in the |
Windows Subsystem for Linux failed to open a browser due to lack of support for xdg-open. This commit reuses a solution from pkg/browser#8 which detects a WSL environment and uses cmd.exe to open the URL instead.
With the current implementation of terraform login, Windows Subsystem for Linux fails to open a browser due to lack of support for xdg-open. This commit reuses a fix from pkg/browser#8 which detects a WSL environment and uses cmd.exe to open the URL instead.
With the current implementation of terraform login, Windows Subsystem for Linux fails to open a browser due to lack of support for xdg-open. This commit reuses a fix from pkg/browser#8 which detects a WSL environment and uses cmd.exe to open the URL instead.
This should use |
Perhaps this?
I don't maintain anything supposed to run on Windows anymore, so maybe you or someone else could continue from here? |
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.
Thank you for this change. I don't think this change should touch browser_linux.go. Can you please move the code to a more appropriate location. Thank you.
Hey @davecheney , I'm looking at creating a new PR to do this properly, how do you envision doing this without touching browser_linux ? Since WSL uses GOOS linux |
Tidying up, Closing this as very old, please reopen if still relevant. |
I think this is an acceptable solution for this (though awkward). I can't think of anything better.
It might be related to the error described on #6.
Please see:
https://blogs.msdn.microsoft.com/commandline/2016/10/19/interop-between-windows-and-bash/
microsoft/WSL#423