Skip to content

Conversation

@xHozey
Copy link
Contributor

@xHozey xHozey commented Feb 6, 2026

What does this PR do?

Adds documentation to ContainerCreate in the Go SDK to clarify that options.Config must not be nil, as passing nil currently causes a panic.

Why is it important?

This helps new users understand the expected invariant and prevents confusion when using ContainerCreate. It documents a real footgun without changing runtime behavior.

Related issues

  • N/A

How to test this PR

  • Docs-only change, no runtime tests required.

Copilot AI review requested due to automatic review settings February 6, 2026 11:22
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 adds documentation to the ContainerCreate function in the Go SDK to clarify that the options.Config parameter must not be nil, as passing a nil value currently causes a panic when the function attempts to access options.Config.Labels.

Changes:

  • Added doc comment to ContainerCreate warning that options.Config must not be nil

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@xHozey xHozey closed this Feb 8, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants