From c4f524c782f75ee7aee5abd159c93450f45d820e Mon Sep 17 00:00:00 2001 From: Aman Sharma Date: Thu, 15 Oct 2026 18:41:52 +0200 Subject: [PATCH] Reword hallucinated-dependency messages so the list reads as the bad packages The messages ended with "use a real package instead:", so the list after the colon looked like the real packages to switch to. Put the instruction first and end the header on "likely hallucinated:" instead. Co-Authored-By: Claude Opus 5.5 --- main.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/main.go b/main.go index af3f65f5..bbcf575f 100644 --- a/main.go +++ b/main.go @@ -188,7 +188,7 @@ func checkPkgManagerPin(scheme, name, pinnedVersion string) { } if m := mismatches[0]; m.NotFound { - fmt.Fprintln(os.Stderr, "dependency pinned via package manager CLI doesn't exist on its registry, so it's likely hallucinated; use a real package instead:") + fmt.Fprintln(os.Stderr, "replace this dependency pinned via package manager CLI with a real package; it doesn't exist on its registry, so it's likely hallucinated:") fmt.Fprintf(os.Stderr, " %s %s\n", m.Name, m.Current) os.Exit(2) } @@ -304,7 +304,7 @@ func runHook() { } if len(notFound) > 0 { - fmt.Fprintln(os.Stderr, "these dependencies don't exist on their registry, so they're likely hallucinated; use a real package instead:") + fmt.Fprintln(os.Stderr, "replace these dependencies with real packages; they don't exist on their registry, so they're likely hallucinated:") for _, m := range notFound { name := m.Name if m.Namespace != "" {