Skip to content

Regression on master: main-is not picked up from conditional #9742

Closed

Description

@andreasabel

On today's master ( 9025af5 ).
Example:

executable twee
  if flag(parallel)
    main-is: ParallelMain.hs
    build-depends: async, unix
    c-sources: executable/link.c
  else
    main-is: Main.hs

(Source: https://github.com/nick8325/twee/blob/eb4b83b4df6dd16fbff091b3fd90b5a55c88d41a/twee.cabal#L46-L52)
cabal build errors:

Configuring executable 'twee' for twee-2.4.2...
Error: [Cabal-5559]
[no-main-is] No 'main-is' field found for executable twee

This works fine on 3.10.2.1, so must be a regression on master.
Related:

Activity

  1. added
    regression on master
    re: main
    on Feb 25, 2024
  2. ffaf1 commented on Feb 26, 2024

    @ffaf1
    Collaborator

    Mhhh I suspect a misconfigured CondTree pattern match in Check.

    I am on it.

  3. self-assigned this
    on Feb 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

cabal-install: cmd/buildre: mainregression on master

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions