From 32612fc71ad63e4fade3eb364c39cf0f6dd8f342 Mon Sep 17 00:00:00 2001 From: Gonzalo Gomez Gracia Date: Tue, 3 Oct 2023 14:07:56 +0200 Subject: [PATCH] Update Go version to 1.21 Signed-off-by: Gonzalo Gomez Gracia --- .github/workflows/main.yml | 2 +- Dockerfile | 2 +- go.mod | 2 +- go.sum | 2 -- 4 files changed, 3 insertions(+), 5 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 15e69a0..8f91cdd 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -27,7 +27,7 @@ jobs: - uses: actions/checkout@v2 - uses: actions/setup-go@v2 with: - go-version: '^1.18.8' # The Go version to download (if necessary) and use. + go-version: '^1.21.1' # The Go version to download (if necessary) and use. - name: Install Build Dependencies run: make get-build-deps - name: Download required modules diff --git a/Dockerfile b/Dockerfile index 9a89ccf..806fcba 100644 --- a/Dockerfile +++ b/Dockerfile @@ -2,7 +2,7 @@ # # docker run --rm -it --net host bitnami/wait-for-port # -FROM golang:1.18-bullseye as build +FROM golang:1.21-bullseye as build RUN apt-get update && apt-get install -y --no-install-recommends \ git make upx \ diff --git a/go.mod b/go.mod index 5ba5f36..8065fc0 100644 --- a/go.mod +++ b/go.mod @@ -1,6 +1,6 @@ module github.com/bitnami/wait-for-port -go 1.18 +go 1.21 require ( github.com/jessevdk/go-flags v1.5.0 diff --git a/go.sum b/go.sum index 5f63f57..4a2429e 100644 --- a/go.sum +++ b/go.sum @@ -13,8 +13,6 @@ github.com/stretchr/testify v1.7.1/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/ github.com/stretchr/testify v1.7.5 h1:s5PTfem8p8EbKQOctVV53k6jCJt3UX4IEJzwh+C324Q= github.com/stretchr/testify v1.7.5/go.mod h1:yNjHg4UonilssWZ8iaSj1OCr/vHnekPRkoO+kdMU+MU= golang.org/x/sys v0.0.0-20210320140829-1e4c9ba3b0c4/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20210510120138-977fb7262007 h1:gG67DSER+11cZvqIMb8S8bt0vZtiN6xWYARwirrOSfE= -golang.org/x/sys v0.0.0-20210510120138-977fb7262007/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.2.0 h1:ljd4t30dBnAvMZaQCevtY0xLLD0A+bRZXbgLMLU1F/A= golang.org/x/sys v0.2.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405 h1:yhCVgyC4o1eVCa2tZl7eS0r+SDo693bJlVdllGtEeKM=