Skip to content

Commit 0aca704

Browse files
authored
Make the "dropping the 'purescript-' prefix" warning milder (#571)
* Make the "dropping the 'purescript-' prefix" warning milder Fix #570 * Update test fixture
1 parent 0323b52 commit 0aca704

File tree

2 files changed

+4
-6
lines changed

2 files changed

+4
-6
lines changed

src/Spago/Packages.hs

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -220,11 +220,9 @@ reportMissingPackages (PackagesLookupResult found foundWithoutPrefix notFound) =
220220
[ "The following packages do not exist in your package set:" ]
221221
<> (fmap (\(NotFoundError (PackageName packageName)) -> display $ " - " <> packageName) $ List.sort notFound)
222222

223-
for_ foundWithoutPrefix $ \(FoundWithoutPrefix sansPrefix) ->
224-
logWarn
225-
$ display
226-
$ "The package 'purescript-" <> packageName sansPrefix <> "' was not found in your package set, but '"
227-
<> packageName sansPrefix <> "' was. Using that instead."
223+
for_ foundWithoutPrefix $ \(FoundWithoutPrefix (PackageName sansPrefix)) ->
224+
logInfo $ display
225+
$ "The package 'purescript-" <> sansPrefix <> "' was resolved to the '" <> sansPrefix <> "' package"
228226
pure found
229227

230228

test/fixtures/spago-install-purescript-prefix-stderr.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
[warn] The package 'purescript-newtype' was not found in your package set, but 'newtype' was. Using that instead.
1+
[info] The package 'purescript-newtype' was resolved to the 'newtype' package
22
[info] Installing 1 dependencies.
33
[info] Searching for packages cache metadata..
44
[info] Recent packages cache metadata found, using it..

0 commit comments

Comments
 (0)