Update delve version to be compatible with Go 1.19 (#7793)

In order to use the `production/docker` with an interactive debugger, we
need to upgrade the Delve tool to a version that works with the version
of Go which Loki uses: 1.19
pull/7796/head
Danny Kopping 3 years ago committed by GitHub
parent 71b21c924e
commit d0bbeffbb2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 3
      cmd/loki/Dockerfile.debug
  2. 2
      loki-build-image/Dockerfile

@ -1,8 +1,7 @@
# Directories in this file are referenced from the root of the project not this folder # Directories in this file are referenced from the root of the project not this folder
# This file is intended to be called from the root like so: # This file is intended to be called from the root like so:
# docker build -t grafana/loki -f cmd/loki/Dockerfile.debug . # docker build -t grafana/loki -f cmd/loki/Dockerfile.debug .
FROM grafana/loki-build-image:0.24.2 as build
FROM grafana/loki-build-image as build
ARG GOARCH="amd64" ARG GOARCH="amd64"
COPY . /src/loki COPY . /src/loki
WORKDIR /src/loki WORKDIR /src/loki

@ -51,7 +51,7 @@ FROM golang:1.19.2 as faillint
RUN GO111MODULE=on go install github.com/fatih/faillint@v1.10.0 RUN GO111MODULE=on go install github.com/fatih/faillint@v1.10.0
FROM golang:1.19.2 as delve FROM golang:1.19.2 as delve
RUN GO111MODULE=on go install github.com/go-delve/delve/cmd/dlv@v1.7.3 RUN GO111MODULE=on go install github.com/go-delve/delve/cmd/dlv@latest
# Install ghr used to push binaries and template the release # Install ghr used to push binaries and template the release
# This collides with the version of go tools used in the base image, thus we install it in its own image and copy it over. # This collides with the version of go tools used in the base image, thus we install it in its own image and copy it over.

Loading…
Cancel
Save