Skip to content

[BUG] build failing to check already built dependencies #12928

@israelglar

Description

@israelglar

Description

I'm running the code that's on main . Because of #12925 it now produces bake targets for all services

This now causes all depedencies to be in the expected built images and causes an error.

Steps To Reproduce

services:
  main:
    build:
      dockerfile_inline: |
        FROM alpine
    entrypoint: ["echo", "Hello from main"]
    depends_on:
      - dep1

  dep1:
    build:
      dockerfile_inline: |
        FROM alpine
    entrypoint: ["echo", "Hello from dep1"]

first run docker compose dep1
then run docker compose main - this will build the image but exit with an error build result not found in Bake metadata for service dep1

Compose Version

Commit 213c03f

Docker Environment


Anything else?

No response

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions