Skip to content

Commit 16a67b9

Browse files
committed
Extract Josh version into a constant
1 parent 753fb9a commit 16a67b9

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/josh.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@ use std::process::{Command, Stdio};
77
use std::time::Duration;
88

99
const JOSH_PORT: u16 = 42042;
10+
/// Version of `josh-proxy` that should be downloaded for the user.
11+
const JOSH_VERSION: &str = "r24.10.04";
1012

1113
pub struct JoshProxy {
1214
path: PathBuf,
@@ -68,7 +70,7 @@ pub fn try_install_josh() -> Option<JoshProxy> {
6870
"--git",
6971
"https://github.com/josh-project/josh",
7072
"--tag",
71-
"r24.10.04",
73+
JOSH_VERSION,
7274
"josh-proxy",
7375
])
7476
.expect("cannot install josh-proxy");

0 commit comments

Comments
 (0)