Skip to content

Commit

Permalink
Merge pull request #63 from datawire/aosorio/go120
Browse files Browse the repository at this point in the history
Update go builder to support go 1.20
  • Loading branch information
aosoriodw authored Jan 5, 2024
2 parents d1d8451 + fbe6609 commit ec921e4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions build-aux/docker/go_builder.dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# Go dependency scanner
########################################
ARG GO_IMAGE="base-image-unknown"
FROM golang:1.19-alpine3.15 as builder
FROM golang:1.20.12-alpine3.19 as builder

ENV GOCACHE=/root/.cache/go-build
RUN mkdir -p "${GOCACHE}"
Expand Down Expand Up @@ -47,7 +47,7 @@ RUN --mount=type=cache,target=/var/cache/apk,sharing=locked \
jq

WORKDIR /data
RUN set -ex; GO_VERSION=$(go version | sed -E 's/.*go([1-9\.]*).*/\1/') && \
RUN set -ex; GO_VERSION=$(go version | sed -E 's/.*go([0-9\.]*).*/\1/') && \
GO_TAR="go${GO_VERSION}.src.tar.gz" && \
curl -o "${GO_TAR}" --fail -L "https://dl.google.com/go/go${GO_VERSION}.src.tar.gz"

Expand Down

0 comments on commit ec921e4

Please sign in to comment.