devenv: async-ify the core state#1970
Conversation
Deploying devenv with
|
| Latest commit: |
68781ea
|
| Status: | ✅ Deploy successful! |
| Preview URL: | https://7f2b51d9.devenv.pages.dev |
| Branch Preview URL: | https://asyncify.devenv.pages.dev |
|
Random task_cache test failure: |
|
Enables concurrent Nix operations.
Tokio's `output()` always uses pipes for stdout/stderr, which is different from the standard library. The recommendation is to use `spawn` + `wait_with_output`.
|
Claude finished @sandydoo's task —— View job PR Review: devenv async-ify the core stateTodo List:
Analysis SummaryThis PR successfully refactors the core devenv state to enable concurrent execution by:
Critical Issues1. Race Condition in File Modification Detection
|
We have a few places in the codebase that are, as they say, embarrassingly parallel. But any effort to improve on that is hindered by the use of
mut self, both in the devenv struct and in the Nix backend.This PR removes those limitations allowing both devenv and nix commands to be called concurrently.