-
Notifications
You must be signed in to change notification settings - Fork 843
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 rebuilds sublibraries that are not dependencies of the specified target #6569
Comments
@kostmo, thanks for reporting and for taking the time to create a minimal example. What you are experiencing is an example of an long-standing issue/feature request known as 'component-based builds'. The most recent open issue pulling that together is: but there is a long history before that. In short, Stack currently approaches building in terms of 'packages (with components)' rather than 'components (of packages)'. I am going to close this issue - not because it is unimportant but because I am seeking to consolidate matters related to component-based builds under a single 'master' issue. |
Minimal testcase is here: https://github.com/kostmo/stack-sublibrary-rebuild
I am using
stack
version2.15.5
.To reproduce the bug
src2/Lib2.hs
and savelib2
sublibrary is not a dependency ofbug-repro-exe
.Equivalent cabal test
src2/Lib2.hs
and save"Up to date"
is printed.Potentially related issues
stack build
to target sub-libraries #6042The text was updated successfully, but these errors were encountered: