-
Notifications
You must be signed in to change notification settings - Fork 841
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
stack path
tries to acquire lock
#872
Comments
stack --path
tries to acquire lockstack path
tries to acquire lock
Is that on master? |
Sorry, forgot to mention a version. But yes, this happens both with the 0.1.3.1 release and master. |
@rrnewton any thoughts on the locking issue here? |
Sure, if it doesn't side effect the snapshot it should be another exception. I was conservative about locking things. I'm pretty busy here at ICFP this week, and then PPoPP next week, but if it's not urgent I can get to these little fixes after next week. |
This should be much less of a problem now that locking is disabled by default, closing. |
I'm a bit confused here, isn't locking required to stay safe when running multiple instances of stack? If so, this issue remains an issue for us and our build environment. |
Not that I'm aware of, see: #950 (comment) In any event, stack path definitely is safe without locking. |
Thanks for clarifying, we'll see how this works out in practice :) |
Hi @thomasvnoort, I wrote a tiny patch that includes I made a pull request (#1112) with the patch. |
Allow stack path to release the lock immediately. Fixes #872
Our build environment uses
stack path
to figure out where to get the binaries to archive. Right now this causes builds to be slow since this step waits for other stack instances in concurrent build jobs to release their lock.I'd expect
stack path
to not require any locking at all since it just prints some path information, but I might be overlooking something here.The text was updated successfully, but these errors were encountered: