Skip to content

Fetch run image locally for publish extensions#2618

Open
TIR44 wants to merge 1 commit into
buildpacks:mainfrom
TIR44:fix/publish-extension-run-image-daemon
Open

Fetch run image locally for publish extensions#2618
TIR44 wants to merge 1 commit into
buildpacks:mainfrom
TIR44:fix/publish-extension-run-image-daemon

Conversation

@TIR44

@TIR44 TIR44 commented May 31, 2026

Copy link
Copy Markdown

Summary

  • Fetched the run image into the Docker daemon when image extensions are used, even when --publish normally resolves it remotely.
  • Forced the lifecycle extension run-image fetch path to use the daemon because it builds a local ephemeral run image from that base image.
  • Added a regression test for --publish with Extensions.

Output

Before

pack build --publish --extension ... could validate the run image remotely, then fail later when the extension flow tried to create a local ephemeral run image from a base image that was not in the daemon.

After

The run image is available in the daemon before the extension flow creates the local ephemeral run image.

Documentation

  • Should this change be documented?
    • No

Related

Resolves #2559

Tests

  • go test ./pkg/client

GitHub checks passed on the latest commit (a4e1cec): DCO, CodeQL, build tests on macOS/Linux/Windows, and compatibility acceptance combos.

make unit failed locally because Docker is not available at /var/run/docker.sock; the changed pkg/client package passed during that run.

@TIR44 TIR44 requested review from a team as code owners May 31, 2026 09:42
@github-actions github-actions Bot added this to the 0.41.0 milestone May 31, 2026
@github-actions github-actions Bot added the type/enhancement Issue that requests a new feature or improvement. label May 31, 2026
Signed-off-by: TiR <70480807+TIR44@users.noreply.github.com>
@TIR44 TIR44 force-pushed the fix/publish-extension-run-image-daemon branch from 6b5e09b to a4e1cec Compare May 31, 2026 09:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

type/enhancement Issue that requests a new feature or improvement.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Error when using --publish with --extension on pack build

1 participant