update golang to v1.21; set GOEXPERIMENT=loopvar (#1256)

* golang: update to v1.21, and set GOEXPERIMENT=loopvar

* golang: go mod tidy
This commit is contained in:
bnewbold 2023-08-28 19:35:23 -07:00 committed by GitHub
parent 40e030793a
commit 461c1da6de
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
6 changed files with 11 additions and 5 deletions

View file

@ -1,4 +1,4 @@
FROM golang:1.20-bullseye AS build-env
FROM golang:1.21-bullseye AS build-env
WORKDIR /usr/src/social-app
@ -13,6 +13,7 @@ ENV GODEBUG="netdns=go"
ENV GOOS="linux"
ENV GOARCH="amd64"
ENV CGO_ENABLED=1
ENV GOEXPERIMENT="loopvar"
COPY . .