faylang / fay

A proper subset of Haskell that compiles to JavaScript
https://github.com/faylang/fay/wiki
BSD 3-Clause "New" or "Revised" License
1.29k stars 86 forks source link

fay-tests looks for wrong version of fay-base? #396

Closed osa1 closed 10 years ago

osa1 commented 10 years ago

I'm trying to run fay-tests in my cabal sandbox. I have fay-base 0.19 installed(which I think is the latest version):

➜  fay git:(master) cabal sandbox hc-pkg list | grep fay-base
    (fay-base-0.19)

but for some reason fay-tests looks for older version:

➜  fay git:(master) ./dist/dist-sandbox-cc8abdf8/build/fay-tests/fay-tests
Test.Compile:

  imports: [Failed]
ERROR: unable to find (existing) package's share dir: fay-base
tried: /home/omer/haskell/fay/.cabal-sandbox/share/x86_64-linux-ghc-7.6.3/fay-base-0.18.0.0
/home/omer/haskell/fay/.cabal-sandbox/share/x86_64-linux-ghc-7.6.3/fay-base-0.18.0.0/src

but none of them seem to have Haskell files in them.
...

any ideas why?

bergmark commented 10 years ago

You didn't supply the HASKELL_PACKAGE_SANDBOX env var so it probably picks up some fay-base version installed globally and then tries to find that version in the sandbox.

osa1 commented 10 years ago

Right.. Thanks.