-
Notifications
You must be signed in to change notification settings - Fork 841
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
stack "errors" when building package with benchmark that depends on itself #2153
Comments
Oh, hmm, I think this is because cabal does not support cyclic benchmarks (though I think in theory it does on cabal master / perhaps the recent release). We just need to implement benchmark running rather than delegating to cabal. |
As unpleasant as this is, setting the priority at P2 because there's a direct work-around: |
That doesn't seem to work because |
Yeah, I think it should be possible for us to do our own benchmark running rather than delegating to |
Finally figured this out! When there's a benchmark / test with cyclic deps, it wasn't waiting for the build to complete before attempting to run. |
Originally discovered here. Steps to reproduce:
stack
seems to be confused aboutvector-binary-instances
's benchmarks, for the reason that (I assume) its benchmarks transitively depends onvector-binary-instances
itself. It still appears to build correctly, but it exits with an error code and doesn't actually run the benchmarks.The text was updated successfully, but these errors were encountered: