-
Notifications
You must be signed in to change notification settings - Fork 72
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Allow updates without recompilation #662
Comments
The main requirement I have is that version info embedded into generated file is reflecting the needed bits. I guess we could have a configuration file available on the web, but it has to be versioned too. That said, so far often enough the generation itself had been changing. So maybe it's still easier to just hardcode the configs, but maybe rather provide a prebuilt binaries (for linux it's easy enough). |
A versioned config file sounds like an excellent idea, and making binaries available wouldn't hurt. Does generation need to change every time, or does that just happen to occur? That is, could program versions be supported for a good while with new config files? It would be good to eventually get a warning like "a new configuration is required to support X, but you'll need to upgrade to get it." |
Well, yes: bugs are fixed and features are added. The current approach is least maintenance for me, there's already an overhead of making releases to Hackage which I'm not particularly happy about. It could be that if I do binary releases, there won't be Hackage releases anymore. |
Could haskell-ci use the ghcup information at least to find out which GHC versions exist? And maybe optimistically treat any GHC newer than what’s hardcoded in haskell-ci as behaving like the latest known version? This would probably allow us to support new GHC releases faster in many cases. |
No. The delay between An example:
I had to make code changes to support So, again, No. I don't want to rely on any external source not explicitly made to be consumed by third parties (i.e. have good specification which can be relied upon), and even then I learned to be skeptical. |
Fair enough. When you say supported for new GHC releases, do you mean |
I mean I make release only at "everything seems to be ok" points. E.g. now there is no In other words, currently there isn't complete setup to work with GHC-9.8. Using
That's another point, |
Ok, thanks for the clarification! I hope I didn't sound ungrateful, I'm just trying to understand at which point as a library author I can be expected to support a new GHC release. |
If you are willing to be on the bleeding edge, than you need to build Otherwise, if you don't want to on the bleeding edge (e.g. you want use This time it will probably happen sooner, as there haven't been any massive development after latest stable release. (Only one breaking change, IIRC, and one which shouldn't affect users of release GHCs). |
I can't stand having to recompile
haskell-ci
, and likely various dependencies thereof, just to bump GHC versions in the generated files. Couldn't this be handled in some more graceful way?The text was updated successfully, but these errors were encountered: