Skip to content

`stack build package' resets flags of other local packages #743

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

Closed
bergmark opened this issue Aug 10, 2015 · 2 comments
Closed

`stack build package' resets flags of other local packages #743

bergmark opened this issue Aug 10, 2015 · 2 comments
Milestone

Comments

@bergmark
Copy link
Member

I commonly have this workflow

  1. git pull
  2. stack build --ghc-options=-Werror
  3. make changes
  4. stack build --ghc-options=-Werror changed-package
  5. Repeat 3 and 4 until happy.

Currently 4 rebuilds local dependencies of changed-package without any flags.

I see two other options which would be preferable to me:

  • Use -Werror for everything that needs to be built
  • Don't care what flags the other packages were built with

Is there a good reason for the current behavior?

@snoyberg snoyberg added this to the Support milestone Aug 10, 2015
@bergmark
Copy link
Member Author

It is, thank you.

My problem currently is that I do 4. by accident not realizing I'll have to rebuild everything (which takes quite some time for us), in my mind stack build points to all packages and their (local) dependencies and stack build foo should point to foo and all its (local) dependencies.

But since this has been discussed already perhaps there's little point re-iterating the discussing, closing.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants