Skip to content

Commit a4acc2c

Browse files
authored
chore: do not network-resolve in elan default (leanprover#149)
1 parent bc4c0de commit a4acc2c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/elan-cli/elan_mode.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
use clap::{App, AppSettings, Arg, ArgMatches, Shell, SubCommand};
22
use common;
3-
use elan::{command, gc, lookup_toolchain_desc, Cfg, Toolchain};
3+
use elan::{command, gc, lookup_toolchain_desc, lookup_unresolved_toolchain_desc, Cfg, Toolchain};
44
use elan_dist::dist::ToolchainDesc;
55
use elan_utils::utils;
66
use errors::*;
@@ -252,7 +252,7 @@ pub fn cli() -> App<'static, 'static> {
252252
fn default_(cfg: &Cfg, m: &ArgMatches) -> Result<()> {
253253
let name = m.value_of("toolchain").expect("");
254254
// sanity-check
255-
let _ = lookup_toolchain_desc(cfg, name)?;
255+
let _ = lookup_unresolved_toolchain_desc(cfg, name)?;
256256

257257
cfg.set_default(name)?;
258258
Ok(())

0 commit comments

Comments
 (0)