[Hackage] #374: Hs-Source-Dirs in nested If must be respected by 'sdist'

#374: Hs-Source-Dirs in nested If must be respected by 'sdist' ----------------------------+----------------------------------------------- Reporter: guest | Owner: Type: defect | Status: new Priority: normal | Milestone: Component: Cabal library | Version: 1.4.0.1 Severity: normal | Keywords: Difficulty: normal | Ghcversion: 6.8.2 Platform: | ----------------------------+----------------------------------------------- I have the following part in a Cabal file: {{{ If flag(executePipe) Hs-Source-Dirs: execute/pipe Else If flag(executeShell) Hs-Source-Dirs: execute/shell Else Hs-Source-Dirs: execute/tmp }}} However, when I run './Setup.lhs sdist' I get only the files from execute/pipe into the archive, but not execute/shell and execute/tmp. -- Ticket URL: http://hackage.haskell.org/trac/hackage/ticket/374 Hackage http://haskell.org/cabal/ Hackage: Cabal and related projects

#374: Hs-Source-Dirs in nested If must be respected by 'sdist' ----------------------------+----------------------------------------------- Reporter: guest | Owner: Type: defect | Status: new Priority: normal | Milestone: Component: Cabal library | Version: 1.4.0.1 Severity: normal | Resolution: Keywords: | Difficulty: normal Ghcversion: 6.8.2 | Platform: ----------------------------+----------------------------------------------- Comment (by guest): It does not have to do with the nesting. When I rewrite the Ifs in flat mutually exclusive Ifs, the problem remains. I have another {{{Hs-Source- Dirs: src}}} line above in the Cabal file. -- Ticket URL: http://hackage.haskell.org/trac/hackage/ticket/374#comment:1 Hackage http://haskell.org/cabal/ Hackage: Cabal and related projects

#374: Hs-Source-Dirs in nested If must be respected by 'sdist' ----------------------------+----------------------------------------------- Reporter: guest | Owner: Type: defect | Status: new Priority: normal | Milestone: Cabal-1.8 Component: Cabal library | Version: 1.4.0.1 Severity: normal | Resolution: Keywords: | Difficulty: normal Ghcversion: 6.8.2 | Platform: ----------------------------+----------------------------------------------- Changes (by duncan): * milestone: => Cabal-1.8 Comment: Yes, it's using the package description in a specific configuration, not for all possible configurations. Unfortunately cannot be fixed in the Cabal 1.6 series as it changes the API of the `UserHooks`. It could be fixed in 1.8 with a change to the hooks api. -- Ticket URL: http://hackage.haskell.org/trac/hackage/ticket/374#comment:2 Hackage http://haskell.org/cabal/ Hackage: Cabal and related projects
participants (1)
-
Hackage