Skip to content

Commit cf3bcca

Browse files
committed
Allow setting web3signer version through environment (#3368)
## Issue Addressed #3369 ## Proposed Changes 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 f343911 commit cf3bcca

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
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: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,8 @@ pub async fn download_binary(dest_dir: PathBuf) {
2929

3030
let version = if let Some(version) = FIXED_VERSION_STRING {
3131
version.to_string()
32+
} else if let Ok(env_version) = env::var("LIGHTHOUSE_WEB3SIGNER_VERSION") {
33+
env_version
3234
} else {
3335
// Get the latest release of the web3 signer repo.
3436
let latest_response: Value = client

0 commit comments

Comments
 (0)