gitlab.com/flarenetwork/coreth@v0.1.1/scripts/constants.sh (about) 1 #!/usr/bin/env bash 2 3 # Set the PATHS 4 GOPATH="$(go env GOPATH)" 5 6 # Set binary location 7 binary_path=${CORETH_BINARY_PATH:-"$GOPATH/src/github.com/ava-labs/avalanchego/build/plugins/evm"} 8 9 # Current branch 10 current_branch=${CURRENT_BRANCH:-$(git describe --tags --exact-match 2> /dev/null || git symbolic-ref -q --short HEAD || git rev-parse --short HEAD)} 11 echo "Using branch: ${current_branch}" 12 13 # WARNING: this will use the most recent commit even if there are un-committed changes present 14 coreth_commit="$(git --git-dir="$CORETH_PATH/.git" rev-parse HEAD)" 15 coreth_commit_id="${coreth_commit::8}"