diff options
author | David Sherret <dsherret@users.noreply.github.com> | 2023-05-22 16:55:04 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-05-22 16:55:04 -0400 |
commit | 7b4c483aa159794cdb9d57d3252c2980fba45469 (patch) | |
tree | b1c3b0ab080e98ab20f470fbad5b1aba05045dfb /cli/module_loader.rs | |
parent | 612226de8e2fe3068d981866242bacedfceb9734 (diff) |
fix(npm): store npm binary command resolution in lockfile (#19219)
Part of #19038
Closes #19034 (eliminates the time spent re-resolving)
Diffstat (limited to 'cli/module_loader.rs')
-rw-r--r-- | cli/module_loader.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/cli/module_loader.rs b/cli/module_loader.rs index 5465ad1b8..73fd2f5f4 100644 --- a/cli/module_loader.rs +++ b/cli/module_loader.rs @@ -163,7 +163,7 @@ impl ModuleLoadPreparer { // validate the integrity of all the modules graph_lock_or_exit(graph, &mut lockfile); // update it with anything new - lockfile.write()?; + lockfile.write().context("Failed writing lockfile.")?; } // save the graph and get a reference to the new graph |