do not render Building when no build is needed#10620
Conversation
Codecov ReportPatch coverage:
Additional details and impacted files@@ Coverage Diff @@
## v2 #10620 +/- ##
==========================================
- Coverage 59.55% 59.51% -0.05%
==========================================
Files 107 107
Lines 9438 9442 +4
==========================================
- Hits 5621 5619 -2
- Misses 3241 3245 +4
- Partials 576 578 +2
☔ View full report in Codecov by Sentry. |
8822df4 to
b6fa268
Compare
Signed-off-by: Nicolas De Loof <[email protected]>
|
I hope it makes it to the next version because it kind of annoys me |
milas
left a comment
There was a problem hiding this comment.
LGTM - only suggestion would be to TestPrepareProjectForBuild to assert on buildRequired (not in every case, but at least 1x for true/false)
Building when no built is neededBuilding when no build is needed
|
Which version is this available in? Currently with Compose v2.22.0-desktop.2 we are seeing this output. |
|
@NiklasBr it was released last June in https://github.com/docker/compose/releases/tag/v2.19.0 |
|
This is reproducible on both Mac OS 13 with Docker Desktop 4.24 and Windows 11 WSL2 and Docker Desktop 4.24.2 A docker-compose.yaml file like so: services:
system-cli:
image: docker.io/system-cli:latestA Dockerfile like so: ARG PHP_VERSION="8.1"
ARG DEBIAN_VERSION="bookworm"
FROM php:${PHP_VERSION}-cli-${DEBIAN_VERSION}
WORKDIR /var/www
COPY --from=composer:latest /usr/bin/composer /usr/bin/composerAnd then run the following command: docker compose run --rm system-cli composerOutput becomes: |
|
What I did
Don't setup buildkit's progress printer is we have no build to run, to prevent
[+] Building 0/0to be displayed.progress.Printerdoesn't offer an option to select the stream used to render status vs build logsRelated issue
fixes #10619
(not mandatory) A picture of a cute animal, if possible in relation to what you did