[Hackage] #813: Cabal should warn if the Cabal-Version range is too lax

#813: Cabal should warn if the Cabal-Version range is too lax ----------------------------+----------------------------------------------- Reporter: guest | Owner: Type: enhancement | Status: new Priority: normal | Milestone: Component: Cabal library | Version: 1.10.1.0 Severity: normal | Keywords: Difficulty: unknown | Ghcversion: Platform: | ----------------------------+----------------------------------------------- I have a Cabal file that contains the line {{{ Cabal-Version: >=1.6 }}} and then a test section: {{{ Test-Suite test-mypkg }}} Cabal should issue a warning like: {{{ Test-Suite feature requires Cabal-Version: >=1.10. Your Cabal version range ">=1.6" is too lax. }}} -- Ticket URL: http://hackage.haskell.org/trac/hackage/ticket/813 Hackage http://haskell.org/cabal/ Hackage: Cabal and related projects

#813: Cabal should warn if the Cabal-Version range is too lax ----------------------------+----------------------------------------------- Reporter: guest | Owner: Type: enhancement | Status: new Priority: normal | Milestone: Component: Cabal library | Version: 1.10.1.0 Severity: normal | Keywords: Difficulty: unknown | Ghcversion: Platform: | ----------------------------+----------------------------------------------- Comment(by duncan): When you run `cabal check` it does issue a warning: {{{ The following errors will cause portability problems on other environments: * The 'test-suite' section is new in Cabal 1.10. Unfortunately it messes up the parser in older Cabal versions so you must specify at least 'cabal-version: >= 1.8', but notethat only Cabal 1.10 and later can actually run such test suites. }}} We do not however want to require that all .cabal files with test-suites specify `cabal-version: >= 1.10` because this would then prevent such packages from building with older Cabal versions. Cabal-1.8 will just ignore unknown sections, so it can continue to build packages that have test-suite sections. -- Ticket URL: http://hackage.haskell.org/trac/hackage/ticket/813#comment:1 Hackage http://haskell.org/cabal/ Hackage: Cabal and related projects

#813: Cabal should warn if the Cabal-Version range is too lax ----------------------------+----------------------------------------------- Reporter: guest | Owner: Type: enhancement | Status: new Priority: normal | Milestone: Component: Cabal library | Version: 1.10.1.0 Severity: normal | Keywords: Difficulty: unknown | Ghcversion: Platform: | ----------------------------+----------------------------------------------- Comment(by duncan): Unless there are any other reasons / arguements for why we should warn, I'm inclined to close this ticket. -- Ticket URL: http://hackage.haskell.org/trac/hackage/ticket/813#comment:2 Hackage http://haskell.org/cabal/ Hackage: Cabal and related projects

#813: Cabal should warn if the Cabal-Version range is too lax ----------------------------+----------------------------------------------- Reporter: guest | Owner: Type: enhancement | Status: closed Priority: normal | Milestone: Component: Cabal library | Version: 1.10.1.0 Severity: normal | Resolution: wontfix Keywords: | Difficulty: unknown Ghcversion: | Platform: ----------------------------+----------------------------------------------- Changes (by duncan): * status: new => closed * resolution: => wontfix -- Ticket URL: http://hackage.haskell.org/trac/hackage/ticket/813#comment:3 Hackage http://haskell.org/cabal/ Hackage: Cabal and related projects
participants (1)
-
Hackage