pins libp2p to codex-supporting commit

This commit is contained in:
ThatBen 2025-03-26 11:19:03 +01:00
parent f6eef1ac95
commit 89b281fc8d
No known key found for this signature in database
GPG Key ID: E020A7DDCD52E1AB

View File

@ -14,7 +14,14 @@ requires "nimcrypto >= 0.6.2 & < 0.7.0"
requires "bearssl >= 0.2.5 & < 0.3.0"
requires "chronicles >= 0.10.2 & < 0.11.0"
requires "chronos >= 4.0.3 & < 4.1.0"
requires "libp2p >= 1.5.0 & < 2.0.0"
# NOT: requires "libp2p >= 1.5.0 & < 2.0.0"
requires "libp2p#036e110a6080fba1a1662c58cfd8c21f9a548021"
# When using codex-dht project with this specific version of nim-libp2p which
# contains the codex codecs, the previous line of >= 1.5.0 & < 2.0.0
# would make the build use the versioned version of libp2p
# resulting in CID decode methods that don't recognize codex CIDs.
# so we pin the specific commit here so we can use a specific commit
# in the application-project to avoid this problem.
requires "metrics >= 0.1.0 & < 0.2.0"
requires "stew >= 0.2.0 & < 0.3.0"
requires "stint >= 0.8.1 & < 0.9.0"