From 61b13a4b2bf651002543fa0a3a179ef7d6057dce Mon Sep 17 00:00:00 2001 From: Wikid82 Date: Sat, 22 Nov 2025 00:31:08 -0500 Subject: [PATCH] fix: use GOBIN to force dlv installation path in Dockerfile --- Dockerfile | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/Dockerfile b/Dockerfile index 1dfbfa1e..b48533ad 100644 --- a/Dockerfile +++ b/Dockerfile @@ -46,9 +46,8 @@ RUN apk add --no-cache clang lld RUN xx-apk add --no-cache gcc musl-dev sqlite-dev # Install Delve (cross-compile for target) -# Note: xx-go install puts binaries in /go/bin/TARGETOS_TARGETARCH/dlv if cross-compiling -# or just /go/bin/dlv if native. We need to handle this. -RUN CGO_ENABLED=0 xx-go install github.com/go-delve/delve/cmd/dlv@latest && \ +# Use GOBIN to force installation to /go/bin regardless of architecture +RUN CGO_ENABLED=0 GOBIN=/go/bin xx-go install github.com/go-delve/delve/cmd/dlv@latest && \ xx-verify /go/bin/dlv # Copy Go module files