forked from ava-labs/avalanchego
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.envrc
More file actions
23 lines (18 loc) · 950 Bytes
/
.envrc
File metadata and controls
23 lines (18 loc) · 950 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
if [ -n "${AVALANCHEGO_DIRENV_USE_FLAKE}" ]; then
if ! command -v nix > /dev/null; then
echo "To enable entering a dev shell via this .envrc: ./scripts/run_task.sh install-nix"
else
use flake
fi
fi
# Repo-local commands like ginkgo and tmpnetctl
PATH_add bin
# Configure the explicit built path of avalanchego for tmpnet usage
export AVALANCHEGO_PATH="${AVALANCHEGO_PATH:-$PWD/bin/avalanchego}"
# Configure the local plugin directory for both avalanchego and tmpnet usage
mkdir -p $PWD/build/plugins # avalanchego will FATAL if the directory does not exist
export AVAGO_PLUGIN_DIR="${AVAGO_PLUGIN_DIR:-$PWD/build/plugins}" # Use an existing value if set
# Default to tmpnetctl targeting the last deployed tmpnet network
export TMPNET_NETWORK_DIR="${TMPNET_NETWORK_DIR:-${HOME}/.tmpnet/networks/latest}"
# Allow individuals to add their own customisation
source_env_if_exists .envrc.local