-
Notifications
You must be signed in to change notification settings - Fork 848
stack ghci
with a test component does not build test dependencies
#4031
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
Comments
Is reproduce correct?
|
Good catch @ncaq I've fixed the reproduction steps. |
I haven't tried your repro to verify, but this is likely a duplicate of
#2790
Would definitely be a nice thing to fix! The workaround for now is `stack
ghci stack-ghci-repro:lib stack-ghci-repro:stack-ghci-repro-test`. This
does mean that the library code also gets loaded into ghci, though, and may
not work if the library stanza and test stanza have conflicting options.
…On Tue, May 22, 2018 at 11:04 AM, Matt Parsons ***@***.***> wrote:
Good catch @ncaq <https://github.com/ncaq> I've fixed the reproduction
steps.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#4031 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AABYKrpR7z3Zy_XlH5sWLv9ipfTKGAjMks5t1FNGgaJpZM4UFaKe>
.
|
It's not exactly a duplicate -- in that case, it seems like the problem is the missing library dependency. But in this case, it's an entry in the |
Ah, interesting! Yes, I think this is a related issue, not a duplicate. |
I am closing this issue given the passage of time and because I could not reproduce it with Stack 2.15.5. A simple one-package project
|
General summary/comments (optional)
stack ghci
doesn't load dependencies from the test-suite if you select a test-suite target and the test-suite has not been built yet.This may also require the package having not been built at all in the global package cache yet.
More observations:
If you do a
stack ghci
in the reproduction repo before doing astack build
, it loads the library component fine. But if you do astack ghci stack-ghci-repro:test:stack-ghci-repro-test
, it fails to load the library as a dependency.Steps to reproduce
Expected
I expected it to notice that it was in a
test-suite
, ensure that it has loaded and downloaded all of the test suite dependencies, and launched a GHCi shell correctly.Actual
Stack version
Method of installation
The text was updated successfully, but these errors were encountered: