diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 0026fed..7ecf9b5 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 21de61a..9feb601 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/README.md b/README.md index 2c5b6cd..32fe1ab 100644 --- a/README.md +++ b/README.md @@ -124,6 +124,7 @@ This course is designed with a lot of details, so that everyone, even with very - Lecture #71: [Grant AWS EKS cluster access to Postgres and Redis using security group](https://www.youtube.com/watch?v=pPXYu6QQGE8&list=PLy_6D98if3ULEtXtNSY_2qN21VCKgoQAE) - Lecture #72: [Deploy gRPC + HTTP server to AWS EKS cluster](https://www.youtube.com/watch?v=Pd7aeh014nU&list=PLy_6D98if3ULEtXtNSY_2qN21VCKgoQAE) - Lecture #73: [Don't lose money on AWS](https://www.youtube.com/watch?v=VEf7IpUn6BQ&list=PLy_6D98if3ULEtXtNSY_2qN21VCKgoQAE) +- Lecture #74: [Go 1.22 fixed the most common for-loop trap](https://www.youtube.com/watch?v=rIHO9TqJtQQ&list=PLy_6D98if3ULEtXtNSY_2qN21VCKgoQAE) ## Simple bank service diff --git a/go.mod b/go.mod index f98d757..495eedc 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