mirror of
https://github.com/docker/docker-agent.git
synced 2026-11-06 15:07:58 +00:00
RunOutputConfig.AgentImage previously used omitempty on the *resolved* image (ResolvedAgentImage), which is empty precisely when --agent-image none was passed to skip binary injection. That made an explicit opt-out indistinguishable from a run predating this field. Drop omitempty so the field is always present, with an empty string now unambiguously meaning injection was skipped. Also clarifies that binary injection applies to every eval run, not just --base-image ones, and adds save_test.go coverage for all three --agent-image outcomes.