Repository navigation
Conversation
This has been requested multiple times in the past, and now that the releases of Cabal and cabal-install are more frequent, the downsides are IMO not as big as in the past. To make the maintenance easier, I propose that we don't require @SInCE annotations in lib:cabal-install and don't go out of our way to support clients that want to be compatible with multiple major releases of lib:cabal-install. Additionally, this simplifies cabal-install.cabal a bit by removing the 'lib' flag. Fixes haskell#1597.
|
Does this mean we make no guarantees whatsoever to consumers of the library? I.e. every module is treated as "internal" and thus out of the scope of PVP versioning (and we do not maintain any API-level changelog; and are free to make non (EDITED) backward compatible changes w/o major ver bumps)? If not, I'm strongly against this. Personally I was hoping we'd rather finally move to use internal sub-libs, and internally structure the code into a solver sub-lib and a non-solver sub-lib. |
Yes, this shouldn't be required.
I guess you meant "incompatible". No, we will support clients that set e.g. |
|
Maybe expose parts though (public) sub-libraries |
You'll only need to think about it when backporting a patch to a stable branch. |
|
I think this is a good idea. Having access to the solver and to non-ad-hoc rendering & parsing of configuration files are both fairly important to the wider tooling ecosystem. If compatibility breaks, it's better to find out at compile time than at runtime since users are having to parse
Also - how often do |
in other words, we won't bother backporting anymore ;-)
if we do this, then they'll occur even less as the cost increases even more! This pushes us into the support mode which demands that cabal users upgrade to latest cabal-install as soon as it's available; which means we should reenable the warning in cabal which reminds users to upgrade as soon as a newer
As a data-point, I can tell you that the tooling I maintain will most likely not use cabal-install as a library even if it becomes available, even though I need exactly those things you mention. It'd take an intentionally designed library design for me to consider depending on it, rather than some arbtirary kitchen sink API which wasn't designed for public use by anyone else other than cabal-install. |
As you can see from http://hackage.haskell.org/package/cabal-install, 1.18, 1.20, and 1.22 had quite a few minor releases. But then the gaps between major releases were much longer.
Yeah, the idea is basically to not make minor releases unless we absolutely have to, but instead cut major releases more frequently.
Well, we want to do this anyway. Can't find the ticket for some reason.
See this as a (tiny) step towards that goal. Next steps would be to split the pure core out of |
|
Beware Hyrum's law. IMO, it would be much better to start with e.g. the solver (which is moderately stable, interface-wise I guess?) to try to gain a little experience in what expectations users will come to have. It's one thing to say "we guarantee nothing", but it's quite another to actually stick to that when users are screaming at you... |
Seems to work okay for GHC API. But we should clearly communicate our API stability guarantees to the users. |
|
Done as of the 3.6 release. |
This has been requested multiple times in the past, and now that the releases of Cabal and cabal-install are more frequent, the downsides are IMO not as big as before.
To make the maintenance easier, I propose that we don't require
@sinceannotations in lib:cabal-install and don't go out of our way to support clients that want to be compatible with multiple major releases of lib:cabal-install.Additionally, this simplifies
cabal-install.cabala bit by removing thelibflag.Fixes #1597.
Please include the following checklist in your PR:
[ci skip]is used to avoid triggering the build bots.Please also shortly describe how you tested your change. Bonus points for added tests!