Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Testsuite (doctest) needs --write-ghc-environment-files=always #9

Open
andreasabel opened this issue Apr 9, 2023 · 4 comments
Open

Comments

@andreasabel
Copy link
Contributor

Tests are failing on hackage: https://hackage.haskell.org/package/type-errors-0.2.0.2/reports/1
I can reproduce this locally because I have cabal configuration setting write-ghc-environment-files: never.

Test suite test: RUNNING...

src/Type/Errors.hs:8:8: error:
    Could not load module ‘Prelude’
    It is a member of the hidden package ‘base-4.16.4.0’.
...
<interactive>:2:71: error:
    Not in scope: type constructor or class ‘Data.String.String’
    No module named ‘Data.String’ is imported.
(seems to hang here)

Tests pass after cabal build --write-ghc-environment-files=always.
Not sure what can be done about it.
One can disable the hackage tests at: https://hackage.haskell.org/package/type-errors-0.2.0.2/reports/testsEnabled/
However, it would be better if one could pass the configuration needed to run the test.

@isovector
Copy link
Owner

Thanks for the report! Is this new functionality on hackage? I just pushed a new version but it was a tiny dependency bump and I wouldn't expect any breakage.

@isovector
Copy link
Owner

I've disabled the tests on hackage for now.

@andreasabel
Copy link
Contributor Author

Is this new functionality on hackage?

Likely the last deployment of the hackage-server broke this.

@gbaz
Copy link

gbaz commented Apr 10, 2023

If you want to write a patch enabling it, I'm down to try... I think our builder is "sealed" enough this should be fine.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants