Add missing temp roots#373
Conversation
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review infoConfiguration used: defaults Review profile: CHILL Plan: Pro 📒 Files selected for processing (3)
📝 WalkthroughWalkthroughThe changes add temporary root registration across three store modules to prevent accidental garbage collection. Each modification calls Changes
Estimated code review effort🎯 2 (Simple) | ⏱️ ~10 minutes Poem
🚥 Pre-merge checks | ✅ 2 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (2 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches
🧪 Generate unit tests (beta)
Comment |
| auto storePath = store->addToStoreFromDump( | ||
| source, |
There was a problem hiding this comment.
Btw I think that in this case the remote side already adds temp roots https://github.com/NixOS/nix/blob/fa1a370c6fb827883d1d34317f31f948a1f44b7b/src/libstore/local-store.cc#L1210
It's more of the pattern of isValidPath that needs to have a temp root added first.
Motivation
Backport of NixOS#15237 + a similar fix to
AsyncPathWriter.Context
Summary by CodeRabbit