Binary cache info#493
Conversation
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (4)
📝 WalkthroughWalkthroughThe PR refactors ChangesNarInfoDiskCache struct-based parameter passing
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~25 minutes Suggested reviewers
Poem
🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 inconclusive)
✅ Passed checks (4 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
Warning There were issues while running some tools. Please review the errors and either fix the tool's configuration or disable the tool if it's a critical failure. 🔧 Infer (1.2.0)src/libstore-tests/nar-info-disk-cache.ccsrc/libstore-tests/nar-info-disk-cache.cc:1:10: fatal error: 'nix/store/nar-info-disk-cache.hh' file not found ... [truncated 2200 characters] ... decl.CFrontend_decl_funct.add_method in file "src/clang/cFrontend_decl.ml" (inlined), line 54, characters 4-52 src/libstore/http-binary-cache-store.ccsrc/libstore/http-binary-cache-store.cc:1:10: fatal error: 'nix/store/http-binary-cache-store.hh' file not found ... [truncated 1174 characters] ... clang/18/include" src/libstore/nar-info-disk-cache.ccsrc/libstore/nar-info-disk-cache.cc:1:10: fatal error: 'nix/store/nar-info-disk-cache.hh' file not found ... [truncated 2200 characters] ... Frontend__CFrontend_decl.CFrontend_decl_funct.add_method in file "src/clang/cFrontend_decl.ml" (inlined), line 54, characters 4-52 Comment |
Motivation
This deduplicates the
CacheandCacheInfotypes, and makesNarInfoDiskCache::createCache()take aCacheInfoinstead of a bunch of separate arguments. This makes it easier to add newnix-cache-infofields in the future.Upstream NixOS#16006.
Context
Summary by CodeRabbit