Skip to content

Commit ad20989

Browse files
committed
Allow setting web3signer version through environment
The goal is to make it possible to build Lighthouse without network access, so builds can be reproducible. This parallels the existing functionality in `common/deposit_contract/build.rs`, which allows specifying a filename through the environment to avoid downloading it. In this case, by specifying the version and making it available on the filesystem, the existing logic will avoid a network download.
1 parent 21dec6f commit ad20989

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,3 +9,6 @@ perf.data*
99
/bin
1010
genesis.ssz
1111
/clippy.toml
12+
13+
# IntelliJ
14+
/*.iml

testing/web3signer_tests/build.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,9 @@ use zip::ZipArchive;
1010

1111
/// Use `None` to download the latest Github release.
1212
/// Use `Some("21.8.1")` to download a specific version.
13-
const FIXED_VERSION_STRING: Option<&str> = None;
13+
const FIXED_VERSION_STRING: Option<String> =
14+
env::var("LIGHTHOUSE_WEB3SIGNER_VERSION")
15+
.ok();
1416

1517
#[tokio::main]
1618
async fn main() {

0 commit comments

Comments
 (0)