-
Notifications
You must be signed in to change notification settings - Fork 11
Upgrade to Josh r26.05.08 #48
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -8,7 +8,7 @@ use std::time::Duration; | |
|
|
||
| const JOSH_PORT: u16 = 42042; | ||
| /// Version of `josh-proxy` that should be downloaded for the user. | ||
| const JOSH_VERSION: &str = "r24.10.04"; | ||
| const JOSH_VERSION: &str = "r26.05.08"; | ||
|
|
||
| pub struct JoshProxy { | ||
| path: PathBuf, | ||
|
|
@@ -120,7 +120,7 @@ pub fn try_install_josh_filter(verbose: bool) -> Option<JoshFilter> { | |
| "https://github.com/josh-project/josh", | ||
| "--tag", | ||
| JOSH_VERSION, | ||
| "josh-filter", | ||
| "josh-cli", | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. We still invoke the
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. josh-proxy is still installed in the corresponding function. This function installed the "josh-filter" crate which contained the "josh-filter" binary. But in the new version that binary is in the "josh-cli" crate.
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Ah, I see. That's worth a comment as currently it's quite confusing when just looking at the code. :) |
||
| ], | ||
| verbose, | ||
| ) | ||
|
|
@@ -137,6 +137,7 @@ pub struct RunningJoshProxy { | |
| impl RunningJoshProxy { | ||
| pub fn git_url(&self, repo: &str, commit: Option<&str>, filter: &str) -> String { | ||
| let commit = commit.map(|c| format!("@{c}")).unwrap_or_default(); | ||
| let filter = urlencoding::encode(filter); | ||
| format!( | ||
| "http://localhost:{}/{repo}.git{commit}{filter}.git", | ||
| self.port | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This looks plausible but having a test that calls this function on a few representative inputs would probably still be a good idea.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done.