haskell / haskell/hackage-server

Replicating coverage report on user side

Open
#1,278 2 comments 1 reaction 0 assignees View on GitHub
Dominant language
Haskell
Stars
467
Forks
225
PR merge metrics
No merged PRs in 30d

Description

I'm trying to replicate the coverage report we are getting on this package: https://hackage.haskell.org/package/copilot-core

When I run what I believe are the same instructions locally, I'm met with:

```
# cabal v2-test --enable-coverage --test-log=testFile --test-show-details=never --disable-optimization
Resolving dependencies...
Error:
Internal libraries only supported with per-component builds.
Per-component builds were disabled because program coverage is enabled
In the package 'attoparsec-0.14.4'
```

I reported this on cabal's repo a while back (https://github.com/haskell/cabal/issues/6440#issuecomment-1120314764) and a fix was pushed 2 weeks ago; however, hackage is somehow still obtaining some coverage metrics, so there's gotta be a way to get that same coverage result without needed a new version of cabal.

I tried reviewing the build and test logs but they do not include the commands being executed (it'd be nice if they did).

What commands is hackage running on our package to produce that coverage result?

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.