Repository navigation
fix(nix): add watchfiles to flake propagated deps - #542
Conversation
The watch command (#539) imports watchfiles at runtime; the pyproject listing was added in #541 but the flake's hardcoded propagatedBuildInputs was missed, so the Nix-built binary fails with ModuleNotFoundError when the live watcher service starts. Co-Authored-By: Claude <[email protected]>
|
Warning Rate limit exceeded
To keep reviews running without waiting, you can enable usage-based add-on for your organization. This allows additional reviews beyond the hourly cap. Account admins can enable it under billing. ⌛ How to resolve this issue?After the wait time has elapsed, a review can be triggered using the We recommend that you space out your commits to avoid hitting the rate limit. 🚦 How do rate limits work?CodeRabbit enforces hourly rate limits for each developer per organization. Our paid plans have higher rate limits than the trial, open-source and free plans. In all cases, we re-allow further reviews after a brief timeout. Please see our FAQ for further information. ℹ️ Review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: ASSERTIVE Plan: Pro Run ID: 📒 Files selected for processing (1)
✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
|
@codex review |
|
Codex Review: Didn't find any major issues. Chef's kiss. ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
If Codex has suggestions, it will comment; otherwise it will react with 👍. Codex can also answer questions or update the PR. Try commenting "@codex address that feedback". |
## Summary \`polylogue watch\` (#539, landed in #541) imports \`watchfiles\` at runtime; the pyproject dep was added but \`flake.nix\` hardcodes \`propagatedBuildInputs\` separately and \`watchfiles\` was missed there. Nix-built binary fails with \`ModuleNotFoundError: No module named 'watchfiles'\` when \`polylogue-watch.service\` starts. ## Problem The \`polylogue\` Nix derivation lists Python deps explicitly, not from pyproject. Anyone deploying via \`pkgs.polylogue\` (sinnix) gets a binary missing \`watchfiles\`. ## Solution Add \`watchfiles\` to the \`propagatedBuildInputs\` list. ## Verification \`\`\`bash nix build .#polylogue ./result/bin/polylogue watch --help # exits 0; previously crashed \`\`\` Repro of the underlying failure: starting \`polylogue-watch.service\` on a host with the master version pre-fix produces: \`\`\` ModuleNotFoundError: No module named 'watchfiles' \`\`\` Co-authored-by: Claude <[email protected]>
Summary
`polylogue watch` (#539, landed in #541) imports `watchfiles` at runtime; the pyproject dep was added but `flake.nix` hardcodes `propagatedBuildInputs` separately and `watchfiles` was missed there. Nix-built binary fails with `ModuleNotFoundError: No module named 'watchfiles'` when `polylogue-watch.service` starts.
Problem
The `polylogue` Nix derivation lists Python deps explicitly, not from pyproject. Anyone deploying via `pkgs.polylogue` (sinnix) gets a binary missing `watchfiles`.
Solution
Add `watchfiles` to the `propagatedBuildInputs` list.
Verification
```bash
nix build .#polylogue
./result/bin/polylogue watch --help # exits 0; previously crashed
```
Repro of the underlying failure: starting `polylogue-watch.service` on a host with the master version pre-fix produces:
```
ModuleNotFoundError: No module named 'watchfiles'
```