diff --git a/scripts/build.sh b/scripts/build.sh index f14962b..249267c 100755 --- a/scripts/build.sh +++ b/scripts/build.sh @@ -10,7 +10,6 @@ PREFIX="${PREFIX:-$(pwd)/build}" PLUGIN_PREFIX="$PREFIX/plugins" SRC_DIR="$(dirname "${BASH_SOURCE[0]}")" -source "$SRC_DIR/env.sh" CORETH_PKG=github.com/ava-labs/coreth CORETH_PATH="$GOPATH/src/$CORETH_PKG" diff --git a/scripts/build_test.sh b/scripts/build_test.sh index 157dd8b..0beb2d7 100755 --- a/scripts/build_test.sh +++ b/scripts/build_test.sh @@ -6,7 +6,4 @@ set -o pipefail # Ted: contact me when you make any changes -SRC_DIR="$(dirname "${BASH_SOURCE[0]}")" -source "$SRC_DIR/env.sh" - go test -race -timeout="30s" -coverprofile="coverage.out" -covermode="atomic" ./... diff --git a/scripts/env.sh b/scripts/env.sh deleted file mode 100644 index 7dd549b..0000000 --- a/scripts/env.sh +++ /dev/null @@ -1,13 +0,0 @@ -#!/bin/bash - -# Ted: contact me when you make any changes - -# resolve the required env for salticidae-go -GOPATH="$(go env GOPATH)" -SALTICIDAE_GO_HOME="$GOPATH/src/github.com/ava-labs/salticidae-go/" - -if [[ -f "$SALTICIDAE_GO_HOME/salticidae/libsalticidae.a" ]]; then - source "$SALTICIDAE_GO_HOME/scripts/env.sh" -else - source /dev/stdin <<<"$(curl -sS https://raw.githubusercontent.com/ava-labs/salticidae-go/v0.1.0/setup.sh)" -fi