Skip to content

Changing a file imported by cabal.project does not trigger recompilation #10255

@mpickering

Description

@mpickering

It seems that changes to imported cabal.project fragments do not trigger rebuilds correctly.

Reproducer: https://github.com/mpickering/solid-eureka

In this project there are two packages, a and b, if you add package b to the pkgs.project fragment then it is not picked up until you add a blank line to the cabal.project.

  • cabal build exe:b -- Observe failure
  • Modify pkgs.project to add b
  • cabal build exe:b -- Observe failure
  • Modify cabal.project by adding a newline
  • cabal build exe:b -- Observe success

This affects cabal development due to the many uses of imports.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions