Skip to content

fix(proc): parse --flag=value in container flag extraction - #259

Merged
pranshuparmar merged 1 commit into
pranshuparmar:stagingfrom
CJstate:fix/flag-equals-syntax
Nov 23, 2026
Merged

pranshuparmar merged 1 commit into
pranshuparmar:stagingfrom
CJstate:fix/flag-equals-syntax

Conversation

@CJstate

@CJstate CJstate commented Nov 21, 2026

Copy link
Copy Markdown
Contributor

extractFlagValue only matched the --name value form. Every runtime whose command line it inspects also accepts --name=value (Docker, Podman, minikube --profile=, colima -p=, Apple container --uuid=), so container names, profiles and UUIDs were silently dropped and detection fell back to a generic runtime label.

Fix: match <flag>=<value> as well, in the shared helper so every caller benefits. Added regression tests covering both syntaxes and the empty-value edge case.

All tests pass (go test ./...).

extractFlagValue only accepted '--name value', missing the equally valid '--name=value' form used by Docker, minikube, colima and Apple container runtimes. Container names, profiles and UUIDs were silently dropped from detection.
@CJstate
CJstate force-pushed the fix/flag-equals-syntax branch from bfb334e to 95975aa Compare November 21, 2026 08:01
@pranshuparmar pranshuparmar added this to the 0.3.5 milestone Nov 21, 2026
@pranshuparmar
pranshuparmar changed the base branch from main to staging November 23, 2026 10:09
@pranshuparmar
pranshuparmar merged commit ec89544 into pranshuparmar:staging Nov 23, 2026
33 checks passed
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