From 90a564890766d2c00d9c44553cb076838808a67e Mon Sep 17 00:00:00 2001 From: Quang Pham Date: Sat, 30 Mar 2024 10:38:17 +0100 Subject: [PATCH] update go v1.22 --- .github/workflows/test.yml | 2 +- Dockerfile | 4 ++-- go.mod | 4 ++-- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 0026fedd..7ecf9b5f 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -32,7 +32,7 @@ jobs: - name: Set up Go 1.x uses: actions/setup-go@v2 with: - go-version: ^1.21 + go-version: ^1.22 id: go - name: Check out code into the Go module directory diff --git a/Dockerfile b/Dockerfile index 21de61a4..9feb601e 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,11 +1,11 @@ # Build stage -FROM golang:1.21-alpine3.18 AS builder +FROM golang:1.22-alpine3.19 AS builder WORKDIR /app COPY . . RUN go build -o main main.go # Run stage -FROM alpine:3.18 +FROM alpine:3.19 WORKDIR /app COPY --from=builder /app/main . COPY app.env . diff --git a/go.mod b/go.mod index f98d757c..495eedc3 100644 --- a/go.mod +++ b/go.mod @@ -1,6 +1,6 @@ module github.com/techschool/simplebank -go 1.21 +go 1.22 require ( github.com/aead/chacha20poly1305 v0.0.0-20201124145622-1a5aba2a8b29 @@ -21,6 +21,7 @@ require ( github.com/spf13/viper v1.10.1 github.com/stretchr/testify v1.8.1 golang.org/x/crypto v0.6.0 + golang.org/x/sync v0.1.0 google.golang.org/genproto v0.0.0-20220317150908-0efb43f6373e google.golang.org/grpc v1.45.0 google.golang.org/protobuf v1.28.1 @@ -64,7 +65,6 @@ require ( github.com/ugorji/go/codec v1.2.7 // indirect go.uber.org/atomic v1.6.0 // indirect golang.org/x/net v0.6.0 // indirect - golang.org/x/sync v0.1.0 // indirect golang.org/x/sys v0.5.0 // indirect golang.org/x/text v0.7.0 // indirect golang.org/x/time v0.2.0 // indirect