File tree Expand file tree Collapse file tree 2 files changed +5
-1
lines changed Expand file tree Collapse file tree 2 files changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -31,6 +31,8 @@ Other enhancements:
31
31
` install-msys ` option in YAML configuration files.
32
32
* Option ` allow-newer-deps ` is no longer classified as experimental in
33
33
documentation.
34
+ * ` stack sdist ` and ` stack upload ` report the version of Cabal (the library)
35
+ being used to check packages.
34
36
35
37
Bug fixes:
36
38
Original file line number Diff line number Diff line change @@ -42,6 +42,7 @@ import qualified Distribution.PackageDescription.Check as Check
42
42
import qualified Distribution.PackageDescription.Parsec as Cabal
43
43
import Distribution.PackageDescription.PrettyPrint
44
44
( showGenericPackageDescription )
45
+ import Distribution.Simple.Utils ( cabalVersion )
45
46
import Distribution.Version
46
47
( earlierVersion , hasLowerBound , hasUpperBound , isAnyVersion
47
48
, orLaterVersion , simplifyVersionRange
@@ -574,7 +575,8 @@ checkPackageInExtractedTarball pkgDir = do
574
575
prettyInfoL
575
576
[ flow " Checking package"
576
577
, style Current (fromPackageName name)
577
- , flow " for common mistakes."
578
+ , flow " for common mistakes using Cabal version"
579
+ , fromString $ versionString cabalVersion <> " ."
578
580
]
579
581
let pkgChecks =
580
582
-- MSS 2017-12-12: Try out a few different variants of pkgDesc to try
You can’t perform that action at this time.
0 commit comments