-
Notifications
You must be signed in to change notification settings - Fork 24
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
[Windows] Interacting with the regions cache hangs forever + Impossible to read stdin #809
Comments
Cross post with the following issue: golang/go#34612 (comment) We are facing the same issue but found out something slightly odd. First, we use the new We face the same issue as described in this issue in Git Bash. The code is here: https://github.com/Scalingo/cli/blob/master/term/password.go#L13 But if we run Git Bash from within the terminal tab of VS Code, we no longer face the same issue, everything works as expected. Does anyone know what is the difference between Git Bash and Git Bash inside VS Code? I uploaded the smallest example which reproduces the issue here: https://github.com/EtienneM/mwe_read_password/blob/master/main.go I'm not exactly sure about what information may be needed. My OS version:
The Go version:
The
With this example, in Git Bash in VS Code I can type a password and the output is:
In Git Bash outside of VS Code, I can't type the password and immediately get the error:
|
Having the same issue on Windows 11, with PowerShell 7.2.7 and cmd.exe in Windows Terminal. |
A workaround could be to disable the regions cache on Windows. |
Still hangs with version 1.29.1 in Git Bash on Windows. |
IMHO it's related to trying to write the cache file. The code seems to hang when trying to store a file in the user home directory Maybe related to Windows security, which is quite paranoid with the access rights on user directories I would sugget using os.UserHomeDir() and os.UserCacheDir() to get the right paths to write to |
When executing the command
DEBUG=1 scalingo apps
:Then it hangs forever. The execution of any command will actually hang except if the region name is explicitly mentioned with
--region my-region
.If the cache already contains data, the CLI also hangs forever but the logs are:
The second issue is that login does not work with the following error between the username being entered, and the prompt for the password:
Reported to the Go team: golang/go#34612
This issue supersedes #734 and #735. SRE issue is SRE-573.
Customers impacted we need to contact when releasing the fix:
https://app.intercom.com/a/apps/w4oogu7s/inbox/inbox/3379738/conversations/12375700071636
https://app.intercom.com/a/inbox/w4oogu7s/inbox/shared/all/conversation/12375700080025
https://app.intercom.com/a/apps/w4oogu7s/inbox/inbox/3379738/conversations/12375700081105
https://app.intercom.com/a/inbox/w4oogu7s/inbox/shared/all/conversation/12375700072124
https://app.intercom.com/a/apps/w4oogu7s/inbox/inbox/all/conversations/12375700129807
The text was updated successfully, but these errors were encountered: