Skip to content

Commit

Permalink
chore: use SANDBOX_ARTIFACT_URL (#74)
Browse files Browse the repository at this point in the history
  • Loading branch information
Yasir Shariff authored Nov 3, 2023
1 parent 6d74e06 commit 50d8df0
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions crate/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,12 @@ fn local_addr(port: u16) -> String {
format!("0.0.0.0:{}", port)
}

// if the `SANDBOX_ARTIFACT_URL` env var is set, we short-circuit and use that.
fn bin_url(version: &str) -> Option<String> {
if let Ok(val) = std::env::var("SANDBOX_ARTIFACT_URL") {
return Some(val);
}

Some(format!(
"https://s3-us-west-1.amazonaws.com/build.nearprotocol.com/nearcore/{}/{}/near-sandbox.tar.gz",
platform()?,
Expand Down

0 comments on commit 50d8df0

Please sign in to comment.