chore(checkouts): we are in 2025, no MD5 here
Let's replace it with BLAKE3 because I'm a BLAKE fan. Enjoy. Signed-off-by: Raito Bezarius <masterancpp@gmail.com>
This commit is contained in:
parent
93875c1ae2
commit
9e46987a27
3 changed files with 35 additions and 9 deletions
40
Cargo.lock
generated
40
Cargo.lock
generated
|
@ -155,6 +155,18 @@ version = "1.0.94"
|
|||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "c1fd03a028ef38ba2276dce7e33fcd6369c158a1bca17946c4b1b701891c1ff7"
|
||||
|
||||
[[package]]
|
||||
name = "arrayref"
|
||||
version = "0.3.9"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "76a2e8124351fda1ef8aaaa3bbd7ebbcb486bbcd4225aca0aa0d84bb2db8fecb"
|
||||
|
||||
[[package]]
|
||||
name = "arrayvec"
|
||||
version = "0.7.6"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "7c02d123df017efcdfbd739ef81735b36c5ba83ec3c59c80a9d7ecc718f92e50"
|
||||
|
||||
[[package]]
|
||||
name = "asn1-rs"
|
||||
version = "0.6.2"
|
||||
|
@ -461,6 +473,20 @@ version = "2.6.0"
|
|||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "b048fb63fd8b5923fc5aa7b340d8e156aec7ec02f0c78fa8a6ddc2613f6f71de"
|
||||
|
||||
[[package]]
|
||||
name = "blake3"
|
||||
version = "1.5.5"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "b8ee0c1824c4dea5b5f81736aff91bae041d2c07ee1192bec91054e10e3e601e"
|
||||
dependencies = [
|
||||
"arrayref",
|
||||
"arrayvec",
|
||||
"cc",
|
||||
"cfg-if",
|
||||
"constant_time_eq",
|
||||
"digest",
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "block-buffer"
|
||||
version = "0.10.4"
|
||||
|
@ -645,6 +671,12 @@ version = "0.9.6"
|
|||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "c2459377285ad874054d797f3ccebf984978aa39129f6eafde5cdc8315b612f8"
|
||||
|
||||
[[package]]
|
||||
name = "constant_time_eq"
|
||||
version = "0.3.1"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "7c74b8349d32d297c9134b8c88677813a227df8f779daa29bfc29c183fe3dca6"
|
||||
|
||||
[[package]]
|
||||
name = "cookie-factory"
|
||||
version = "0.3.3"
|
||||
|
@ -1721,12 +1753,6 @@ version = "0.7.3"
|
|||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "0e7465ac9959cc2b1404e8e2367b43684a6d13790fe23056cc8c6c5a6b7bcb94"
|
||||
|
||||
[[package]]
|
||||
name = "md5"
|
||||
version = "0.7.0"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "490cc448043f947bae3cbee9c203358d62dbee0db12107a74be5c30ccfd09771"
|
||||
|
||||
[[package]]
|
||||
name = "memchr"
|
||||
version = "2.7.4"
|
||||
|
@ -1846,6 +1872,7 @@ dependencies = [
|
|||
"async-trait",
|
||||
"axum",
|
||||
"base64",
|
||||
"blake3",
|
||||
"brace-expand",
|
||||
"chrono",
|
||||
"clap",
|
||||
|
@ -1859,7 +1886,6 @@ dependencies = [
|
|||
"jfs",
|
||||
"lapin",
|
||||
"lru-cache",
|
||||
"md5",
|
||||
"nom 4.2.3",
|
||||
"openssh",
|
||||
"opentelemetry",
|
||||
|
|
|
@ -26,7 +26,6 @@ hyper-server = "0.6.0"
|
|||
jfs = "0.9.0"
|
||||
lapin = "2.5.0"
|
||||
lru-cache = "0.1.2"
|
||||
md5 = "0.7.0"
|
||||
nom = "4,<5" # FIXME: update
|
||||
openssh = { version = "0.11.3", features = ["process-mux"], default-features = false }
|
||||
opentelemetry = "0.27.0"
|
||||
|
@ -51,3 +50,4 @@ tracing-subscriber = { version = "0.3.18", features = ["json", "env-filter"] }
|
|||
tracing-opentelemetry = "0.28.0"
|
||||
uuid = { version = "1.11", features = ["v4"] }
|
||||
zstd = "0.13.2"
|
||||
blake3 = { version = "1.5.5", features = ["digest"] }
|
||||
|
|
|
@ -41,7 +41,7 @@ impl CachedCloner {
|
|||
|
||||
let mut new_root = self.root.clone();
|
||||
new_root.push("repo");
|
||||
new_root.push(format!("{:x}", md5::compute(name)));
|
||||
new_root.push(format!("{}", blake3::hash(name.as_bytes())));
|
||||
|
||||
CachedProject {
|
||||
root: new_root,
|
||||
|
|
Loading…
Reference in a new issue