diff --git a/.gitignore b/.gitignore index 6f8bafc5..4fc4f9c5 100644 --- a/.gitignore +++ b/.gitignore @@ -5,3 +5,5 @@ .vscode node_modules coverage +.aider* +.env diff --git a/spec/installer/repository_spec.cr b/spec/installer/repository_spec.cr index 6aa5dd16..41269a0e 100644 --- a/spec/installer/repository_spec.cr +++ b/spec/installer/repository_spec.cr @@ -56,6 +56,9 @@ describe "Repository" do 0.1.0 0.2.0 + + Hint: Run mint tool clean; mint tool clean --package-cache to reset local + state, and then try again. MESSAGE begin @@ -98,6 +101,9 @@ describe "Repository" do The error I got from the git command is this: cloned + + Hint: Run mint tool clean; mint tool clean --package-cache to reset local + state, and then try again. MESSAGE begin @@ -119,6 +125,9 @@ describe "Repository" do The error I got from the git command is this: fetched + + Hint: Run mint tool clean; mint tool clean --package-cache to reset local + state, and then try again. MESSAGE begin diff --git a/src/installer/repository.cr b/src/installer/repository.cr index 3e5c2aa6..82f51ed8 100644 --- a/src/installer/repository.cr +++ b/src/installer/repository.cr @@ -63,6 +63,12 @@ module Mint block do bold error.to_s.strip end + + block do + text "Hint: Run " + bold "mint tool clean; mint tool clean --package-cache" + text " to reset local state, and then try again." + end end unless status.success? output @@ -138,6 +144,12 @@ module Mint block do bold error.to_s.strip end + + block do + text "Hint: Run " + bold "mint tool clean; mint tool clean --package-cache" + text " to reset local state, and then try again." + end end unless status.success? terminal.puts " #{CHECKMARK} Updated #{id}" @@ -158,6 +170,12 @@ module Mint block do bold error.to_s.strip end + + block do + text "Hint: Run " + bold "mint tool clean; mint tool clean --package-cache" + text " to reset local state, and then try again." + end end unless status.success? terminal.puts " #{CHECKMARK} Cloned #{id}"