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

Tests fail with stack 2.1.1 #211

Open
gelisam opened this issue Jul 7, 2019 · 1 comment
Open

Tests fail with stack 2.1.1 #211

gelisam opened this issue Jul 7, 2019 · 1 comment

Comments

@gelisam
Copy link
Owner

gelisam commented Jul 7, 2019

I am creating an issue here so that users find it if they experience an issue with stack 2.1.1, but this is not a bug in hawk, it is a bug in stack 2.1.1 which is fixed in stack at commit 61edf6b824ac53ea9d20bd21c3e0d6a385f29ea1. For some reason, at the time of writing, using stack upgrade --git obtains a version of stack which does not include that bugfix, I don't know why.

stack 2.x now creates an environment file controlling which packages are visible to test suites. That environment file is supposed to list all the dependencies listed in the .cabal file for that test suite, but the bug in stack 2.1.1 is that it doesn't include the library provided by that same .cabal file even if it is listed. Since hawk needs to load modules from the haskell-awk library, the test suite fails.

See commercialhaskell/stack#4896 and commercialhaskell/stack#4921 for details.

@gelisam gelisam added the wontfix label Jul 7, 2019
@gelisam
Copy link
Owner Author

gelisam commented Jul 7, 2019

You can obtain a version of stack which includes the bugfix with stack upgrade --git --git-branch stable.

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

No branches or pull requests

1 participant