Skip to content

Conversation

@mdelapenya
Copy link
Member

What does this PR do?

It changes the ErrReuseEmptyName error to ErrContainerNameEmpty, updating the error message.

Why is it important?

The reuse words were probably part of the fork of testcontainers-go

Related issues

Copilot AI review requested due to automatic review settings October 23, 2025 09:28
@mdelapenya mdelapenya added the bug Something isn't working label Oct 23, 2025
@mdelapenya mdelapenya self-assigned this Oct 23, 2025
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR fixes the error message for empty container names by renaming ErrReuseEmptyName to ErrContainerNameEmpty and updating its message to remove misleading "reuse" terminology that was likely carried over from testcontainers-go.

Key Changes:

  • Renamed error variable from ErrReuseEmptyName to ErrContainerNameEmpty
  • Updated error message to remove "reuse" context
  • Added documentation to WithName function clarifying error behavior

Reviewed Changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.

File Description
container/options.go Renamed error variable and updated error message; added function documentation
container/options_test.go Updated test to reference the renamed error variable

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

Copy link

@chatgpt-codex-connector chatgpt-codex-connector bot left a comment

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

@mdelapenya mdelapenya merged commit 254b89a into docker:main Oct 23, 2025
11 checks passed
@mdelapenya mdelapenya deleted the misleading-name-error branch October 23, 2025 09:47
mdelapenya added a commit to ndeloof/go-sdk that referenced this pull request Nov 6, 2025
* main:
  feat(wait): add human-readable String() methods to all wait strategies (docker#119)
  feat(image): display formatted pull progress on Windows terminals (docker#118)
  chore(release): add Go proxy refresh automation (docker#117)
  chore(release): bump module versions
  chore(release): prevent for pushing to personal forks (docker#115)
  chore(release): add pre-release checks to make the release process more consistent (docker#114)
  chore(volume): return pointer in FindByID (docker#105)
  fix(container): proper error message on empty container names (docker#113)
  fix(container): add to nil modifiers (docker#112)
  feat(container): add new functional options to add container config, hostConfig and endpointSettings (docker#111)
  feat(container): configure pull handler at container creation (docker#110)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant