Ticket #716 (new enhancement)

Opened 3 years ago

Last modified 15 months ago

Inconsistent behavior between custom and simple build types

Reported by: j3h Owned by:
Priority: normal Milestone: cabal-install-0.16
Component: cabal-install tool Version:
Severity: normal Keywords:
Cc: Difficulty: unknown
GHC Version: Platform:

Description

If a Custom build-type is used, Setup.hs may be built with a different version of Cabal than the one that cabal-install was built with. This can cause hard-to-find (seemingly random) build failures.

Perhaps cabal-install should warn when it runs Setup.hs with a different version of Cabal than the one that it was built with. Alternatively, it could fail if the version of Cabal that cabal-install was built with is not available when compiling the Setup script.

Change History

Changed 3 years ago by duncan

I guess we could warn. In general we do need to be able to build using a different Cabal version, even for build-type Simple.

The current behaviour is to use a Cabal lib version that is the same major version as the version that cabal-install was built with, and otherwise to use whatever is the latest available version that meets the version constraints specified in the .cabal file.

Changed 15 months ago by kosmikus

  • milestone set to cabal-install-0.16
Note: See TracTickets for help on using tickets.