diff --git a/src/command_link.rs b/src/command_link.rs index c7fcb2e4..cf840c8f 100644 --- a/src/command_link.rs +++ b/src/command_link.rs @@ -3,6 +3,7 @@ use crate::config_file::{load_mut_config_db, save_config_db}; use crate::global_paths::GlobalPaths; #[cfg(not(windows))] use crate::operations::create_symlink; +use crate::utils::is_valid_julia_path; use crate::versions_file::load_versions_db; use anyhow::{bail, Context, Result}; use path_absolutize::Absolutize; @@ -32,6 +33,10 @@ pub fn run_command_link( .absolutize() .with_context(|| format!("Failed to convert path `{}` to absolute path.", file))?; + if !is_valid_julia_path(&absolute_file_path.to_path_buf()) { + eprintln!("WARNING: There is no julia binary at {}. If this was a mistake, run `juliaup remove {}` and try again.", absolute_file_path.to_string_lossy(), channel); + } + config_file.data.installed_channels.insert( channel.to_string(), JuliaupConfigChannel::LinkedChannel {