chore(deps): bump sha2 from 0.10.9 to 0.11.0 in /ecc2 (#2208)

* chore(deps): bump sha2 from 0.10.9 to 0.11.0 in /ecc2

Bumps [sha2](https://github.com/RustCrypto/hashes) from 0.10.9 to 0.11.0.
- [Commits](https://github.com/RustCrypto/hashes/compare/sha2-v0.10.9...sha2-v0.11.0)

---
updated-dependencies:
- dependency-name: sha2
  dependency-version: 0.11.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>

* fix(ecc2): hex-encode sha2 0.11 digest output manually

sha2 0.11 (digest 0.11 / hybrid-array) output arrays no longer
implement LowerHex, so format the fingerprint bytes directly.

---------

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Affaan Mustafa <me@affaanmustafa.com>
This commit is contained in:
dependabot[bot]
2026-06-11 01:16:07 -04:00
committed by GitHub
parent 967940f43e
commit 16be4a6898
3 changed files with 81 additions and 12 deletions
+6 -1
View File
@@ -1356,7 +1356,12 @@ fn dependency_fingerprint(root: &Path, files: &[&str]) -> Result<String> {
hasher.update(&content);
hasher.update([0xff]);
}
Ok(format!("{:x}", hasher.finalize()))
// sha2 0.11 output arrays no longer implement LowerHex; hex-encode manually.
Ok(hasher
.finalize()
.iter()
.map(|byte| format!("{byte:02x}"))
.collect())
}
fn is_symlink_to(path: &Path, target: &Path) -> Result<bool> {