-
Notifications
You must be signed in to change notification settings - Fork 841
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
Cache the profiling versions of dependent libraries. #2957
Comments
The profiling libraries for snapshot packages are supposed to be cached. If they're not, that's a bug, in which case please re-open this issue. For local extra-deps, there is an initiative called "implicit snapshots" that will fix this (among other issues): #1265. Unfortunately it's been stalled for quite a while now. In the mean time, custom snapshots are a cumbersome way to achieve the same thing. |
To make sure I understand you correctly, if my project requires specific dependencies listed in the If so, it might be more time effective for me to contribute towards the "implicit snapshots" issue rather than waiting around for our application to build with profiling enabled. |
Your understanding is, indeed, correct. Using a custom snapshot may help you out in the mean time, though (because that way you won't need extra-deps anymore). |
Unfortunately, I have not been able to divert time away from work to rectify this as I hoped I might be able to two years ago. However, it appears that there has been no movement by anyone on this after two years. Additionally, this seems like pretty basic functionality for a build system. Where is this on the priority queue? |
@recursion-ninja here's a related, still open issue, that includes a work around: #4032 It should also be pretty easy to implement a solution based on that work around (i.e. always have two stack work dirs, one for profiling builds and one for non-profiling builds). |
I didn't have a chance to try it out yet but theoretically new Pantry version of Stack in the current |
It would be great if we could locally cache the profiling libraries of all the dependencies, because switching between profiling and non-profiling versions of my application is currently taking an hour and a half to perform the re-download, build, configure, copy/register process for all the dependent libraries.
I feel like after I've built once without profiling and once with profiling,
stack
shouldn't have to perform the onerous dependency re-download, build, configure, copy/register process when switching between a profiling and non-profiling build.The text was updated successfully, but these errors were encountered: