Skip to content

Conversation

ndeloof
Copy link
Contributor

@ndeloof ndeloof commented Aug 27, 2025

What I did

fix run --build support for service:* reference in additional_context

Related issue
fixes #13159

(not mandatory) A picture of a cute animal, if possible in relation to what you did

@ndeloof ndeloof requested a review from a team as a code owner August 27, 2025 13:54
@ndeloof ndeloof requested a review from glours August 27, 2025 13:54
@ndeloof ndeloof force-pushed the fix_run_build branch 6 times, most recently from e5b9998 to 5e696a7 Compare August 28, 2025 12:44
@ndeloof ndeloof marked this pull request as draft August 28, 2025 13:05
@ndeloof ndeloof force-pushed the fix_run_build branch 2 times, most recently from 57b17f0 to 13e5e80 Compare August 28, 2025 13:12
@ndeloof ndeloof marked this pull request as ready for review August 28, 2025 13:49
options.Services = project.ServiceNames()
}

// also include services used as additional_contexts ith service: prefix

Choose a reason for hiding this comment

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

Suggested change
// also include services used as additional_contexts ith service: prefix
// also include services used as additional_contexts with service: prefix

typo?

@@ -32,7 +32,7 @@ import (
)

func TestLocalComposeBuild(t *testing.T) {
for _, env := range []string{"DOCKER_BUILDKIT=0", "DOCKER_BUILDKIT=1", "DOCKER_BUILDKIT=1,COMPOSE-BAKE=1"} {
for _, env := range []string{"DOCKER_BUILDKIT=0", "DOCKER_BUILDKIT=1,COMPOSE-BAKE=0", "DOCKER_BUILDKIT=1,COMPOSE-BAKE=1"} {
Copy link
Contributor

Choose a reason for hiding this comment

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

It should be COMPOSE_BAKE, no?

Suggested change
for _, env := range []string{"DOCKER_BUILDKIT=0", "DOCKER_BUILDKIT=1,COMPOSE-BAKE=0", "DOCKER_BUILDKIT=1,COMPOSE-BAKE=1"} {
for _, env := range []string{"DOCKER_BUILDKIT=0", "DOCKER_BUILDKIT=1,COMPOSE_BAKE=0", "DOCKER_BUILDKIT=1,COMPOSE_BAKE=1"} {

@glours glours merged commit 0968940 into docker:main Sep 8, 2025
26 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.

[BUG] The new service: directive does not work with docker compose run --build
3 participants