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
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -150,7 +150,7 @@ To launch a specific Julia version, say in channel `release`, run `julia +releas
150
150
151
151
The Julia launcher `julia` automatically determines which specific version of Julia to launch. There are several ways to control and override which Juliaup channel should be used:
152
152
153
-
1. A command line Julia version specifier, such as `julia +release`.
153
+
1. A command line Julia version specifier, such as `julia +release`. For non-version channels, any unambiguous installed channel prefix will launch that channel.
154
154
2. The `JULIAUP_CHANNEL` environment variable.
155
155
3. A directory override, set with the `juliaup override set` command.
if versions_db.available_channels.contains_key(channel){
183
-
UserError{msg:format!("`{}` is not installed. Please run `juliaup add {}` to install channel or version.",channel, channel)}
213
+
if versions_db.available_channels.contains_key(expanded_channel){
214
+
UserError{msg:format!("`{}` is not installed. Please run `juliaup add {}` to install channel or version.",expanded_channel, expanded_channel)}
184
215
}else{
185
-
UserError{msg:format!("ERROR: Invalid Juliaup channel `{}`. Please run `juliaup list` to get a list of valid channels and versions.",channel)}
216
+
UserError{msg:format!("ERROR: Invalid Juliaup channel `{}`. Please run `juliaup list` to get a list of valid channels and versions.",expanded_channel)}
186
217
}
187
218
}.into(),
188
219
JuliaupChannelSource::EnvVar=> {
189
-
if versions_db.available_channels.contains_key(channel){
190
-
UserError{msg:format!("`{}` for environment variable JULIAUP_CHANNEL is not installed. Please run `juliaup add {}` to install channel or version.",channel, channel)}
220
+
if versions_db.available_channels.contains_key(expanded_channel){
221
+
UserError{msg:format!("`{}` for environment variable JULIAUP_CHANNEL is not installed. Please run `juliaup add {}` to install channel or version.",expanded_channel, expanded_channel)}
191
222
}else{
192
-
UserError{msg:format!("ERROR: Invalid Juliaup channel `{}` in environment variable JULIAUP_CHANNEL. Please run `juliaup list` to get a list of valid channels and versions.",channel)}
223
+
UserError{msg:format!("ERROR: Invalid Juliaup channel `{}` in environment variable JULIAUP_CHANNEL. Please run `juliaup list` to get a list of valid channels and versions.",expanded_channel)}
193
224
}
194
225
}.into(),
195
226
JuliaupChannelSource::Override=> {
196
-
if versions_db.available_channels.contains_key(channel){
197
-
UserError{msg:format!("`{}` for directory override is not installed. Please run `juliaup add {}` to install channel or version.",channel, channel)}
227
+
if versions_db.available_channels.contains_key(expanded_channel){
228
+
UserError{msg:format!("`{}` for directory override is not installed. Please run `juliaup add {}` to install channel or version.",expanded_channel, expanded_channel)}
198
229
}else{
199
-
UserError{msg:format!("ERROR: Invalid Juliaup channel `{}` in directory override. Please run `juliaup list` to get a list of valid channels and versions.",channel)}
230
+
UserError{msg:format!("ERROR: Invalid Juliaup channel `{}` in directory override. Please run `juliaup list` to get a list of valid channels and versions.",expanded_channel)}
200
231
}
201
232
}.into(),
202
-
JuliaupChannelSource::Default => anyhow!("The Juliaup configuration is in an inconsistent state, the currently configured default channel `{}` is not installed.",channel)
233
+
JuliaupChannelSource::Default => anyhow!("The Juliaup configuration is in an inconsistent state, the currently configured default channel `{}` is not installed.",expanded_channel)
JuliaupConfigChannel::SystemChannel{ version } => {
213
244
let path = &config_data
214
245
.installed_versions.get(version)
215
-
.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;
246
+
.ok_or_else(|| anyhow!("The juliaup configuration is in an inconsistent state, the channel {} is pointing to Julia version {}, which is not installed.",expanded_channel, version))?.path;
0 commit comments