Skip to content

Commit

Permalink
Merge pull request #1082 from JuliaLang/ui-for-versiondb-update
Browse files Browse the repository at this point in the history
Provide a UI output for version db checking
  • Loading branch information
davidanthoff authored Oct 22, 2024
2 parents dd426ab + 980ba11 commit 72d844e
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 8 deletions.
5 changes: 5 additions & 0 deletions src/operations.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1353,6 +1353,11 @@ mod tests {
}

pub fn update_version_db(paths: &GlobalPaths) -> Result<()> {
eprintln!(
"{} for new Julia versions",
style("Checking").green().bold()
);

let file_lock = get_read_lock(paths)?;

let mut temp_versiondb_download_path: Option<TempPath> = None;
Expand Down
17 changes: 9 additions & 8 deletions tests/command_initial_setup_from_launcher_test.rs
Original file line number Diff line number Diff line change
Expand Up @@ -20,14 +20,15 @@ fn command_initial_setup() {
.success()
.stdout(predicate::str::is_empty())
.stderr(
predicate::str::starts_with("Installing Julia 1.11.1").and(
predicate::str::contains("apple.darwin14")
.not()
.or(
predicate::str::contains("Checking standard library notarization")
.and(predicate::str::ends_with("done.\n")),
),
),
predicate::str::starts_with("Checking for new Julia versions\nInstalling Julia 1.11.1")
.and(
predicate::str::contains("apple.darwin14")
.not()
.or(
predicate::str::contains("Checking standard library notarization")
.and(predicate::str::ends_with("done.\n")),
),
),
);

depot_dir
Expand Down

0 comments on commit 72d844e

Please sign in to comment.