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 --- cabal-helper.cabal | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'cabal-helper.cabal') diff --git a/cabal-helper.cabal b/cabal-helper.cabal index 3c24b86..6a035c4 100644 --- a/cabal-helper.cabal +++ b/cabal-helper.cabal @@ -49,6 +49,11 @@ extra-source-files: README.md tests/bkpregex/regex-types/Regex/*.hs tests/bkpregex/str-impls/Str/*.hs + tests/src-repo/*.hs + tests/src-repo/*.cabal + tests/src-repo/packages.list + tests/src-repo/cabal.project + tests/multipkg/packages.list tests/multipkg/pkg-oot/*.cabal tests/multipkg/pkg-oot/*.hs -- cgit v1.2.3