summaryrefslogtreecommitdiff
path: root/cli/module_graph2.rs
diff options
context:
space:
mode:
authorNayeem Rahman <nayeemrmn99@gmail.com>2020-10-19 20:19:20 +0100
committerGitHub <noreply@github.com>2020-10-19 21:19:20 +0200
commit3f5513758d9e237d7c3775165c4164db89a95d31 (patch)
tree37b6e2526446d23a2373ecc53932ae6805aeff8a /cli/module_graph2.rs
parent9d664f8375856be228e4f98b8381ac934d84604b (diff)
feat(cli/installer): Add missing flags for deno install (#7601)
This commit adds support for following flags: - deno install --importmap - deno install --no-remote - deno install --lock - deno install --lock-write - deno install --cached-only - deno install --v8-flags - deno install --seed
Diffstat (limited to 'cli/module_graph2.rs')
-rw-r--r--cli/module_graph2.rs9
1 files changed, 4 insertions, 5 deletions
diff --git a/cli/module_graph2.rs b/cli/module_graph2.rs
index 2b43cc65d..681cc3bb5 100644
--- a/cli/module_graph2.rs
+++ b/cli/module_graph2.rs
@@ -615,7 +615,8 @@ impl Graph2 {
let valid = lockfile.check_or_insert(&specifier, &module.source);
if !valid {
return Err(
- InvalidSource(ms.clone(), lockfile.filename.clone()).into(),
+ InvalidSource(ms.clone(), lockfile.filename.display().to_string())
+ .into(),
);
}
}
@@ -1243,8 +1244,7 @@ pub mod tests {
let fixtures = c.join("tests/module_graph");
let lockfile_path = fixtures.join("lockfile.json");
let lockfile =
- Lockfile::new(lockfile_path.to_string_lossy().to_string(), false)
- .expect("could not load lockfile");
+ Lockfile::new(lockfile_path, false).expect("could not load lockfile");
let maybe_lockfile = Some(Mutex::new(lockfile));
let handler = Rc::new(RefCell::new(MockSpecifierHandler {
fixtures,
@@ -1269,8 +1269,7 @@ pub mod tests {
let fixtures = c.join("tests/module_graph");
let lockfile_path = fixtures.join("lockfile_fail.json");
let lockfile =
- Lockfile::new(lockfile_path.to_string_lossy().to_string(), false)
- .expect("could not load lockfile");
+ Lockfile::new(lockfile_path, false).expect("could not load lockfile");
let maybe_lockfile = Some(Mutex::new(lockfile));
let handler = Rc::new(RefCell::new(MockSpecifierHandler {
fixtures,