Skip to content

[22.06 backport] refactor(pkg/archive): factor out createImpliedDirectories helper#44207

Merged
thaJeztah merged 2 commits intomoby:22.06from
neersighted:createImpliedDirectories_22.06
Sep 27, 2022
Merged

[22.06 backport] refactor(pkg/archive): factor out createImpliedDirectories helper#44207
thaJeztah merged 2 commits intomoby:22.06from
neersighted:createImpliedDirectories_22.06

Conversation

@neersighted
Copy link
Copy Markdown
Member

neersighted and others added 2 commits September 27, 2022 14:01
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]>
(cherry picked from commit 4831ff9)
Co-authored-by: Cory Snider <[email protected]>
Signed-off-by: Bjorn Neergaard <[email protected]>
(cherry picked from commit 5dff494)
Copy link
Copy Markdown
Member

@thaJeztah thaJeztah left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@thaJeztah thaJeztah added this to the 22.06.0 milestone Sep 27, 2022
@thaJeztah thaJeztah merged commit 43cfc50 into moby:22.06 Sep 27, 2022
@neersighted neersighted deleted the createImpliedDirectories_22.06 branch September 27, 2022 23:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area/images Image Service kind/refactor PR's that refactor, or clean-up code status/4-merge

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants