haskell / haskell/cabal

Unable to generate logs at the specified location.

Open
#6,811 5 comments 0 reactions 1 assignee Claimed by @gbaz View on GitHub
cabal-install: cmd/build re: v1-vs-v2
Dominant language
Haskell
Stars
1.7k
Forks
750
Avg merge
4d 3h
Merged PRs (30d)
28

Description

**Describe the bug**
I am currently working on updating Hackage builder to cabal v2 as a part of GSoC Project.
The objective was to build the package, run tests, create Haddock doc and run code-coverage.
I need the report of each of these tasks in the specified files. I tried setting the flags to make cabal write test log, build-summary, logs and docs at the specified location but it doesn't seem to work.

**To Reproduce**
In the root directory of a package (async in this case), I ran the following code.

```
$ cabal v2-build \
--enable-tests \
--run-tests \
--test-log="/home/USER/haskell/test.log" \
--haddock-for-hackage \
--enable-doc \
--docdir="/home/USER/haskell/" \
--enable-coverage \
--build-summary="/home/USER/haskell/r.report" \
--build-log="/home/USER/haskell/r.log" \
--remote-build-reporting=detailed \
--report-planning-failure
```

**Expected behavior**
Specified files must have a log or report content.

**System information**
- Ubuntu 20.0.4
- ghc version: 8.8.3
- cabal version: 3.2.0.0

**Additional context**
How can we set coverage report, doc tarball location?

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.