-
Notifications
You must be signed in to change notification settings - Fork 842
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
project with test-only package fails both build and test #2862
Comments
This just happened to me as well. Got the |
I've pushed a fix! It now skips the |
Bug fix confirmed with stack 1.4 ! |
Just noticed the problem reappeared in stack 1.4.0
|
This happens for me too.
|
Can this issue be reopened? |
@PierreVDL @Topsii I've pushed a fix to master. The solution is to only mark the package as a target if some of its components are targets. |
I would like to move my organization to stack.
In my first experiments, I noticed a behaviour that is according to me a bug.
Our projects have tests localized in separate packages:
among other to prevent test dependencies end up as development dependencies.
One can argue whether or not this is a good pattern,
but I can't change it just to get stack accepted.
On Microsoft Windows [Version 6.1.7601]
with stack [Version 1.3.0, Git revision 99b910d x86_64 hpack-0.15.0]
my multi-package project with a test-only package fails to build and to execute the test suite.
Steps to reproduce
The following multi-package project
Multiple.zip
yields for
stack build
This behaviour surprises me, since
And for 'stack test'
I agree that test-0.1.0.0 contains no executables and no library: yet a test-suite is present that should be executed!
Note: by out commenting line 41 '- test' of stack.yaml 'stack build' and 'stack test' works perfectly.
Method of installation
The text was updated successfully, but these errors were encountered: