Skip to content
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

Don't use shlex.split on cmd-path #224

Merged
merged 1 commit into from
Oct 13, 2022
Merged

Conversation

hrichardlee
Copy link
Contributor

@hrichardlee hrichardlee commented Oct 12, 2022

The code was previously calling shlex.split on cmd-path in addition to cmd-args. If cmd-path had a space in it (which happens on Windows, e.g. C:\Users<username>\AppData\Local\Google\Cloud SDK\google-cloud-sdk\bin\gcloud.cmd) then shlex.split will split that command line and the command will fail.

Fixes #223

The code was previously calling shlex.split on cmd-path in addition to cmd-args. If cmd-path had a space in it (which happens on Windows, e.g. C:\Users\<username>\AppData\Local\Google\Cloud SDK\google-cloud-sdk\bin\gcloud.cmd) then shlex.split will split that command line and the command will fail.
@tomplus tomplus merged commit ef020cb into tomplus:master Oct 13, 2022
tomplus pushed a commit that referenced this pull request May 1, 2023
The code was previously calling shlex.split on cmd-path in addition to cmd-args. If cmd-path had a space in it (which happens on Windows, e.g. C:\Users\<username>\AppData\Local\Google\Cloud SDK\google-cloud-sdk\bin\gcloud.cmd) then shlex.split will split that command line and the command will fail.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

shlex.split is causing google_auth_credentials to fail on Windows
2 participants