-
Notifications
You must be signed in to change notification settings - Fork 696
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
copy command fails when building only some components #2780
Comments
+1 |
Recently ran into this one... +1 |
Signed-off-by: Edward Z. Yang <[email protected]>
Signed-off-by: Edward Z. Yang <[email protected]>
Signed-off-by: Edward Z. Yang <[email protected]>
Signed-off-by: Edward Z. Yang <[email protected]>
Signed-off-by: Edward Z. Yang <[email protected]>
Signed-off-by: Edward Z. Yang <[email protected]>
Signed-off-by: Edward Z. Yang <[email protected]>
Signed-off-by: Edward Z. Yang <[email protected]>
Signed-off-by: Edward Z. Yang <[email protected]>
Signed-off-by: Edward Z. Yang <[email protected]>
Signed-off-by: Edward Z. Yang <[email protected]>
Signed-off-by: Edward Z. Yang <[email protected]>
Signed-off-by: Edward Z. Yang <[email protected]>
Signed-off-by: Edward Z. Yang <[email protected]>
Signed-off-by: Edward Z. Yang <[email protected]>
@ezyang Ahh, I didn't realize that
True, I meant the build step. Yeah, explicit is probably better for the Cabal layer.
Would you be inclined to merge if I implemented a new fix atop 1.24? The alternative is going to be to move more and more Cabal functionality into stack / Setup.hs hacks. |
Surely it can't be that hard to backport. The main thing is I refactored Install to operate on a per-CLBI basis prior to this patch; you'd have to also bring in those changes as well. |
Looking at #3022 (which is the version that got merged), I see that the patch in question (f88f502 ) is number 25 in a series that includes 2040c1c among other things. This makes me somewhat uncomfortable with the amount of changes required in the supposedly stable branch.
Sure, if you or @ezyang are willing to do the actual work, I'll reconsider. |
So people are asking for a new 1.24 release, should I wait for your patch or remilestone this ticket for Cabal 1.24.0.2? |
Feel free to make the release. I'll take a look and may have a patch ready soon |
@mgsloan Thanks! |
@mgsloan GHC 8.0.2 is coming soon, so this is your last chance to get a 1.24 patch in! |
The problem still exists with Cabal 2.0:
I understand that Cabal 2.0 has introduced per-component configuration, which is intended as a workaround. I've discussed with @ezyang, and the ultimate plan is to add support for this to Stack (which will be necessary for Backpack anyway). In the meanwhile, we have a workaround in Stack that forces the executable component to be built the first time. So my take: I still consider this a bug that is unfixed in Cabal 2.0, but we're effectively working around it in Stack. |
@snoyberg Thanks! |
Sorry I missed the conversation here. Let me clarify a few points:
|
Actions:
cabal clean
cabal configure
cabal build lib:packagename
cabal copy
Expected: command succeeds, copying over the library only, and not the test suite
Actual: errors out since the executable does not exist, e.g.:
This problem could be mitigated by allowing
copy
to take a list of components likebuild
does.The text was updated successfully, but these errors were encountered: