Skip to content

Missing extra-deps not always detected #292

Closed
@mboes

Description

@mboes

Consider:

stack.yaml:

packages:
- .
resolver: nightly-2015-06-12
extra-deps:
- rematch-0.2.0.0

b.cabal:

name:                b
version:             0.1.0.0
build-type:          Simple
cabal-version:       >=1.10

library
  build-depends:       base, rematch >= 0.2
  default-language:    Haskell2010

The compilation succeeds, as it should. However, try removing the extra-deps: field entirely. The compilation will still succeed after the first one succeeded. That's the bug: it should not succeed in that case. Because if building from a fresh state it will not succeed.

IOW, this is a case of the outcome of stack build depending on hidden internal stack state, when the outcome should depend exclusively on the content of stack.yaml and the source files.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions