Skip to content

Suppressing the Juliaup outdated Julia version message #1256

@asinghvi17

Description

@asinghvi17

When running Julia in applications that look for stderr output as indications of errors, this Juliaup output can become highly annoying.

JuliaupConfigChannel::DirectDownloadChannel {
path,
url: _,
local_etag,
server_etag,
version: _,
} => {
if local_etag != server_etag {
if channel.starts_with("nightly") {
// Nightly is updateable several times per day so this message will show
// more often than not unless folks update a couple of times a day.
// Also, folks using nightly are typically more experienced and need
// less detailed prompting
eprintln!(
"A new `nightly` version is available. Install with `juliaup update`."
);
} else {
eprintln!(
"A new version of Julia for the `{}` channel is available. Run:",
channel
);
eprintln!();
eprintln!(" juliaup update");
eprintln!();
eprintln!("to install the latest Julia for the `{}` channel.", channel);
}
}

Would it be possible to control that via ENV variable? If such a PR is welcomed I can whip something up.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions