From 262231a8f28feb711a8b164c62d9b89bcc11df47 Mon Sep 17 00:00:00 2001 From: Daniel Gröber Date: Wed, 25 Mar 2020 18:40:15 +0100 Subject: Fix cabal projects using source-repository-package Apparently we can get source-repo-packages in plan.json even when filtering for `"style": "local"`(`UnitTypeLocal`). It's possible the root cause here is a cabal bug as source-repository-package should really be treated more like a tarball than a local package. Regardless we simply filter units by actually checking for `uPkgSrc=Just LocalUnpackedPackage` instead of relying on "style". This fixes #99 --- tests/src-repo/src-repo.cabal | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 tests/src-repo/src-repo.cabal (limited to 'tests/src-repo/src-repo.cabal') diff --git a/tests/src-repo/src-repo.cabal b/tests/src-repo/src-repo.cabal new file mode 100644 index 0000000..086a696 --- /dev/null +++ b/tests/src-repo/src-repo.cabal @@ -0,0 +1,19 @@ +name: src-repo +version: 0 +build-type: Simple +cabal-version: >=1.10 + +executable src-repo + main-is: Exe.hs + build-depends: base, exelib + default-language: Haskell2010 + +test-suite exe-test + type: exitcode-stdio-1.0 + main-is: Exe.hs + build-depends: base, exelib + +benchmark exe-bench + type: exitcode-stdio-1.0 + main-is: Exe.hs + build-depends: base, exelib -- cgit v1.2.3