Skip to content

Commit

Permalink
Commenting out extraneous version warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
ptkato committed Jul 9, 2021
1 parent ff60951 commit af26bd0
Showing 1 changed file with 16 additions and 14 deletions.
30 changes: 16 additions & 14 deletions Cabal/src/Distribution/PackageDescription/Check.hs
Original file line number Diff line number Diff line change
Expand Up @@ -539,13 +539,15 @@ checkFields pkg =
++ "for example 'tested-with: GHC==6.10.4, GHC==6.12.3' and not "
++ "'tested-with: GHC==6.10.4 && ==6.12.3'."

, check (not (null depInternalLibraryWithExtraVersion)) $
PackageBuildWarning $
"The package has an extraneous version range for a dependency on an "
++ "internal library: "
++ commaSep (map prettyShow depInternalLibraryWithExtraVersion)
++ ". This version range includes the current package but isn't needed "
++ "as the current package's library will always be used."
-- for more details on why the following was commented out,
-- check https://github.com/haskell/cabal/pull/7470#issuecomment-875878507
-- , check (not (null depInternalLibraryWithExtraVersion)) $
-- PackageBuildWarning $
-- "The package has an extraneous version range for a dependency on an "
-- ++ "internal library: "
-- ++ commaSep (map prettyShow depInternalLibraryWithExtraVersion)
-- ++ ". This version range includes the current package but isn't needed "
-- ++ "as the current package's library will always be used."

, check (not (null depInternalLibraryWithImpossibleVersion)) $
PackageBuildImpossible $
Expand All @@ -555,13 +557,13 @@ checkFields pkg =
++ ". This version range does not include the current package, and must "
++ "be removed as the current package's library will always be used."

, check (not (null depInternalExecutableWithExtraVersion)) $
PackageBuildWarning $
"The package has an extraneous version range for a dependency on an "
++ "internal executable: "
++ commaSep (map prettyShow depInternalExecutableWithExtraVersion)
++ ". This version range includes the current package but isn't needed "
++ "as the current package's executable will always be used."
-- , check (not (null depInternalExecutableWithExtraVersion)) $
-- PackageBuildWarning $
-- "The package has an extraneous version range for a dependency on an "
-- ++ "internal executable: "
-- ++ commaSep (map prettyShow depInternalExecutableWithExtraVersion)
-- ++ ". This version range includes the current package but isn't needed "
-- ++ "as the current package's executable will always be used."

, check (not (null depInternalExecutableWithImpossibleVersion)) $
PackageBuildImpossible $
Expand Down

0 comments on commit af26bd0

Please sign in to comment.