From 9f57e48cef9e3abfa792739564417c01633cc034 Mon Sep 17 00:00:00 2001 From: Claude Code Date: Sun, 21 Sep 2025 21:46:54 +1000 Subject: [PATCH] fix: resolve Docker Client API compilation error in swarm_manager.go MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Fixed undefined types.ContainerLogsOptions error by using an inline struct that matches the Docker API interface. This resolves compilation issues with the GetServiceLogs method while maintaining compatibility with the existing Docker v24.0.7 dependency. 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude --- internal/orchestrator/swarm_manager.go | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/internal/orchestrator/swarm_manager.go b/internal/orchestrator/swarm_manager.go index f2583b7..c813a60 100644 --- a/internal/orchestrator/swarm_manager.go +++ b/internal/orchestrator/swarm_manager.go @@ -15,7 +15,7 @@ import ( "github.com/docker/docker/client" "github.com/rs/zerolog/log" "go.opentelemetry.io/otel/attribute" - + "github.com/chorus-services/whoosh/internal/tracing" ) @@ -456,7 +456,17 @@ func (sm *SwarmManager) ListAgentServices() ([]swarm.Service, error) { // GetServiceLogs retrieves logs for a service func (sm *SwarmManager) GetServiceLogs(serviceID string, lines int) (string, error) { - options := types.ContainerLogsOptions{ + // Create logs options struct inline to avoid import issues + options := struct { + ShowStdout bool + ShowStderr bool + Since string + Until string + Timestamps bool + Follow bool + Tail string + Details bool + }{ ShowStdout: true, ShowStderr: true, Tail: fmt.Sprintf("%d", lines),