Skip to content

Support expanded version flag in shims#455

Merged
mxpv merged 1 commit intocontainerd:mainfrom
kate-goldenring:expanded-version-flag
Feb 27, 2026
Merged

Support expanded version flag in shims#455
mxpv merged 1 commit intocontainerd:mainfrom
kate-goldenring:expanded-version-flag

Conversation

@kate-goldenring
Copy link
Contributor

Adds support for fully spelled out version flag in shims. Currently only -v is supported. I'm a maintainer of the Spin shim and some users have found this experience confusing for debugging. For example, in the Spin shim:

$ /usr/local/bin/containerd-shim-spin-v2 -version
thread 'main' panicked at /home/runner/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/containerd-shimkit-0.1.1/src/sandbox/cli.rs:226:38:
called `Result::unwrap()` on an `Err` value: InvalidArgument("flag provided but not defined: -version")
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
Aborted (core dumped)

$ /usr/local/bin/containerd-shim-spin-v2 -v
containerd-shim-spin-v2:
  Runtime: spin
  Version: 0.22.0
  Revision: b22980861884b65

Signed-off-by: Kate Goldenring <kate.goldenring@gmail.com>
@github-actions github-actions bot added the C-shim Containerd shim label Feb 25, 2026
@mxpv mxpv added this pull request to the merge queue Feb 27, 2026
Merged via the queue into containerd:main with commit 47d6fdf Feb 27, 2026
16 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

C-shim Containerd shim

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants