File tree 8 files changed +35
-27
lines changed
8 files changed +35
-27
lines changed Original file line number Diff line number Diff line change @@ -3,11 +3,8 @@ use flake
3
3
# Repo-local commands like ginkgo and tmpnetctl
4
4
PATH_add bin
5
5
6
- # Built binaries like avalanchego and xsvm
7
- PATH_add build
8
-
9
6
# Configure the explicit built path of avalanchego for tmpnet usage
10
- export AVALANCHEGO_PATH=$PWD /build /avalanchego
7
+ export AVALANCHEGO_PATH=$PWD /bin /avalanchego
11
8
12
9
# Configure the local plugin directory for both avalanchego and tmpnet usage
13
10
mkdir -p $PWD /build/plugins # avalanchego will FATAL if the directory does not exist
Original file line number Diff line number Diff line change
1
+ ../scripts/run_avalanchego.sh
Load Diff This file was deleted.
Original file line number Diff line number Diff line change
1
+ ../scripts/run_ginkgo.sh
Load Diff This file was deleted.
Original file line number Diff line number Diff line change
1
+ ../scripts/run_tmpnetctl.sh
Original file line number Diff line number Diff line change @@ -31,9 +31,6 @@ source "${REPO_ROOT}"/scripts/constants.sh
31
31
# Determine the git commit hash to use for the build
32
32
source " ${REPO_ROOT} " /scripts/git_commit.sh
33
33
34
- echo " Downloading dependencies..."
35
- go mod download
36
-
37
34
echo " Building AvalancheGo with [$( go version) ]..."
38
35
go build ${race} -o " ${avalanchego_path} " \
39
36
-ldflags " -X github.com/ava-labs/avalanchego/version.GitCommit=$git_commit $static_ld_flags " \
Original file line number Diff line number Diff line change
1
+ #! /usr/bin/env bash
2
+
3
+ set -euo pipefail
4
+
5
+ AVALANCHE_PATH=$( cd " $( dirname " ${BASH_SOURCE[0]} " ) " ; cd .. && pwd )
6
+ cd " ${AVALANCHE_PATH} "
7
+
8
+ # Build the binary before execution to ensure it is always up-to-date. Faster than `go run`.
9
+ ./scripts/build.sh
10
+ ./build/avalanchego " ${@ } "
Original file line number Diff line number Diff line change
1
+ #! /usr/bin/env bash
2
+
3
+ set -euo pipefail
4
+
5
+ # Ensure the go command is run from the root of the repository so that its go.mod file is used
6
+ AVALANCHE_PATH=$( cd " $( dirname " ${BASH_SOURCE[0]} " ) " ; cd .. && pwd )
7
+ cd " ${AVALANCHE_PATH} "
8
+
9
+ # Installing and then running is faster than `go run`.
10
+ GOBIN=" ${AVALANCHE_PATH} /build" go install github.com/onsi/ginkgo/v2/ginkgo
11
+ ./build/ginkgo " ${@ } "
Original file line number Diff line number Diff line change
1
+ #! /usr/bin/env bash
2
+
3
+ set -euo pipefail
4
+
5
+ AVALANCHE_PATH=$( cd " $( dirname " ${BASH_SOURCE[0]} " ) " ; cd .. && pwd )
6
+ cd " ${AVALANCHE_PATH} "
7
+
8
+ # Build the binary before execution to ensure it is always up-to-date. Faster than `go run`.
9
+ ./scripts/build_tmpnetctl.sh
10
+ ./build/tmpnetctl " ${@ } "
You can’t perform that action at this time.
0 commit comments