File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
Cabal/src/Distribution/PackageDescription Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -883,7 +883,7 @@ checkGlobResult title fp rs = dirCheck ++ catMaybes (map getWarning rs)
883
883
where
884
884
dirCheck
885
885
| all (not . withoutNoMatchesWarning) rs =
886
- [PackageDistSuspiciousWarn $ GlobNoMatch title (show fp)]
886
+ [PackageDistSuspiciousWarn $ GlobNoMatch title (prettyShow fp)]
887
887
| otherwise = []
888
888
889
889
-- If there's a missing directory in play, since globs in Cabal packages
@@ -902,9 +902,9 @@ checkGlobResult title fp rs = dirCheck ++ catMaybes (map getWarning rs)
902
902
-- suffix. This warning detects when pre-2.4 package descriptions
903
903
-- are omitting files purely because of the stricter check.
904
904
getWarning (GlobWarnMultiDot file) =
905
- Just $ PackageDistSuspiciousWarn (GlobExactMatch title (show fp) file)
905
+ Just $ PackageDistSuspiciousWarn (GlobExactMatch title (prettyShow fp) file)
906
906
getWarning (GlobMissingDirectory dir) =
907
- Just $ PackageDistSuspiciousWarn (GlobNoDir title (show fp) dir)
907
+ Just $ PackageDistSuspiciousWarn (GlobNoDir title (prettyShow fp) dir)
908
908
-- GlobMatchesDirectory is handled elsewhere if relevant;
909
909
-- we can discard it here.
910
910
getWarning (GlobMatchesDirectory _) = Nothing
You can’t perform that action at this time.
0 commit comments