Cabal: Post Build Hook inside a Sandbox

84 views Asked by At

I am creating a simple post-build-hook for Cabal. The problem comes when I try to work in a sandbox. My hook is expecting the compiled code under:

dist/something

but when the build happens inside a sandbox the path becomes:

dist/dist-sandbox-xxxxxxxx/something

How can I pass or let know to my hook the current used dist-sandbox path?

1

There are 1 answers

0
Edward Z. Yang On

This question was asked on Cabal's bug tracker: https://github.com/haskell/cabal/issues/2978

If indeed this is the behavior you are seeing, try upgrading your Cabal.