feat: migrate ssh config resolver and stop tracking pretty binary #7
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This pull request introduces significant improvements to SSH config resolution, ensuring full compatibility with OpenSSH-style
HostandMatchevaluation. It replaces the previous SSH config library with a fork that supports advanced parsing, updates the resolution logic to use this new library, and adds tests to verify correct behavior withMatchblocks. These changes make host resolution more accurate and robust.SSH config resolution improvements:
github.com/kevinburke/ssh_configtogithub.com/ncode/ssh_configingo.modandinternal/sshConn/config.go, enabling OpenSSH-styleHostandMatchevaluation for more accurate host resolution. [1] [2]SSHConfigResolverlogic ininternal/sshConn/config.goto use the new library'sResolvemethod, ensuring proper handling ofHostandMatchblocks and explicit overrides. [1] [2]resolvehelper function to centralize SSH config resolution and context handling.Testing enhancements:
internal/sshConn/config_test.goto verify correct application ofMatchblocks, non-matching blocks, and explicit overrides during host resolution.Documentation update:
README.mdto clarify that host resolution now follows OpenSSH-styleHostandMatchevaluation.