You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently we create a directory hackage-security-lock in order to lock the cache; however, if the user interrupts the program (CTRL-C twice, for instance), we won't get a chance to remove this lock again and any subsequent attempts to check for updates will fail until the directory is manually removed.
A stop-gap measure would be to add a flag to ignore an existing lock, or ignore it automatically if the existing lock is older than a certain threshold; a proper solution would be to use some proper file locking but I don't know how to do that in a platform independent way.
The text was updated successfully, but these errors were encountered:
Currently we create a directory
hackage-security-lock
in order to lock the cache; however, if the user interrupts the program (CTRL-C twice, for instance), we won't get a chance to remove this lock again and any subsequent attempts to check for updates will fail until the directory is manually removed.A stop-gap measure would be to add a flag to ignore an existing lock, or ignore it automatically if the existing lock is older than a certain threshold; a proper solution would be to use some proper file locking but I don't know how to do that in a platform independent way.
The text was updated successfully, but these errors were encountered: