Skip to content

Comments

client: ImagePullResponse: don't panic without reader#51159

Merged
thaJeztah merged 1 commit intomoby:masterfrom
thaJeztah:no_panic
Oct 10, 2025
Merged

client: ImagePullResponse: don't panic without reader#51159
thaJeztah merged 1 commit intomoby:masterfrom
thaJeztah:no_panic

Conversation

@thaJeztah
Copy link
Member

When stubbing a client for tests, and there's no reader set, we just return an io.EOF, instead of panic.

- What I did

- How I did it

- How to verify it

- Human readable description for the release notes

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

When stubbing a client for tests, and there's no reader set, we
just return an io.EOF, instead of panic.

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
@thaJeztah
Copy link
Member Author

cc @ndeloof @vvoland PTAL

We can still look at exporting, but I tried to avoid it if we didn't have a real reason.

@thaJeztah
Copy link
Member Author

Oh! I marked this as "validate only" - don't think we need all of CI to run for this change 😅 (so that I can re-vendor after this in the CLI)

@thaJeztah thaJeztah merged commit 1964cc7 into moby:master Oct 10, 2025
60 checks passed
@thaJeztah thaJeztah deleted the no_panic branch October 10, 2025 09:30
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.

2 participants