haskell / hackage-security

Hackage security framework based on TUF (The Update Framework)
http://hackage.haskell.org/package/hackage-security
56 stars 47 forks source link

Aborting update can leave lock file #186

Closed mgsloan closed 7 years ago

mgsloan commented 7 years ago

I'm having a hard time reproducing the issue, but see this stack issue: https://github.com/commercialhaskell/stack/issues/3055

Seems like it's possible to leave the lock file if an async exception is thrown in the middle of updating (in this case via ctrl-C

ezyang commented 7 years ago

I commented on the downstream for more clarification.

ezyang commented 7 years ago

Based on discussion in downstream, there is nothing we can do; this situation can occur if you C-c a process twice.

chris-martin commented 7 years ago

Can't we show a better error message, though, including remediation instructions? Am I supposed to manually delete ~/.stack/indices/Hackage/hackage-security-lock now?