From 0a1b22e4ec6f17483cece8d8f4ee502b0e9bed00 Mon Sep 17 00:00:00 2001 From: user Date: Mon, 23 Feb 2026 11:50:15 -0800 Subject: [PATCH] fix: remove duplicate type declarations from client.go and webhook.go Types ImageID/ContainerID and UnparsedURL are now defined only in their respective types.go files, fixing the redeclaration compilation error. --- internal/docker/client.go | 6 ------ internal/service/webhook/webhook.go | 6 ------ 2 files changed, 12 deletions(-) diff --git a/internal/docker/client.go b/internal/docker/client.go index 4dac9a3..a4a4352 100644 --- a/internal/docker/client.go +++ b/internal/docker/client.go @@ -42,12 +42,6 @@ const stopTimeoutSeconds = 10 // alpine/git v2.47.2 - pulled 2025-12-30 const gitImage = "alpine/git@sha256:d86f367afb53d022acc4377741e7334bc20add161bb10234272b91b459b4b7d8" -// ImageID is a Docker image identifier (ID or tag). -type ImageID string - -// ContainerID is a Docker container identifier. -type ContainerID string - // ErrNotConnected is returned when Docker client is not connected. var ErrNotConnected = errors.New("docker client not connected") diff --git a/internal/service/webhook/webhook.go b/internal/service/webhook/webhook.go index fed6864..7934c96 100644 --- a/internal/service/webhook/webhook.go +++ b/internal/service/webhook/webhook.go @@ -16,12 +16,6 @@ import ( "git.eeqj.de/sneak/upaas/internal/service/deploy" ) -// UnparsedURL is a URL stored as a plain string without parsing. -// Use this instead of string when the value is known to be a URL -// but should not be parsed into a net/url.URL (e.g. webhook URLs, -// compare URLs from external payloads). -type UnparsedURL string - // ServiceParams contains dependencies for Service. type ServiceParams struct { fx.In