Package: golang-github-skeema-knownhosts / 1.3.1-1
Metadata
Package | Version | Patches format |
---|---|---|
golang-github-skeema-knownhosts | 1.3.1-1 | 3.0 (quilt) |
Patch series
view the series filePatch | File delta | Description |
---|---|---|
0001 tests fix test logic for x crypto 0.37.0 change.patch | (download) |
knownhosts_test.go |
2 1 + 1 - 0 ! |
[patch] tests: fix test logic for x/crypto 0.37.0 change In golang.org/x/crypto v0.37.0+, https://github.com/golang/crypto/pull/254 has been merged, which means x/crypto/ssh/knownhosts can return multiple keys of the same type in its KeyError.Want slice. Here in skeema/knownhosts, our logic already handles that properly, and ensures that HostKeyAlgorithms is de-duped; see commit 3a35d9f from Sep 2023. However, in that commit I failed to adjust one of the tests, which examines the returned keys (which are intentionally not de-duped) rather than the algorithms (which are de-duped). This commit fixes the test to now work properly with x/crypto v0.37.0+. |
1