-
Notifications
You must be signed in to change notification settings - Fork 724
Cache the solver's pkg-config calls
#9360
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
base: master
Are you sure you want to change the base?
Conversation
83274a8 to
f07cb58
Compare
|
I would advise you not modify the
In that call-site we are already in the This leaves the Setup.hs and v1- paths untouched, but that should be fine, imho. |
|
@georgefst, I appreciate you took the initiative on this. Note that we already have the infrastructure to cache results and refresh them based on input keys and/or file changes (see Have you tried the approach I suggest in #8930 (comment)? Leaving along cabal v1 commands and cabal-install-solver (as @gbaz suggests); readPkgConfigDb is called only in The path
Maybe I am mistaken and this approach has some flaws I don't see? Note: I am actually quite unsure about how Note 2: I think this will look for changes in pkg-config database (i.e. the files monitored by Note 3: what happens if the monitor file gets shared between different cabal versions? |
|
Thanks @gbaz and @andreabedini! I'll try to rewrite this with your suggestions in mind. I do think that even if we make no other changes to (I've edited this and the comment below after making a major mistake of confusing the |
|
Actually it's unclear to me how we can really avoid modifying |
|
@georgefst Just checking, are you still interested in finishing this? As far as I can tell #9422 achieves the same goal. |
A proof-of-concept fix for #8930. I will ultimately need some assistance from an existing maintainer in order to get this over the line, but it's maybe too early even for that.
Note that this totally overwrites the first commit of #9134. As discussed several times in that thread, the batch call seems more trouble than it's worth. Since this PR caches on a per-package basis there really seems no reason to keep it.
EDIT: There's been a lot more discussion on #8930 about whether this is even the right approach. I won't be working on this further until there's more of a consensus.