refactor(config): replace hardcoded "docker" literals with DefaultContainerRuntime constant - #10475
Conversation
…_env.go wrapper functions
There was a problem hiding this comment.
Pull request overview
Reuses the canonical container-runtime default in environment validation, resolving #10446 without behavior changes.
Changes:
- Replaces two hardcoded
"docker"values withDefaultContainerRuntime.
Show a summary per file
| File | Description |
|---|---|
internal/config/validation_env.go |
Uses the shared default-runtime constant in validation wrappers. |
Review details
Tip
Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
- Files reviewed: 1/1 changed files
- Comments generated: 0
- Review effort level: Balanced
🔒 mcpg Read-Only Stress — default AWFSurface coverage: MCP tool calls + proxied CLI (REST) + GraphQL mutations
Overall: PASS
References: §30664008041
|
🔒 mcpg Read-Only Stress — gVisorSurface coverage: MCP tool calls + proxied CLI (REST) + GraphQL mutations
Overall: PASS
References: §30664008034
|
🔒 mcpg Read-Only Stress — docker-sbxSurface coverage: MCP tool calls + proxied CLI (REST) + GraphQL mutations
Overall: PASS Notes:
References: §30664007938
|
The two default-runtime wrapper functions in
validation_env.goeach hardcoded"docker", duplicating a magic string that already had a canonical constant (DefaultContainerRuntime) inconfig_core.go.Changes
internal/config/validation_env.go: Replace"docker"literals inValidateExecutionEnvironmentandValidateContainerizedEnvironmentwith the existingDefaultContainerRuntimeconstant.DefaultContainerRuntime = "docker"was already defined inconfig_core.go; no new constant is introduced.