Skip to content

Commit 3a46e84

Browse files
committed
Allow setting web3signer version through environment (#3369)
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 3a46e84

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-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: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ 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> = env::var("LIGHTHOUSE_WEB3SIGNER_VERSION").ok();
1414

1515
#[tokio::main]
1616
async fn main() {

0 commit comments

Comments
 (0)