-
Notifications
You must be signed in to change notification settings - Fork 228
pipeline config failing to validate remote with alias ssh hostnames #4185
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
Comments
@vhvb1989 can you take a look? |
Hello @anfibiacreativa Can you please elaborate about this:
I don't understand if you are using git config to override host names or if you are setting ssh keys depending on the host name. Can you also share, the error you are getting from azd output? |
@anfibiacreativa , can you try with this: #4237 (comment) please |
@anfibiacreativa please try again with daily build or once 1.10.0 is out |
Uh oh!
There was an error while loading. Please reload this page.
azure-dev/cli/azd/pkg/github/remote.go
Line 14 in d8ccaf6
The above line causes
azd pipeline config
to generate the file though show error message of fail on remote validation, when user has multiple ssh config hostnames with error messageERROR: ensuring git remote: not a GitHub host
. The file gets locally generated but the process of committing it is aborted/interrupted.To reproduce, the user needs to have at least 2 different ssh configs that override the host.
Clone a repo.
Run
azd pipeline config
. Validation of the host fails.A suggestion could be to either detect hostname from config or require it's passed as argument.
Additionally, error message can be improved to "GitHub host not found. If you have aliases for hostnames...(do this)"
System details:
azd version 1.9.5 (commit cd2b7af)
MacOs Sonoma 14.6
cc: @kristenwomack
The text was updated successfully, but these errors were encountered: