Repository navigation
fix(oci): account for darwin mode stripping - #10681
Conversation
📝 WalkthroughWalkthroughA unit test in src/oci/layer.rs was updated so that the expected permission mode for bin/helper is computed from the actual on-disk metadata rather than hardcoded, while the sticky-bit assertion for bin remains unchanged. ChangesTest Permission Mode Fix
Estimated code review effort🎯 1 (Trivial) | ⏱️ ~3 minutes Poem
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
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 |
Greptile SummaryThis PR updates the OCI layer metadata test for platforms that strip file mode bits. The main changes are:
Confidence Score: 5/5This looks safe to merge.
Important Files Changed
Reviews (1): Last reviewed commit: "test(oci): account for darwin mode strip..." | Re-trigger Greptile |
Summary
Fix the Darwin Nix build failure by making the OCI layer test assert the mode that the filesystem actually retains after
set_permissions.On this filesystem, the setuid bit is stripped from the test file, so the previous hard-coded
04755expectation was too strict.Verification
nix build .#mise --print-build-logstest result: ok. 1460 passed; 0 failed; 0 ignored; 0 measured; 1 filtered outNotes
Summary by CodeRabbit