Comments (13)
Pinging @sol. I don't have this problem, but @jwiegley reported something similar. Any ideas Simon?
from stackage.
This is probably again ghc
not finding sandbox packages. @snoyberg I guess you don't have this problem, because you installed setenv
outside your sandbox.
I think the general solution would really be to set GHC_PACKAGE_PATH
before running the test suites.
@snoyberg you mentioned some complications with cabal
(or cabal-dev
here?). If patching cabal-dev
is not viable, would it still work to only build the test suites with cabal-dev
but run them ourself?
from stackage.
If nothing else helps, I can of course somehow special-case this particular test case ;)
(BTW: The affected test case does not really test Hspec, rather a precondition it relies on.)
from stackage.
The problem is with cabal-install
itself. If you try to set GHC_PACKAGE_PATH, it fails...
But I just checked, and GHC_PACKAGE_PATH=foo: cabal test
seems to work. Let me test this a little further.
from stackage.
Alright, by removing setenv
from my user package repo I was able to reproduce the error, and with the attached commit was able to resolve it. Can you test this and let me know if it works for you?
from stackage.
@snoyberg It would be possible to use GHC_PACKAGE_PATH
instead of HASKELL_PACKAGE_SANDBOX
in doctest, right?
from stackage.
It still wouldn't work for the case of cabal-dev install hspec --enable-tests
, since in that case you can't use GHC_PACKAGE_PATH
. I'm still confused as to why the HASKELL_PACKAGE_SANDBOX
didn't solve this problem entirely, do you know why not? IMO it's still the more resilient solution.
from stackage.
Because this is not related to doctest.
from stackage.
Oh, the hspec
test suite is calling GHCi itself directly?
from stackage.
Yes, it is to make sure that future versions of ghci
keep changes to env.
from stackage.
Got it, makes sense. Sorry for the mistaken assumption about hspec.
from stackage.
np ;)
from stackage.
This test suite should now build. Please reopen issue if problem reappears.
from stackage.
Related Issues (20)
- uuid-types-1.0.6 HOT 1
- witherable-0.5
- servant-client(-core) 0.20.1 deprecated
- crypton-connection-0.4.0 HOT 6
- filepath-1.4.200.1 HOT 2
- wherefrom-compat-0.2.0.0 HOT 1
- Revision on heap places a lower bound on QuickCheck than the one we already have HOT 2
- Revision on hspec-expectations-pretty-diff places a lower bound on aeson than the one we already have HOT 2
- Revision on flay places a lower bound on base than the one we already have HOT 6
- Revision on hourglass places a lower bound on time than the one we already have HOT 4
- Flags used to pass tests become set for all installations HOT 5
- exon-1.7.0.0 HOT 1
- type-level-show vs rerefined HOT 2
- hledger-iadd and hledger-interest HOT 2
- network-run-0.3.0 HOT 1
- attoparsec-framer 0.1.0.5 HOT 2
- http2 5.2.3 HOT 2
- fourmolu 0.16.0.0
- tensort 0.2.0.2 HOT 2
- github-rest 1.1.4 HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from stackage.