This repository has been archived by the owner on Aug 1, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
the Rube Goldberg machine for testing HTTP RPC wire format change end-to-end
- Loading branch information
Showing
4 changed files
with
58 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
#!/bin/bash | ||
|
||
set -xeo pipefail | ||
|
||
# this script sets up the Rube Goldberg machine for testing HTTP RPC wire format change end-to-end | ||
# context: | ||
# - https://github.com/ipfs/go-ipfs/pull/8183 | ||
# - https://github.com/ipfs/js-ipfs/pull/3922 | ||
|
||
# use updated GO implementation from https://github.com/ipfs/go-ipfs/pull/8183 | ||
cd tmp | ||
git clone -b feat/pubsub-require-multibase https://github.com/coryschwartz/go-ipfs.git | ||
cd go-ipfs | ||
make build | ||
make install | ||
cd ../.. | ||
# TODO: go-ipfs binary path to be used as IPFS_GO_EXEC | ||
realpath tmp/go-ipfs/cmd/ipfs/ipfs | ||
|
||
|
||
# use updated JS implementation from https://github.com/ipfs/js-ipfs/pull/3922 | ||
rm -rf node_modules tmp | ||
mkdir tmp | ||
cd tmp | ||
git clone -b feat/pubsub-require-multibase https://github.com/ipfs/js-ipfs.git | ||
cd js-ipfs | ||
npm install | ||
npm run build | ||
npm run link | ||
cd ../.. | ||
|
||
# make sure npm uses js-ipfs libs | ||
npx connect-deps link \ | ||
./tmp/js-ipfs/packages/ipfs \ | ||
./tmp/js-ipfs/packages/ipfs-http-client \ | ||
--connect |