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

Mafia doesn't do enough to clean up a failed installation of a package before trying again #111

Open
jacobstanley opened this issue Jun 8, 2016 · 1 comment

Comments

@jacobstanley
Copy link
Contributor

Just saw this:

Process failed: cabal unpack --destdir=/mnt/boris-service/.ambiata/mafia/packages/1/7.8.4/haskell-src-exts-1.17.1-fbc87035a5ec6567e081217c2bd2bfbdf4e8557f/src haskell-src-exts-1.17.1 (exit code: 1)

Looking on the box it seems as though an install of haskell-src-exts had got part of the way through, but never made it to writing the package.vanilla marker which indicates it is done. Maybe because it was missing happy on the PATH?

This is fine, but it looks as though we're not doing enough to clean up this directory before trying to use it again for the next attempt at installing haskell-src-exts.

@jacobstanley
Copy link
Contributor Author

A workaround until we fix the core problem is to delete the package's directory from the cache, i.e:

$ rm -rf /mnt/boris-service/.ambiata/mafia/packages/1/7.8.4/haskell-src-exts-1.17.1-fbc87035a5ec6567e081217c2bd2bfbdf4e8557f

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

1 participant