You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+1Lines changed: 1 addition & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -116,6 +116,7 @@ Here are some of the things you can do with `juliaup`:
116
116
-`juliaup add 1.6.1~x86` installs the 32 bit version of Julia 1.6.1 on your system.
117
117
-`juliaup default 1.6~x86` configures the `julia` command to start the latest 1.6.x 32 bit version of Julia you have installed on your system.
118
118
-`juliaup link dev ~/juliasrc/julia` configures the `dev` channel to use a binary that you provide that is located at `~/juliasrc/julia`. You can then use `dev` as if it was a system provided channel, i.e. make it the default or use it with the `+` version selector. You can use other names than `dev` and link as many versions into `juliaup` as you want.
119
+
-`juliaup link r +release` creates a channel alias `r` that points to the `release` channel. This allows you to use `julia +r` as a shortcut for `julia +release`. Channel aliases can point to any installed channel or system-provided channel.
119
120
-`juliaup self update` installs the latest version, which is necessary if new releases reach the beta channel, etc.
120
121
-`juliaup self uninstall` uninstalls Juliaup. Note that on some platforms this command is not available, in those situations one should use platform specific methods to uninstall Juliaup.
121
122
-`juliaup override status` shows all configured directory overrides.
UserError{msg:format!("`{}` is not installed. Please run `juliaup add {}` to install channel or version.", channel, channel)}
399
-
}elseifis_pr_channel(channel){
400
-
UserError{msg:format!("`{}` is not installed. Please run `juliaup add {}` to install pull request channel if available.", channel, channel)}
411
+
UserError{msg:format!("`{resolved_channel}` is not installed. Please run `juliaup add {resolved_channel}` to install channel or version.")}
412
+
}elseifis_pr_channel(&resolved_channel){
413
+
UserError{msg:format!("`{resolved_channel}` is not installed. Please run `juliaup add {resolved_channel}` to install pull request channel if available.")}
401
414
}else{
402
-
UserError{msg:format!("Invalid Juliaup channel `{}`. Please run `juliaup list` to get a list of valid channels and versions.", channel)}
415
+
UserError{msg:format!("Invalid Juliaup channel `{resolved_channel}`. Please run `juliaup list` to get a list of valid channels and versions.")}
403
416
}
404
417
},
405
418
JuliaupChannelSource::EnvVar=> {
406
419
if channel_valid {
407
-
UserError{msg:format!("`{}` from environment variable JULIAUP_CHANNEL is not installed. Please run `juliaup add {}` to install channel or version.", channel, channel)}
408
-
}elseifis_pr_channel(channel){
409
-
UserError{msg:format!("`{}` from environment variable JULIAUP_CHANNEL is not installed. Please run `juliaup add {}` to install pull request channel if available.", channel, channel)}
420
+
UserError{msg:format!("`{resolved_channel}` from environment variable JULIAUP_CHANNEL is not installed. Please run `juliaup add {resolved_channel}` to install channel or version.")}
421
+
}elseifis_pr_channel(&resolved_channel){
422
+
UserError{msg:format!("`{resolved_channel}` from environment variable JULIAUP_CHANNEL is not installed. Please run `juliaup add {resolved_channel}` to install pull request channel if available.")}
410
423
}else{
411
-
UserError{msg:format!("Invalid Juliaup channel `{}` from environment variable JULIAUP_CHANNEL. Please run `juliaup list` to get a list of valid channels and versions.", channel)}
424
+
UserError{msg:format!("Invalid Juliaup channel `{resolved_channel}` from environment variable JULIAUP_CHANNEL. Please run `juliaup list` to get a list of valid channels and versions.")}
412
425
}
413
426
},
414
427
JuliaupChannelSource::Override=> {
415
428
if channel_valid {
416
-
UserError{msg:format!("`{}` from directory override is not installed. Please run `juliaup add {}` to install channel or version.", channel, channel)}
417
-
}elseifis_pr_channel(channel){
418
-
UserError{msg:format!("`{}` from directory override is not installed. Please run `juliaup add {}` to install pull request channel if available.", channel, channel)}
429
+
UserError{msg:format!("`{resolved_channel}` from directory override is not installed. Please run `juliaup add {resolved_channel}` to install channel or version.")}
430
+
}elseifis_pr_channel(&resolved_channel){
431
+
UserError{msg:format!("`{resolved_channel}` from directory override is not installed. Please run `juliaup add {resolved_channel}` to install pull request channel if available.")}
419
432
}else{
420
-
UserError{msg:format!("Invalid Juliaup channel `{}` from directory override. Please run `juliaup list` to get a list of valid channels and versions.", channel)}
433
+
UserError{msg:format!("Invalid Juliaup channel `{resolved_channel}` from directory override. Please run `juliaup list` to get a list of valid channels and versions.")}
421
434
}
422
435
},
423
-
JuliaupChannelSource::Default => UserError{msg:format!("The Juliaup configuration is in an inconsistent state, the currently configured default channel `{}` is not installed.", channel)}
436
+
JuliaupChannelSource::Default => UserError{msg:format!("The Juliaup configuration is in an inconsistent state, the currently configured default channel `{resolved_channel}` is not installed.")}
JuliaupConfigChannel::SystemChannel{ version } => {
442
460
let path = &config_data
443
461
.installed_versions.get(version)
444
-
.ok_or_else(|| anyhow!("The juliaup configuration is in an inconsistent state, the channel {} is pointing to Julia version {}, which is not installed.", channel, version))?.path;
462
+
.ok_or_else(|| anyhow!("The juliaup configuration is in an inconsistent state, the channel {channel} is pointing to Julia version {version}, which is not installed."))?.path;
0 commit comments