-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
Using "localhost" as a remote builder deadlocks the build #2029
Comments
I'm not completely sure the answer here shouldn't just be "don't do that". @edolstra ? |
It seems like it should be to have the tool tell you "don't do that" when you try it, rather than observing the deadlock, googling it, and seeing @shlevy tell you not to do that 😄 |
Oh, right, fair. |
Any word on this issue? Being able to specify |
I marked this as stale due to inactivity. → More info |
I closed this issue due to inactivity. → More info |
Has anyone ever found a workaround for this? I'd like to have a weaker machine help a stronger one with builds. Configuring
Trying
Is there any other way to set |
I encountered the same issue. It would be really cool to be able to use remote builds but still prioritizing local builds. |
A nix-build command of the form
nix-build --builders "ssh://nix@localhost"
will deadlock, because the local nix-build command is holding the /nix/store lock for that output, thus preventing the remote build process (running on the same machine) from grabbing the lock and performing the build. So the command gets stuck at "waiting for locks or build slots..."The text was updated successfully, but these errors were encountered: