Skip to content
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

Don't treat local extra-dep packages as targets #2596

Merged
merged 2 commits into from
Sep 19, 2016

Conversation

snoyberg
Copy link
Contributor

The immediate problem I noticed was that, when running stack build
with two local packages, one an extra-dep, the build output was not sent
to the console. This fixes the problem, but I believe there's still an
issue with the test suite being spuriously run. Still investigating
that.

The immediate problem I noticed was that, when running `stack build`
with two local packages, one an extra-dep, the build output was not sent
to the console. This fixes the problem, but I believe there's still an
issue with the test suite being spuriously run. Still investigating
that.
This logic works, but arguably is not being handled very elegantly. I
see two alternatives:

* Do a more serious refactoring to unify Hackage extra-deps and local
  extra-dep values
* In the `case mtarget`, add `_ | lpvExtraDep lpv -> mempty`. I tried
  this at first, but I believe the behavior was slightly confusing,
  since running `stack build :test-suite-name` for a local extra-dep
  didn't run the test. However, that may in fact be the desired
  behavior.

This and the previous commit appear to fix #2545
@chreekat
Copy link
Member

Anecdotally (just tested with Snowdrift), this fixes #1295.

@snoyberg snoyberg merged commit 4a58aa0 into master Sep 19, 2016
@snoyberg snoyberg deleted the ignore-local-extra-deps-for-console-output branch September 19, 2016 11:30
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

Successfully merging this pull request may close these issues.

2 participants