Skip to content

add-bound reports failure if build-depends are all conditional #47

@andreasabel

Description

@andreasabel

hackage-cli add-bound cannot deal with the following structure, taken from https://hackage.haskell.org/package/regex-compat-tdfa-0.95.1.4/revision/0.cabal :

library
  if flag(newBase)
      Build-Depends:      base >= 4 && < 5, regex-base >= 0.93, regex-tdfa >= 1.1.0, array
  else
    if flag(splitBase)
      Build-Depends:      base >= 3.0, regex-base >= 0.93, regex-tdfa >= 1.1.0, array
    else
      Build-Depends:      base < 3.0,  regex-base >= 0.93, regex-tdfa >= 1.1.0

It reports for hackage-cli add-bound base '<4.15':

Edit failed, version ranges don't match:  <0 && <4.15 =/= <4.15

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugre: add-boundConcerning the `add-bound` feature

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions