Skip to content

new-install fails on packages with tests/benchmarks unless --disable-tests/benchmarks is used #4855

Closed

Description

@fgaz

For example, cabal new-install pandoc fails this assertion:

-- either a package is built inplace, or we are not attempting to
-- build any test suites or benchmarks (we never build these
-- for remote packages!)
. assert (elabBuildStyle == BuildInplaceOnly ||
Set.null elabStanzasAvailable)

This is easily fixed by setting the tests and benchmarks as disabled in every ElaboratedConfiguredPackage (or at an earlier stage) in CmdInstall.hs.

Activity

  1. added
    cabal-install: v2-build system
    on Oct 31, 2017
  2. self-assigned this
    on Oct 31, 2017
  3. added this to the 2.2 milestone on Nov 5, 2017
  4. added a commit that references this issue on Nov 9, 2017
    b51e260
  5. added a commit that references this issue on Nov 9, 2017
    805d886
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

cabal-install: v2-build systemtype: bug

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions