Update install script for interop

And adjust the structure of go packages for interop
This commit is contained in:
mhchia 2019-09-03 17:41:17 +08:00
parent 749ff275ed
commit 5280f3965c
No known key found for this signature in database
GPG Key ID: 389EFBEA1362589A
6 changed files with 23 additions and 1 deletions

View File

@ -1,5 +1,27 @@
#!/bin/bash
GO_PKGS_PATH=./tests/interop/go_pkgs
DAEMON_REPO=go-libp2p-daemon
DAEMON_PATH=$GO_PKGS_PATH/$DAEMON_REPO
EXAMPLES_PATHS=$GO_PKGS_PATH/examples
go version
cd tests/interop/go_pkgs/
# Install `p2pd`
# FIXME: Use the canonical repo in libp2p, when we don't need `insecure`.
if [ ! -e "$DAEMON_PATH" ]; then
git clone git@github.com:mhchia/$DAEMON_REPO.git --branch test/add-options $DAEMON_PATH
fi
cd $DAEMON_PATH
go install ./...
cd -
# Install example modeuls
cd $EXAMPLES_PATHS
go install ./...
echo "Finish installing go modeuls for interop."