From 1f47248143b2298d38dbada5b431570c067ed663 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bartek=20Iwa=C5=84czuk?= Date: Tue, 20 Aug 2024 19:13:17 +0100 Subject: fix: adjust suggestion for lockfile regeneration (#25107) Ref https://github.com/denoland/deno/pull/24436#issuecomment-2288568645 --- cli/Cargo.toml | 2 +- cli/graph_util.rs | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'cli') diff --git a/cli/Cargo.toml b/cli/Cargo.toml index 920f0d795..c3fc704f1 100644 --- a/cli/Cargo.toml +++ b/cli/Cargo.toml @@ -72,7 +72,7 @@ deno_emit = "=0.44.0" deno_graph = { version = "=0.81.2" } deno_lint = { version = "=0.63.1", features = ["docs"] } deno_lockfile.workspace = true -deno_npm = "=0.23.0" +deno_npm = "=0.23.1" deno_package_json.workspace = true deno_runtime = { workspace = true, features = ["include_js_files_for_snapshotting"] } deno_semver = "=0.5.10" diff --git a/cli/graph_util.rs b/cli/graph_util.rs index 647307bd9..6f0e6acd9 100644 --- a/cli/graph_util.rs +++ b/cli/graph_util.rs @@ -803,7 +803,7 @@ fn enhanced_lockfile_error_message(err: &ModuleError) -> Option { "This could be caused by:\n", " * the lock file may be corrupt\n", " * the source itself may be corrupt\n\n", - "Use the --lock-write flag to regenerate the lockfile or --reload to reload the source code from the server." + "Investigate the lockfile; delete it to regenerate the lockfile or --reload to reload the source code from the server." ), package_nv, checksum_err.actual, @@ -824,7 +824,7 @@ fn enhanced_lockfile_error_message(err: &ModuleError) -> Option { "This could be caused by:\n", " * the lock file may be corrupt\n", " * the source itself may be corrupt\n\n", - "Use the --lock-write flag to regenerate the lockfile or --reload to reload the source code from the server." + "Investigate the lockfile; delete it to regenerate the lockfile or --reload to reload the source code from the server." ), specifier, checksum_err.actual, -- cgit v1.2.3