refactor(pkg/archive): factor out createImpliedDirectories helper #44196
refactor(pkg/archive): factor out createImpliedDirectories helper #44196thaJeztah merged 2 commits intomoby:masterfrom
Conversation
|
For additional context regarding why this value is presently unreliable/implementation defined, see #44106 (comment). |
3b119a2 to
395f455
Compare
This code was duplicated in two places -- factor it out, add documentation, and move magic numbers into a constant. Additionally, use the same permissions (0755) in both code paths, and ensure that the ID map is used in both code paths. Co-authored-by: Vasiliy Ulyanov <[email protected]> Signed-off-by: Bjorn Neergaard <[email protected]> Signed-off-by: Vasiliy Ulyanov <[email protected]>
395f455 to
64e5936
Compare
64e5936 to
2e64eb6
Compare
Co-authored-by: Cory Snider <[email protected]> Signed-off-by: Bjorn Neergaard <[email protected]>
2e64eb6 to
5dff494
Compare
|
arf... I edited the top description, but that triggered another run of Jenkins, well 🤷♂️ |
For what it's worth, I already included the issue linking in the body, but at the bottom. I'll adopt the bulleted-on-top style in the future 😅 |
Oh! I completely overlooked. I nowadays also use the bullet-list formatting (where suitable), which renders the links with the linked description; not always useful, but sometimes saves me from having to "mouse-hover" (or "click") to see the linked issue/ |
|
@thaJeztah I've gone ahead and applied the |
|
@neersighted ah, thanks; thought it was on there already; yes, if you have time to prepare a cherry pick, that'd be good 👍 |
#44207 is up |
- What I did
pkg/archiveinto a helper.0755was chosen, and why image authors cannot currently rely on this value given it is not standardized/is fully implementation-defined.- How to verify it
CI
- Description for the changelog
Update the default permissions for directories implied but not explicitly defined by a layer to 0755 across all graphdrivers.
- A picture of a cute animal (not mandatory but encouraged)
