Skip to content

deprecate ErrParseRuncVersion - #118

Merged
mxpv merged 1 commit into
containerd:mainfrom
thaJeztah:deprecate_ErrParseRuncVersion
Aug 22, 2026
Merged

deprecate ErrParseRuncVersion#118
mxpv merged 1 commit into
containerd:mainfrom
thaJeztah:deprecate_ErrParseRuncVersion

Conversation

@thaJeztah

Copy link
Copy Markdown
Member

relates to:

This error was added in 6a4f927, but no longer used since e32098a (before v1.0.0).

Deprecate it, in case there's consumers checking for this error. Also remove the error-return from parseVersion, which was never used, and rewrite the test to use a test-table to make it a bit more DRY.

updates 6a4f927
updates e32098a

Copilot AI left a comment

Copy link
Copy Markdown

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 deprecates the exported ErrParseRuncVersion sentinel (kept for potential downstream checks) and simplifies the internal version parsing logic by removing an unused error return, with corresponding test refactoring.

Changes:

  • Mark ErrParseRuncVersion as deprecated.
  • Change parseVersion to return Version only (no error) and update Runc.Version() accordingly.
  • Refactor TestParseVersion into a table-driven test.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.

File Description
runc.go Deprecates ErrParseRuncVersion and simplifies parseVersion/Version() return flow.
runc_test.go Updates tests to table-driven form and matches new parseVersion signature.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Comment thread runc.go Outdated
This error was added in 6a4f927, but no
longer used since e32098a (before v1.0.0).

Deprecate it, in case there's consumers checking for this error. Also remove
the error-return from parseVersion, which was never used, and rewrite the
test to use a test-table to make it a bit more DRY.

updates 6a4f927
updates e32098a

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
@thaJeztah
thaJeztah force-pushed the deprecate_ErrParseRuncVersion branch from 6da3424 to e039ef4 Compare August 22, 2026 15:53
@thaJeztah
thaJeztah requested review from AkihiroSuda and mxpv August 22, 2026 15:53
@mxpv
mxpv merged commit 834598e into containerd:main Aug 22, 2026
4 checks passed
@thaJeztah
thaJeztah deleted the deprecate_ErrParseRuncVersion branch August 22, 2026 18:08
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.

4 participants