Skip to content

Commit d2dca9e

Browse files
rzmahmoodclaude
andcommitted
Remove Bazel dependency for simpler local development
- Update build-dependencies.sh to use Go instead of Bazel for Prysm - Update testnet.sh to use Go-built binaries - Remove Bazel installation from CI workflow - Update README to reflect Go 1.23+ requirement only - Simplifies setup for developers and CI environments 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <[email protected]>
1 parent f44a1c3 commit d2dca9e

File tree

4 files changed

+16
-15
lines changed

4 files changed

+16
-15
lines changed

.github/workflows/testnet-deployment.yml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,9 +26,6 @@ jobs:
2626
- name: Install JQ
2727
run: sudo apt-get install jq
2828

29-
- name: Install Bazel
30-
uses: bazelbuild/setup-bazelisk@v3
31-
3229
- name: Build dependencies
3330
run: ./build-dependencies.sh
3431

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ This setup can is can serve as a reference for building your own production depl
2020
This project utilizes Git submodules to reference the client code, notably Go-Ethereum and Prysm.
2121
However, the scripts can be configured to reference binaries you build locally, making development quicker.
2222

23-
**You will need Go 1.23, JQ and Bazel installed**.
23+
**You will need Go 1.23+ and JQ installed**.
2424

2525
```bash
2626
git clone --recursive https://github.com/rzmahmood/ethereum-pos-testnet.git

build-dependencies.sh

Lines changed: 12 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#!/bin/bash
22

3-
# NOTE: THIS SCRIPT WAS TESTED WITH GOLANG 1.20 installed
3+
# NOTE: THIS SCRIPT WAS TESTED WITH GOLANG 1.23 installed
44

55
set -exu
66
set -o pipefail
@@ -11,12 +11,6 @@ if ! command -v go &> /dev/null; then
1111
exit 1
1212
fi
1313

14-
# Check if bazel is installed (see https://docs.prylabs.network/docs/install/install-with-bazel#install-bazel-using-bazelisk)
15-
if ! command -v bazel &> /dev/null; then
16-
echo "Error: bazel is not installed. Please install bazel first. See https://docs.prylabs.network/docs/install/install-with-bazel#install-bazel-using-bazelisk"
17-
exit 1
18-
fi
19-
2014
go version
2115

2216
# Check for version is greater than 1.23
@@ -32,8 +26,18 @@ PRYSM_DIR=./dependencies/prysm
3226
GETH_DIR=./dependencies/go-ethereum
3327
ETH_BEACON_GENESIS_DIR=./dependencies/eth-beacon-genesis
3428

35-
( cd $PRYSM_DIR && bazel build //cmd/beacon-chain:beacon-chain && bazel build //cmd/validator:validator && bazel build //cmd/prysmctl:prysmctl )
29+
# Build Prysm using Go instead of Bazel for simpler local development
30+
echo "Building Prysm beacon-chain..."
31+
( cd $PRYSM_DIR && go build -tags develop -o beacon-chain ./cmd/beacon-chain )
32+
33+
echo "Building Prysm validator..."
34+
( cd $PRYSM_DIR && go build -tags develop -o validator ./cmd/validator )
35+
36+
echo "Building Prysm prysmctl..."
37+
( cd $PRYSM_DIR && go build -tags develop -o prysmctl ./cmd/prysmctl )
3638

39+
echo "Building Go-Ethereum..."
3740
( cd $GETH_DIR && make all )
3841

42+
echo "Building eth-beacon-genesis..."
3943
( cd $ETH_BEACON_GENESIS_DIR && go build -o eth-beacon-genesis ./cmd/eth-beacon-genesis )

testnet.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -63,9 +63,9 @@ pkill bootnode || echo "No existing bootnode processes"
6363
# if you're developing on a local fork of geth/prysm
6464
GETH_BINARY=./dependencies/go-ethereum/build/bin/geth
6565

66-
PRYSM_CTL_BINARY=./dependencies/prysm/bazel-bin/cmd/prysmctl/prysmctl_/prysmctl
67-
PRYSM_BEACON_BINARY=./dependencies/prysm/bazel-bin/cmd/beacon-chain/beacon-chain_/beacon-chain
68-
PRYSM_VALIDATOR_BINARY=./dependencies/prysm/bazel-bin/cmd/validator/validator_/validator
66+
PRYSM_CTL_BINARY=./dependencies/prysm/prysmctl
67+
PRYSM_BEACON_BINARY=./dependencies/prysm/beacon-chain
68+
PRYSM_VALIDATOR_BINARY=./dependencies/prysm/validator
6969

7070
# The first geth node will act as bootnode for execution client peer discovery
7171
# This variable will be set after the first node starts

0 commit comments

Comments
 (0)