File tree Expand file tree Collapse file tree 1 file changed +7
-13
lines changed Expand file tree Collapse file tree 1 file changed +7
-13
lines changed Original file line number Diff line number Diff line change 44
55set -euo pipefail
66
7- # Install only if needed
8- # TODO(marun) Provide tmpnetctl via the nix devshell to ensure a version consistent with the avalanchego dep
9- if ! command -v tmpnetctl > /dev/null; then
10- echo " Installing tmpnetctl..."
7+ # Ensure the go command is run from the root of the repository
8+ REPO_ROOT=$( cd " $( dirname " ${BASH_SOURCE[0]} " ) " ; cd .. && pwd )
9+ cd " ${REPO_ROOT} "
1110
12- # Ensure the go command is run from the root of the repository
13- REPO_ROOT=$( cd " $( dirname " ${BASH_SOURCE[0]} " ) " ; cd .. && pwd )
14- cd " ${REPO_ROOT} "
11+ # Set AVALANCHE_VERSION
12+ . ./scripts/constants.sh
1513
16- # Set AVALANCHE_VERSION
17- . ./scripts/constants.sh
18-
19- go install github.com/ava-labs/avalanchego/tests/fixture/tmpnet/tmpnetctl@" ${AVALANCHE_VERSION} "
20- fi
21- tmpnetctl " ${@ } "
14+ echo " Running tmpnetctl @ ${AVALANCHE_VERSION} "
15+ go run github.com/ava-labs/avalanchego/tests/fixture/tmpnet/tmpnetctl@" ${AVALANCHE_VERSION} " " ${@ } "
You can’t perform that action at this time.
0 commit comments