Skip to content

Conversation

@thaJeztah
Copy link
Member

client.ContainerDiff already validates the given container name/ID, and produces an error when empty, so we don't have to check for this; https://github.com/moby/moby/blob/abba330bbfe10765822b59bb68af99db439736ba/client/container_diff.go#L13-L16

While updating, also;

  • remove the diffOptions type, as there were no other options, and make the container name/ID a string argument.
  • fix camelCase nameing of dockerCLI

Before this patch:

docker diff ""
Container name cannot be empty

With this patch:

docker diff ""
invalid container name or ID: value is empty

- Human readable description for the release notes

- A picture of a cute animal (not mandatory but encouraged)

client.ContainerDiff already validates the given container name/ID, and
produces an error when empty, so we don't have to check for this;
https://github.com/moby/moby/blob/abba330bbfe10765822b59bb68af99db439736ba/client/container_diff.go#L13-L16

While updating, also;

- remove the diffOptions type, as there were no other options, and make
  the container name/ID a string argument.
- fix camelCase nameing of dockerCLI

Before this patch:

    docker diff ""
    Container name cannot be empty

With this patch:

    docker diff ""
    invalid container name or ID: value is empty

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
@thaJeztah thaJeztah added this to the 29.0.0 milestone Jul 14, 2025
@codecov-commenter
Copy link

codecov-commenter commented Jul 14, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

@thaJeztah thaJeztah merged commit 980b856 into docker:master Jul 16, 2025
93 checks passed
@thaJeztah thaJeztah deleted the diff_simplify branch July 16, 2025 10:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants