-
Notifications
You must be signed in to change notification settings - Fork 847
Description
Background:
I have a stack.yaml with many packages. Many times I'll
$ stack test --pedantic foo-package
because I'm not interested in running all of the test suites.
What stack does:
Builds every dependency of the foo-package as if --pedantic wasn't given, then builds foo-package with --pedantic.
What I expect:
Builds dependencies using --pedantic if, and only if, they are specified as a package on stack.yaml. Always builds packages given as argument with --pedantic.
Why this is an issue:
While working on foo-package I'm only interested in running its test suite because that's where I'm writing new tests. However, I may have to change something on one of the other packages. Any small issue that gives an warning will break the CI while still working on my machine.
Furthermore, if you switch between stack test --pedantic and stack test --pedantic foo-package, you'll notice that stack needs to recompile dependencies because their flags changed.