diff options
author | sternenseemann <sternenseemann@systemli.org> | 2022-09-22 14:38:05 +0200 |
---|---|---|
committer | sternenseemann <sternenseemann@systemli.org> | 2022-09-22 15:35:07 +0200 |
commit | e4b29132f6113e0c75f0346fe171635d5aeaa044 (patch) | |
tree | 9aebf83a75fadcdbd697a11c0aa4d040795804a9 | |
parent | c3c4d341aec2dcab631e6265ba82997ca307d655 (diff) |
chore: work around cabal-install 3.8.1.0 picking the wrong Main.hs
See https://github.com/haskell/cabal/issues/8458 for details. Basically, cabal-install 3.8.1.0 sorts source-dirs and then picks the first matching module from that list whereas it'd respect the order in the source file before. This caused it to pick up server/Main.hs over test/Main.hs when building the test suite, failing the build.
-rw-r--r-- | spacecookie.cabal | 2 | ||||
-rw-r--r-- | test/EntryPoint.hs (renamed from test/Main.hs) | 0 |
2 files changed, 1 insertions, 1 deletions
diff --git a/spacecookie.cabal b/spacecookie.cabal index e6379d0..05e4b5f 100644 --- a/spacecookie.cabal +++ b/spacecookie.cabal @@ -79,7 +79,7 @@ library test-suite test import: common-settings type: exitcode-stdio-1.0 - main-is: Main.hs + main-is: EntryPoint.hs hs-source-dirs: test, server other-modules: Test.FileTypeDetection , Test.Gophermap diff --git a/test/Main.hs b/test/EntryPoint.hs index 68931cd..68931cd 100644 --- a/test/Main.hs +++ b/test/EntryPoint.hs |