Skip to content

Conversation

@daghack
Copy link
Contributor

@daghack daghack commented Jun 24, 2024

Currently, in the case that --check produces no errors or warnings, there is no output to clarify this. This adds a simple user facing message in the case to indicate such when it occurs.

~/example$ BUILDX_EXPERIMENTAL=1 docker --debug buildx --builder=dev build --check .
[+] Building 0.1s (3/3) FINISHED                                                                                                         docker-container:dev
 => [internal] connecting to local controller                                                                                                            0.0s
 => [internal] load build definition from Dockerfile                                                                                                     0.0s
 => => transferring dockerfile: 105B                                                                                                                     0.0s
 => [internal] load .dockerignore                                                                                                                        0.0s
 => => transferring context: 2B                                                                                                                          0.0s

Becomes

~/example$ BUILDX_EXPERIMENTAL=1 docker --debug buildx --builder=dev build --check .
[+] Building 0.2s (3/3) FINISHED                                                                                                         docker-container:dev
=> [internal] connecting to local controller                                                                                                            0.0s
=> [internal] load build definition from Dockerfile                                                                                                     0.0s
=> => transferring dockerfile: 105B                                                                                                                     0.0s
=> [internal] load .dockerignore                                                                                                                        0.0s
=> => transferring context: 2B                                                                                                                          0.0s
Check complete, no warnings found.

@daghack daghack self-assigned this Jun 24, 2024
@daghack daghack modified the milestone: v0.15.2 Jun 24, 2024
@daghack daghack added the kind/enhancement New feature or request label Jun 24, 2024
@daghack daghack requested a review from tonistiigi June 24, 2024 05:01
Copy link
Member

@tonistiigi tonistiigi left a comment

Choose a reason for hiding this comment

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

This should not be printed if format is json. Same for the newline in the Error formatter.

@daghack daghack force-pushed the warning-free-msg branch from f64f200 to b6482ab Compare June 27, 2024 15:24
@daghack daghack requested a review from tonistiigi June 27, 2024 15:28
@daghack daghack modified the milestones: v0.15.2, v0.16.0 Jun 27, 2024
@tonistiigi tonistiigi merged commit 2b17f27 into docker:master Jun 28, 2024
@daghack daghack deleted the warning-free-msg branch July 1, 2024 15:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area/cli kind/enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants