-
Notifications
You must be signed in to change notification settings - Fork 701
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
Meta-issue: Remove need for fake-package #6977
Comments
Where is this fake-package used?
|
@fendor, |
#6885 is another (upcoming) example, where planning without relying (selectively!) on "real world" / "filesystem" inputs is desired. |
We could modify the Pair that with allowing an empty, implicit project and we might be golden. |
@alexbiehl yes, that what I have tried. Yet |
Yes. Though a less invasive change might be to pass down the configuration/interpreter to the runRebuild calls. They are not too many. Maybe it even makes sense to tie the runRebuild to DistDirLayout; we are passing that around everywhere and usually the call looks like |
... except the very first I also don't understand why we work with relative paths at all. That's another yak to shave. #6667 might help. EDIT: I emphasize, this shouldn't be fixed in a "smallest possible diff" way, but in the "cleanest end result" way. |
This is very interesting. I never liked the whole I had a few thinks about how this could be done, actually. Let me try to find my old notes! |
#6999 is a specific bug caused by fake-package |
It seems the slowness caused by writing to the filesystem makes |
This change won't make |
Noted. Is there a ticket for the caching? |
Not that I know of |
I think that A couple of months ago I tried to understand how the |
Noted. There go my hopes. :) |
|
I think caching of fake-pkg and etc resulting from |
@gbaz well, yes, but I think it would be a good time to remove the fake-package as the script feature would also benefit from that. Additionally, if |
I've been investigating this and there seem to be two separate issues.
If I missed anything please let me know. |
The internals of
cabal-install
should allow project planning without writing things to file system.This is high-level goal, and I don't think that it could be solved with single PR. But internal changes moving us closer to it will improve state of the codebase, which is very welcome!
The text was updated successfully, but these errors were encountered: