Skip to content

Unable to generate logs at the specified location. #6811

@awasthishubh

Description

@awasthishubh

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?

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions