From 95c0b54b0378d6ba806b8ba98369ff79fe9cef77 Mon Sep 17 00:00:00 2001 From: Francesco Ariis Date: Mon, 27 Nov 2023 18:45:20 +0100 Subject: [PATCH] Fix testsuite --- .../Check/ConfiguredPackage/CabalVersion/AutoGenMods/cabal.out | 1 + .../PackageTests/Check/NonConfCheck/PathsExtensions/cabal.out | 2 ++ 2 files changed, 3 insertions(+) diff --git a/cabal-testsuite/PackageTests/Check/ConfiguredPackage/CabalVersion/AutoGenMods/cabal.out b/cabal-testsuite/PackageTests/Check/ConfiguredPackage/CabalVersion/AutoGenMods/cabal.out index 8d0799bafc4..ab6e4aa85c1 100644 --- a/cabal-testsuite/PackageTests/Check/ConfiguredPackage/CabalVersion/AutoGenMods/cabal.out +++ b/cabal-testsuite/PackageTests/Check/ConfiguredPackage/CabalVersion/AutoGenMods/cabal.out @@ -2,4 +2,5 @@ The following errors will cause portability problems on other environments: Error: Packages using 'cabal-version: 2.0' and the autogenerated module Paths_* must include it also on the 'autogen-modules' field besides 'exposed-modules' and 'other-modules'. This specifies that the module does not come with the package and is generated on setup. Modules built with a custom Setup.hs script also go here to ensure that commands like sdist don't fail. Error: Packages using 'cabal-version: 2.0' and the autogenerated module PackageInfo_* must include it in 'autogen-modules' as well as 'exposed-modules' and 'other-modules'. This specifies that the module does not come with the package and is generated on setup. Modules built with a custom Setup.hs script also go here to ensure that commands like sdist don't fail. +Error: To use the autogenerated module PackageInfo_* you need to specify `cabal-version: 3.12` or higher. Error: Hackage would reject this package. diff --git a/cabal-testsuite/PackageTests/Check/NonConfCheck/PathsExtensions/cabal.out b/cabal-testsuite/PackageTests/Check/NonConfCheck/PathsExtensions/cabal.out index eb486dcb3af..e9acace1c9c 100644 --- a/cabal-testsuite/PackageTests/Check/NonConfCheck/PathsExtensions/cabal.out +++ b/cabal-testsuite/PackageTests/Check/NonConfCheck/PathsExtensions/cabal.out @@ -2,4 +2,6 @@ The package will not build sanely due to these errors: Error: Packages using RebindableSyntax with OverloadedStrings or OverloadedLists in default-extensions, in conjunction with the autogenerated module Paths_*, are known to cause compile failures with Cabal < 2.2. To use these default-extensions with a Paths_* autogen module, specify at least 'cabal-version: 2.2'. Error: Packages using RebindableSyntax with OverloadedStrings or OverloadedLists in default-extensions, in conjunction with the autogenerated module PackageInfo_*, are known to cause compile failures with Cabal < 2.2. To use these default-extensions with a PackageInfo_* autogen module, specify at least 'cabal-version: 2.2'. +The following errors will cause portability problems on other environments: +Error: To use the autogenerated module PackageInfo_* you need to specify `cabal-version: 3.12` or higher. Error: Hackage would reject this package.