Closed jkachmar closed 4 years ago
Hmm, I have no experience with cabal new-build
, so I'd probably need someone more familiar with that to let me know what I'm doing that works for stack
but not cabal
.
As for stackage, is this another case like https://github.com/commercialhaskell/stackage/issues/4667? That turned out to be an internal issue with Stackage itself.
Everything is working for me locally and on CI (with normal stack build
commands).
Looks like bugsnag's doctest suite is failing in two ways:
First, locally, with
cabal new-build
:Local Test Error
``` src/Network/Bugsnag/Notifier.hs:18:1: error: Could not load module ‘Paths_bugsnag_haskell’ it is a hidden module in the package ‘bugsnag-haskell-0.0.3.0’ Use -v to see a list of the files searched for. | 18 | import qualified Paths_bugsnag_haskell as Pkg | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ Test suite doctest: FAIL Test suite logged to: /Users/jkachmar/src/cabal/bugsnag-haskell/dist-newstyle/build/x86_64-osx/ghc-8.6.5/bugsnag-haskell-0.0.3.0/t/doctest/test/bugsnag-haskell-0.0.3.0-doctest.log 0 of 1 test suites (0 of 1 test cases) passed. Completed QuickCheck-2.13.2 (lib) Installing haskell-src-exts-1.21.0 (lib) Completed haskell-src-exts-1.21.0 (lib) cabal: Tests failed for test:doctest from bugsnag-haskell-0.0.3.0. ```
...and remotely, on the Stackage build server, it fails with a lot of errors that look like the following:
Stackage Build Server Test Error
``` Log files have been written to: /var/stackage/work/unpack-dir/.stack-work/logs/ Test suite failure for package bugsnag-haskell-0.0.3.0 doctest: exited with: ExitFailure 1 Full log available at /var/stackage/work/unpack-dir/.stack-work/logs/bugsnag-haskell-0.0.3.0-test.log Loaded package environment from /tmp/stack14/test-ghc-env Loaded package environment from /tmp/stack14/test-ghc-env Loaded package environment from /tmp/stack14/test-ghc-env Loaded package environment from /tmp/stack14/test-ghc-env Loaded package environment from /tmp/stack14/test-ghc-env src/Data/Aeson/Ext.hs:12:1: error: Could not load module ‘Data.CaseInsensitive’ It is a member of the hidden package ‘case-insensitive-1.2.0.11’. You can run ‘:set -package case-insensitive’ to expose it. (Note: this unloads all the modules in the current scope.) Use -v to see a list of the files searched for. src/Data/Aeson/Ext.hs:13:1: error: Could not load module ‘Data.CaseInsensitive’ It is a member of the hidden package ‘case-insensitive-1.2.0.11’. You can run ‘:set -package case-insensitive’ to expose it. (Note: this unloads all the modules in the current scope.) Use -v to see a list of the files searched for. src/Network/Bugsnag/Settings.hs:94: failure in expression `settings <- newBugsnagSettings ""' expected: but got::25:13: error:
Variable not in scope: newBugsnagSettings :: [Char] -> IO a0
src/Network/Bugsnag/Settings.hs:126: failure in expression `settings <- newBugsnagSettings "API_KEY"'
expected:
but got:
:33:13: error:
Variable not in scope: newBugsnagSettings :: [Char] -> IO a0
```