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 --- tests/integration/jsr_tests.rs | 2 +- tests/integration/npm_tests.rs | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'tests/integration') diff --git a/tests/integration/jsr_tests.rs b/tests/integration/jsr_tests.rs index a9397af72..ef074987e 100644 --- a/tests/integration/jsr_tests.rs +++ b/tests/integration/jsr_tests.rs @@ -282,7 +282,7 @@ This could be caused by: * the lock file may be corrupt * the source itself may be corrupt -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. ", actual_integrity); test_context .new_command() diff --git a/tests/integration/npm_tests.rs b/tests/integration/npm_tests.rs index 6be0298d8..86db962f4 100644 --- a/tests/integration/npm_tests.rs +++ b/tests/integration/npm_tests.rs @@ -1200,7 +1200,7 @@ fn lock_file_missing_top_level_package() { "error: failed reading lockfile 'deno.lock'\n", "\n", "Caused by:\n", - " 0: The lockfile is corrupt. You can recreate it with --lock-write\n", + " 0: The lockfile is corrupt. Remove the lockfile to regenerate it.\n", " 1: Could not find 'cowsay@1.5.0' in the list of packages.\n" ) ); @@ -1483,7 +1483,7 @@ This could be caused by: * the lock file may be corrupt * the source itself may be corrupt -Use the --lock-write flag to regenerate the lockfile at "[WILDCARD]deno.lock". +Investigate the lockfile; delete it to regenerate the lockfile at "[WILDCARD]deno.lock". "#) .assert_exit_code(10); } -- cgit v1.2.3