From e2c8d550bb704bb4170f731f75a4d47ff96b890a Mon Sep 17 00:00:00 2001 From: Daniel Pohl Date: Wed, 24 Jan 2024 11:16:35 +0100 Subject: [PATCH 1/2] chore: bump go version to 1.21.6 --- build-image-src/Dockerfile-go1x | 2 +- tests/apps/go1.x/hello-world/go.mod | 4 ++-- tests/apps/go1.x/hello-world/go.sum | 8 ++++++-- 3 files changed, 9 insertions(+), 5 deletions(-) diff --git a/build-image-src/Dockerfile-go1x b/build-image-src/Dockerfile-go1x index 7546c07..d0a7cff 100644 --- a/build-image-src/Dockerfile-go1x +++ b/build-image-src/Dockerfile-go1x @@ -25,7 +25,7 @@ RUN yum groupinstall -y development && \ && yum clean all # Install Go -RUN curl -L https://go.dev/dl/go1.20.linux-amd64.tar.gz | tar -zx -C /usr/local +RUN curl -L https://go.dev/dl/go1.21.6.linux-amd64.tar.gz | tar -zx -C /usr/local ENV PATH=$PATH:/usr/local/go/bin:/root/go/bin # Set GOPROXY envvar to avoid using the default proxy.golang.org proxy ENV GOPROXY=direct diff --git a/tests/apps/go1.x/hello-world/go.mod b/tests/apps/go1.x/hello-world/go.mod index 032516a..a729d68 100644 --- a/tests/apps/go1.x/hello-world/go.mod +++ b/tests/apps/go1.x/hello-world/go.mod @@ -1,5 +1,5 @@ -require github.com/aws/aws-lambda-go v1.36.1 +require github.com/aws/aws-lambda-go v1.45.0 module hello-world -go 1.20 +go 1.21.6 diff --git a/tests/apps/go1.x/hello-world/go.sum b/tests/apps/go1.x/hello-world/go.sum index 15b539f..2303f92 100644 --- a/tests/apps/go1.x/hello-world/go.sum +++ b/tests/apps/go1.x/hello-world/go.sum @@ -1,6 +1,10 @@ -github.com/aws/aws-lambda-go v1.36.1 h1:CJxGkL9uKszIASRDxzcOcLX6juzTLoTKtCIgUGcTjTU= -github.com/aws/aws-lambda-go v1.36.1/go.mod h1:jwFe2KmMsHmffA1X2R09hH6lFzJQxzI8qK17ewzbQMM= +github.com/aws/aws-lambda-go v1.45.0 h1:3xS35Dlc8ffmcwfcKTyqJGiMuL0UDvkQaVUrI5yHycI= +github.com/aws/aws-lambda-go v1.45.0/go.mod h1:dpMpZgvWx5vuQJfBt0zqBha60q7Dd7RfgJv23DymV8A= github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c= +github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZbAQM= +github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4= github.com/stretchr/testify v1.7.2 h1:4jaiDzPyXQvSd7D0EjG45355tLlV3VOECpq10pLC+8s= +github.com/stretchr/testify v1.7.2/go.mod h1:R6va5+xMeoiuVRoj+gSkQ7d3FALtqAAGI1FQKckRals= gopkg.in/yaml.v3 v3.0.1 h1:fxVm/GzAzEWqLHuvctI91KS9hhNmmWOoWu0XTYJS7CA= +gopkg.in/yaml.v3 v3.0.1/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM= From 6ac9c36664717980c94d61d3cbd206bf1c65048c Mon Sep 17 00:00:00 2001 From: Rehlein <7338819+rehleinBo@users.noreply.github.com> Date: Wed, 31 Jan 2024 06:59:45 +0100 Subject: [PATCH 2/2] fix: PR suggestions Co-authored-by: Wing Fung Lau <4760060+hawflau@users.noreply.github.com> --- build-image-src/Dockerfile-go1x | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/build-image-src/Dockerfile-go1x b/build-image-src/Dockerfile-go1x index d0a7cff..797edaa 100644 --- a/build-image-src/Dockerfile-go1x +++ b/build-image-src/Dockerfile-go1x @@ -25,7 +25,7 @@ RUN yum groupinstall -y development && \ && yum clean all # Install Go -RUN curl -L https://go.dev/dl/go1.21.6.linux-amd64.tar.gz | tar -zx -C /usr/local +RUN curl -L https://go.dev/dl/$(curl -L "https://go.dev/VERSION/?m=text" | grep go1.).linux-amd64.tar.gz | tar -zx -C /usr/local ENV PATH=$PATH:/usr/local/go/bin:/root/go/bin # Set GOPROXY envvar to avoid using the default proxy.golang.org proxy ENV GOPROXY=direct