You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
ERROR: failed setting AZD_INITIAL_ENVIRONMENT_CONFIG secret: failed running gh secret set: exit code: 1, stdout: , stderr: 'C:\Users\Paul' is not recognized as an internal or external command,
operable program or batch file.
Note that my home directory is "C:\Users\Paul Savides", note the space.
To Reproduce
Copy gh.exe to a path with a space in it, then run `azd pipeline config with the aspire sample starter template.
For example:
New-Item -Type Directory "C:\look at these spaces"
Copy-Item $HOME\.azd\bin\gh.exe "C:\look at these spaces"
$env:AZD_GH_CLI_TOOL_PATH="C:\look at these spaces\gh.exe"
azd pipeline config
Output =
ERROR: failed setting AZD_INITIAL_ENVIRONMENT_CONFIG secret: failed running gh secret set: exit code: 1, stdout: , stderr: 'C:\look' is not recognized as an internal or external command,
operable program or batch file.
Expected behavior
Github secret should be pushed successfully. If I copy the gh.exe to a path without spaces and use AZD_GH_CLI_TOOL_PATH to override, it does succeed.
Environment
win 11 22621.3007
Additional context
I added some debug logs and printed out the actual go cmd struct content just to see what was actually failing and it was this
I believe the part which is causing the issues is the quotes in the json in the command.
You can have a simpler reproduction of the issue if you run direct against cmd and add a quote to a random argument.
For example --
C:\WINDOWS\System32\cmd.exe /c "C:\look at these spaces\gh.exe" auth status --hostname "github.com"
'C:\look' is not recognized as an internal or external command,
operable program or batch file.
To fix, I need to quote the entire command
C:\WINDOWS\System32\cmd.exe /c ""C:\look at these spaces\gh.exe" auth status --hostname "github.com""
github.com
✓ Logged in to github.com as paulsavides
... rest of output
The text was updated successfully, but these errors were encountered:
Output from
azd version
Run
azd version
and copy and paste the output here:Describe the bug
I am running through the .net aspire tutorial and got to the step where I am running
azd pipeline config
.See tutorial here: https://learn.microsoft.com/en-us/dotnet/aspire/deployment/azure/aca-deployment-github-actions?tabs=windows%2Cvisual-studio
It eventually fails with the following error.
Note that my home directory is "C:\Users\Paul Savides", note the space.
To Reproduce
Copy gh.exe to a path with a space in it, then run `azd pipeline config with the aspire sample starter template.
For example:
Output =
Expected behavior
Github secret should be pushed successfully. If I copy the gh.exe to a path without spaces and use AZD_GH_CLI_TOOL_PATH to override, it does succeed.
Environment
win 11 22621.3007
Additional context
I added some debug logs and printed out the actual go cmd struct content just to see what was actually failing and it was this
I believe the part which is causing the issues is the quotes in the json in the command.
You can have a simpler reproduction of the issue if you run direct against cmd and add a quote to a random argument.
For example --
To fix, I need to quote the entire command
The text was updated successfully, but these errors were encountered: