Skip to content

Update docker and go-containerregistry#291

Merged
jabrown85 merged 1 commit intobuildpacks:mainfrom
jericop:update-docker-go-containerregistry
Jun 26, 2025
Merged

Update docker and go-containerregistry#291
jabrown85 merged 1 commit intobuildpacks:mainfrom
jericop:update-docker-go-containerregistry

Conversation

@jericop
Copy link
Copy Markdown
Contributor

@jericop jericop commented Jun 26, 2025

This change does the following:

  • Updates docker and go-containerregistry
  • Changes toV1Config function input type to dockerspec.DockerOCIImageConfig because of a change in the latest version of docker/moby
  • These fields are no longer supported by dockerCfg and are therefore no longer being set:
    • AttachStderr
    • AttachStdin
    • AttachStdout
    • Domainname
    • Hostname
    • Image
    • NetworkDisabled
    • OpenStdin
    • StdinOnce
    • Tty
    • ArgsEscaped is deprecated and has been removed as well

A corresponding PR to pack has been created, but it will need to be updated to point to the latest commit of imgutil once this change has been merged.
buildpacks/pack#2406

@jericop jericop requested a review from a team as a code owner June 26, 2025 03:17
@jericop jericop force-pushed the update-docker-go-containerregistry branch 2 times, most recently from 7ca916f to 95aab00 Compare June 26, 2025 03:40
Comment thread go.mod Outdated
require (
github.com/docker/docker v28.1.1+incompatible
github.com/containerd/errdefs v1.0.0
github.com/docker/docker v28.2.2+incompatible
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

We may not be able to do this - we rely on kaniko and it only goes to 28.1.1

#288 (comment) for previous thoughts.

If lifecycle compiles with this commit, I'm happy to give it a go. I think before there were breaking changes but if the versions are compatible enough it could be safe.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

@jericop I updated lifecycle to use the new chainguard fork of kaniko. This resolves the issue I brought up earlier. Get this PR passing checks and DCO. I re-kicked the github test action in case it was a fluke.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Nice! I figured out the issue and should have this passing now.

Update go-containerregistry from 0.19.1 to 0.20.6

Change toV1Config input type to dockerspec.DockerOCIImageConfig

Update and remove deprecated fields and functions

Signed-off-by: Jerico Pena <jericop@gmail.com>
@jericop jericop force-pushed the update-docker-go-containerregistry branch from 5e5d648 to b579406 Compare June 26, 2025 17:22
@codecov
Copy link
Copy Markdown

codecov Bot commented Jun 26, 2025

Codecov Report

Attention: Patch coverage is 82.35294% with 3 lines in your changes missing coverage. Please review.

Project coverage is 31.68%. Comparing base (b736a96) to head (b579406).
Report is 7 commits behind head on main.

Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff             @@
##             main     #291      +/-   ##
==========================================
- Coverage   38.89%   31.68%   -7.21%     
==========================================
  Files          36       39       +3     
  Lines        3294     4006     +712     
==========================================
- Hits         1281     1269      -12     
- Misses       1819     2543     +724     
  Partials      194      194              
🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Copy link
Copy Markdown
Contributor

@jabrown85 jabrown85 left a comment

Choose a reason for hiding this comment

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

This seems good to me

@jabrown85 jabrown85 merged commit 7c19c27 into buildpacks:main Jun 26, 2025
4 of 5 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