Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use tarfs implementation for publish/build #867

Merged
merged 1 commit into from
Sep 1, 2023

Conversation

jonjohnsonjr
Copy link
Contributor

Actually opt into the optimized tarfs path.

This cuts the amount of time we spend on I/O dramatically.

@jonjohnsonjr jonjohnsonjr requested a review from a team as a code owner August 31, 2023 22:03
@jonjohnsonjr jonjohnsonjr requested review from ajayk and removed request for a team August 31, 2023 22:03
@jonjohnsonjr
Copy link
Contributor Author

jonjohnsonjr commented Aug 31, 2023

2023/08/31 22:04:11 error during command execution: failed to build layer image for "386": installing apk packages: installing packages: installing alpine-keys: unable to install files for pkg alpine-keys: writing header for "etc/apk/keys/alpine-devel@lists.alpinelinux.org-61666e3f.rsa.pub": conflicting file for "etc/apk/keys/alpine-devel@lists.alpinelinux.org-61666e3f.rsa.pub" has no tar entry

I love having tests.

If I had to guess, this is our automagic alpine key fetching conflicting with the alpine-keys APK. Let's see.

Edit: Yep, added a path to account for that.

go.mod Outdated Show resolved Hide resolved
Actually opt into the optimized tarfs path.

This cuts the amount of time we spend on I/O dramatically.

Also, add a check that if a file from an APK conflicts with a file that
apko wrote (e.g. alpine keys conflicting with alpine-keys), ignore that
conflict if their checksums match.

Signed-off-by: Jon Johnson <jon.johnson@chainguard.dev>
@jonjohnsonjr jonjohnsonjr merged commit aae61e1 into chainguard-dev:main Sep 1, 2023
19 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants