fix(make-updater): restore nix build evaluation - #1215
Conversation
|
Caution Review failedThe pull request is closed. ℹ️ Recent review info⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (2)
Disabled knowledge base sources:
📝 WalkthroughSummary by CodeRabbit
WalkthroughRemoved the Changes
Estimated code review effort🎯 2 (Simple) | ⏱️ ~10 minutes Possibly related PRs
Suggested labels
Poem
✨ Finishing Touches🧪 Generate unit tests (beta)
📝 Coding Plan
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 |
Summary of ChangesHello, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed! This pull request addresses a critical regression that prevented Highlights
Using Gemini Code AssistThe full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips. Invoking Gemini You can request assistance from Gemini at any point by creating a comment using either
Customization To customize Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a Limitations & Feedback Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. You can react with 👍 and 👎 on @gemini-code-assist comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for GitHub and other Google products, sign up here. Footnotes
|
Mesa DescriptionTL;DRFix What changed?
Description generated by Mesa. Update settings |
|
You do not have enough credits to review this pull request. Please purchase more credits to continue. |
There was a problem hiding this comment.
Code Review
This pull request addresses a Nix build evaluation failure in the make-updater service. The fix involves removing the evaluation-time dependency on config.home.homeDirectory by using systemd's %h runtime specifier for RUSTUP_HOME and CARGO_HOME. The associated config dependency is also correctly removed from the module's imports and definition. The changes are logical and effectively resolve the described regression.
There was a problem hiding this comment.
Pull request overview
Restores make build evaluation for the make-updater Home Manager service by removing evaluation-time dependence on config.home.homeDirectory and switching to systemd runtime home expansion.
Changes:
- Remove
config/homeDirusage frommake-updatermodule evaluation. - Use systemd
%hspecifier forRUSTUP_HOMEandCARGO_HOMEin the Linux user service environment. - Simplify the parent services import to stop passing
configintomake-updater.
Reviewed changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.
| File | Description |
|---|---|
| home-manager/services/make-updater/default.nix | Drops evaluation-time homeDirectory lookup; uses %h in systemd env to keep paths runtime-resolved. |
| home-manager/services/default.nix | Stops wiring config into the make-updater import since it’s no longer needed. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Restore make build after the recent make-updater regression.
The service module started reading config.home.homeDirectory during evaluation. In the NixOS plus Home Manager path used by make build, that attribute is not available at that point, so evaluation fails before the system configuration can build.
This switches RUSTUP_HOME and CARGO_HOME to systemd %h runtime expansion and removes the now-unused config wiring from the parent service import. I considered recomputing the path from the username again, but %h keeps the module runtime-scoped and avoids reintroducing evaluation-time coupling.
Verified by rerunning make build.
Summary by cubic
Fixes
make buildevaluation errors by removing eval-time use ofconfig.home.homeDirectoryin themake-updaterservice. Uses systemd%hforRUSTUP_HOMEandCARGO_HOMEand stops passingconfiginto the module import.configfrommake-updaterimport to avoid readingconfig.home.homeDirectoryduring evaluation.RUSTUP_HOMEandCARGO_HOMEto%h/...so paths resolve at runtime;make buildworks again.Written for commit 40a4e09. Summary will update on new commits.