commercialhaskell / commercialhaskell/stack

Stack init fails if subdirectories contain an invalid cabal file

Open
#2,410 4 comments 0 reactions 0 assignees View on GitHub
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

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.