mirror of
https://github.com/logos-messaging/logos-delivery-simulator.git
synced 2026-05-16 12:09:39 +00:00
feat: bypass gitpkg.vercel.app (HTTP 402) for @zk-kit/imt.sol (#121)
This commit is contained in:
parent
abe663f72c
commit
0faeda33ae
@ -24,6 +24,20 @@ git checkout $RLN_CONTRACT_REPO_COMMIT
|
|||||||
# 3. Compile Contract Repo
|
# 3. Compile Contract Repo
|
||||||
echo "forge install..."
|
echo "forge install..."
|
||||||
forge install
|
forge install
|
||||||
|
|
||||||
|
# Workaround: gitpkg.vercel.app returns HTTP 402, so fetch @zk-kit/imt.sol
|
||||||
|
# directly from GitHub at the same commit the URL pinned, and redirect
|
||||||
|
# package.json at the local copy via file: protocol before pnpm install.
|
||||||
|
ZK_KIT_COMMIT=0699fd1e5ad3683ae0090e0626f75d7834145500
|
||||||
|
echo "Fetching @zk-kit/imt.sol from GitHub at $ZK_KIT_COMMIT..."
|
||||||
|
rm -rf /tmp/zk-kit local-deps/imt.sol
|
||||||
|
git clone --quiet https://github.com/privacy-scaling-explorations/zk-kit.git /tmp/zk-kit
|
||||||
|
(cd /tmp/zk-kit && git checkout --quiet $ZK_KIT_COMMIT)
|
||||||
|
mkdir -p local-deps
|
||||||
|
cp -r /tmp/zk-kit/packages/imt.sol local-deps/imt.sol
|
||||||
|
sed -i 's|"@zk-kit/imt.sol": *"https://gitpkg.vercel.app/[^"]*"|"@zk-kit/imt.sol": "file:./local-deps/imt.sol"|' package.json
|
||||||
|
rm -f pnpm-lock.yaml
|
||||||
|
|
||||||
echo "pnpm install..."
|
echo "pnpm install..."
|
||||||
pnpm install
|
pnpm install
|
||||||
echo "forge build..."
|
echo "forge build..."
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user