Skip to content

Commit 07d0a9c

Browse files
authored
use default path to build, remove symlinking (#1256)
1 parent bdb33fd commit 07d0a9c

File tree

2 files changed

+2
-6
lines changed

2 files changed

+2
-6
lines changed

scripts/build.sh

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ source "$SUBNET_EVM_PATH"/scripts/constants.sh
1919
if [[ $# -eq 1 ]]; then
2020
BINARY_PATH=$1
2121
elif [[ $# -eq 0 ]]; then
22-
BINARY_PATH="${SUBNET_EVM_PATH}/build/subnet-evm"
22+
BINARY_PATH="$DEFAULT_PLUGIN_DIR/$DEFAULT_VM_ID"
2323
else
2424
echo "Invalid arguments to build subnet-evm. Requires zero (default binary path) or one argument to specify the binary path."
2525
exit 1
@@ -28,8 +28,3 @@ fi
2828
# Build Subnet EVM, which is run as a subprocess
2929
echo "Building Subnet EVM @ GitCommit: $SUBNET_EVM_COMMIT at $BINARY_PATH"
3030
go build -ldflags "-X github.com/ava-labs/subnet-evm/plugin/evm.GitCommit=$SUBNET_EVM_COMMIT $STATIC_LD_FLAGS" -o "$BINARY_PATH" "plugin/"*.go
31-
32-
PLUGIN_PATH="${DEFAULT_PLUGIN_DIR}/srEXiWaHuhNyGwPUi444Tu47ZEDwxTWrbQiuD7FmgSAQ6X7Dy"
33-
echo "Symlinking ${BINARY_PATH} to ${PLUGIN_PATH}"
34-
mkdir -p "${DEFAULT_PLUGIN_DIR}"
35-
ln -sf "${BINARY_PATH}" "${PLUGIN_PATH}"

scripts/constants.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ set -euo pipefail
88
# Set the PATHS
99
GOPATH="$(go env GOPATH)"
1010
DEFAULT_PLUGIN_DIR="${HOME}/.avalanchego/plugins"
11+
DEFAULT_VM_ID="srEXiWaHuhNyGwPUi444Tu47ZEDwxTWrbQiuD7FmgSAQ6X7Dy"
1112

1213
# Avalabs docker hub
1314
# avaplatform/avalanchego - defaults to local as to avoid unintentional pushes

0 commit comments

Comments
 (0)