From 66c6409035b2361aff53f1e1c609a4095df6700e Mon Sep 17 00:00:00 2001 From: Murilo Nascimento Date: Sun, 6 Apr 2025 13:43:14 -0300 Subject: [PATCH] fix: fixes Air and Delve installation for compatibility with Go 1.23 --- 06-building-container-images/api-golang/Dockerfile.8 | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/06-building-container-images/api-golang/Dockerfile.8 b/06-building-container-images/api-golang/Dockerfile.8 index d2b3d2c4..c9f1f9b5 100644 --- a/06-building-container-images/api-golang/Dockerfile.8 +++ b/06-building-container-images/api-golang/Dockerfile.8 @@ -1,7 +1,7 @@ # Pin specific version for stability # Use separate stage for building image # Use debian for easier build utilities -FROM golang:1.19-bullseye AS build-base +FROM golang:1.23-bullseye AS build-base WORKDIR /app @@ -16,8 +16,8 @@ RUN --mount=type=cache,target=/go/pkg/mod \ FROM build-base AS dev # Install air for hot reload & delve for debugging -RUN go install github.com/cosmtrek/air@latest && \ - go install github.com/go-delve/delve/cmd/dlv@latest +RUN go install github.com/air-verse/air@v1.61.7 && \ + go install github.com/go-delve/delve/cmd/dlv@v1.21.0 COPY . .