-
Notifications
You must be signed in to change notification settings - Fork 240
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
Profiling settings don't seem to be passed on from build config #887
Comments
Quoth Hamish:
|
Is there a workaround? |
for those who follow me here: haskell.nix/test/cabal-simple-prof/default.nix Lines 7 to 16 in aac430c
|
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
Still annoying |
@andreabedini now we're processing the plan ourselves is this something we could fix? |
I had a first look at this. AFAIU we don't try to pass the content of cabal.project to the builder, we mostly rely on the information that cabal writes in Whether we want profiling or not does not get written in plan.json so it never reaches our builder. This is the current state. Now, whether or not to turn profiling on is part of I'd be keen but I think there's quite a bit of refactoring we need to do before we get there. MakeInstallPlan was added separately from Plan2Nix because I didn't quite get around to figure how the schema of the nix plan, so rather than risk breaking it I made MakeInstallPlan write out plan.json as usual so that Plan2Nix could keep doing its job. I'd like to first merge these two steps, then we are fully in control of how we make the plan end to end. Then adding stuff like this is trivial. ping @angerman @hamishmack |
Right, that makes sense. I thought it might now be trivial but alas not. I guess we could consider writing out another file that contains the missing info from |
... or solve the technical debt and make all these problems go away :) |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
Still very relevant |
Setting
in
cabal.project
doesn't seem to get propagated to the Nix setup, it still builds non-profiled libraries.Similarly, setting
in
stack.yaml
has no effect.(Yes, I made sure my
haskell.nix
build was using each of those files as the source of truth when I tried it!)The text was updated successfully, but these errors were encountered: