-
Notifications
You must be signed in to change notification settings - Fork 5
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Add a missing dependency on hspec-discover #1
Conversation
@kirelagin could you share why do you need to have an explicit dependency here? The only build tool that requires it (but probably shouldn't?) that I know has an issue about this problem input-output-hk/nix-tools#38 |
Personally I need this for my nix-based builds as well. But, regardless of my specific case, specifying dependencies properly is the right thing to do. I am not quite sure what the state of underspecified dependencies currently with Cabal2 is, but my understanding is that a package with a missing build-tool dependency on |
@kirelagin I'm not saying that you shouldn't be explicit about dependencies but that doesn't look like the way current Haskell tooling works: the current |
Ok, that’s good to know! I have to admit that I am not very familiar with the way Cabal handles this case of underspecified dependencies. I suspect it adds binaries of all transitive dependencies to PATH, however I couldn’t find this behaviour documented anywhere, but I did find discussions where people seem to agree that this practice is very bad. There is a workaround in cabal2nix that adds |
Not to be overly persistent or sound preachy (although, I still do not understand if you are against merging this PR or not), but are you sure about it working with Cabal2? I tried it and what I see on my own machine seems to be consistent with what is suggested in the comment I linked above:
|
Also I would like to point out that (unfortunately) generic Haskell builder does not use |
+1 for @kirelagin |
@kirelagin I guess what I saw is just |
Thank you guys for the discussion and @kirelagin thank you for the PR. |
No description provided.