commercialhaskell / commercialhaskell/stack
Stack init fails if subdirectories contain an invalid cabal file
Open
component: init / new
type: enhancement
- Dominant language
- Haskell
- Stars
- 4.1k
- Forks
- 850
- Avg merge
- 10h 37m
- Merged PRs (30d)
- 4
Description
I'm using Stack 1.1.0 on mac. When I clone [ghc-mod](https://github.com/DanielG/ghc-mod) and run `stack init` it fails because the `test/data/broken-cabal/broken.cabal` file is invalid. However when I run `stack init --ignore-subdirs` then it succeeds.
I would prefer stack init to succeed if the cabal file in the root project directory is valid.
Contributor guide
Assessment
This issue has not been assessed yet.