-
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
stack build copies unnecessary executables when asked to build just a single executable #3486
Comments
This is a symptom of #1406 , which at its root is a cabal issue. It seemed like this was going to get fixed in cabal, there was even a PR, but it got left out of releases for some reason. Worth revisiting. For now, you'll have to live with it. One option is to add cabal flags to set |
Can someone please summarise the issue and post a ticket to the Cabal bug tracker (or post a comment in an existing thread, if there's already a ticket)? |
@23Skidoo Sorry for the delay on following up on this. I've opened #3653 to track looking into whether this is resolved in Cabal-2.0, and changing how things work if it does. If not, an issue will be opened to track it. EDIT: I realized there was already an issue, and indeed it is not fixed in Cabal-2.0 haskell/cabal#2780 |
Based on ezyang's comment in haskell/cabal#2780 (comment) , it should be feasible to move forward on this at least when Cabal >= 2.0 |
I am closing this issue as fixed in #6451 |
General summary/comments (optional)
Steps to reproduce
foo
, and the executables areexe1
,exe2
,exe3
.stack build foo:exe3
Expected
Stack should build the
exe3
target (and any dirty dependencies) and then only copy theexe3
binary from the.stack-work/dist/.../build/
directory to.stack-work/install/.../bin/
.Actual
Stack copies all executables in the package, even the ones with no changes and which it was not asked to copy, which is slow if there are a lot of them.
Stack version
Method of installation
Via
stack upgrade
.The text was updated successfully, but these errors were encountered: