From 5890b8a5e3574304fd4aafc7e608e9ad67a46e6c Mon Sep 17 00:00:00 2001 From: Abhay <59717751+abhay084@users.noreply.github.com> Date: Thu, 14 Sep 2023 16:12:46 +0530 Subject: [PATCH] [fix]: [ci-9254]: go version upgrade to 1.21 (#58) --- .drone.yml | 18 +++++++++--------- go.mod | 2 +- go.sum | 3 +++ 3 files changed, 13 insertions(+), 10 deletions(-) diff --git a/.drone.yml b/.drone.yml index 1085b352..a6e596a5 100644 --- a/.drone.yml +++ b/.drone.yml @@ -32,7 +32,7 @@ steps: - name: build # there is an issue in golang 1.17.7-alpine3.15 -- with make files so using 1.17.3 here # https://gitlab.alpinelinux.org/alpine/aports/-/issues/12396 - image: golang:1.20-alpine3.17 + image: golang:1.21.0-alpine3.18 commands: - apk add --update make git - make drone-cache @@ -48,7 +48,7 @@ steps: # - golangci-lint run --timeout 500s --new-from-rev=HEAD~ - name: test - image: golang:1.20-alpine3.17 + image: golang:1.21.0-alpine3.18 commands: - go test -mod=vendor -short -cover -tags=integration ./... environment: @@ -263,7 +263,7 @@ platform: steps: - name: build-push pull: always - image: golang:1.20 + image: golang:1.21 commands: - 'go build -v -ldflags "-X main.build=${DRONE_BUILD_NUMBER}" -a -o release/linux/amd64/drone-cache' environment: @@ -271,7 +271,7 @@ steps: GO111MODULE: on - name: build-tag pull: always - image: golang:1.20 + image: golang:1.21 commands: - 'go build -v -ldflags "-X main.version=${DRONE_TAG##v} -X main.build=${DRONE_BUILD_NUMBER}" -a -o release/linux/amd64/drone-cache' environment: @@ -318,7 +318,7 @@ platform: steps: - name: build-push pull: always - image: golang:1.20 + image: golang:1.21 commands: - 'go build -v -ldflags "-X main.build=${DRONE_BUILD_NUMBER}" -a -o release/linux/arm64/drone-cache' environment: @@ -326,7 +326,7 @@ steps: GO111MODULE: on - name: build-tag pull: always - image: golang:1.20 + image: golang:1.21 commands: - 'go build -v -ldflags "-X main.version=${DRONE_TAG##v} -X main.build=${DRONE_BUILD_NUMBER}" -a -o release/linux/arm64/drone-cache' environment: @@ -372,7 +372,7 @@ platform: steps: - name: build - image: golang:1.20 + image: golang:1.21 commands: - echo $env:DRONE_SEMVER_SHORT - go build -o release/windows/amd64/drone-cache.exe @@ -419,7 +419,7 @@ platform: steps: - name: build - image: golang:1.20 + image: golang:1.21 commands: - echo $env:DRONE_SEMVER_SHORT - go build -o release/windows/amd64/drone-cache.exe @@ -495,7 +495,7 @@ pool: steps: - name: build - image: golang:1.20 + image: golang:1.21 commands: - GOOS=linux GOARCH=amd64 go build -ldflags "-s -w -X main.version=${DRONE_TAG##v}" -o release/plugin-linux-amd64 - GOOS=linux GOARCH=arm64 go build -ldflags "-s -w -X main.version=${DRONE_TAG##v}" -o release/plugin-linux-arm64 diff --git a/go.mod b/go.mod index 86b35fdf..8fc5e3d0 100644 --- a/go.mod +++ b/go.mod @@ -47,4 +47,4 @@ require ( gopkg.in/yaml.v2 v2.4.0 // indirect ) -go 1.20 +go 1.21 diff --git a/go.sum b/go.sum index c797c7f8..13060072 100644 --- a/go.sum +++ b/go.sum @@ -8,6 +8,7 @@ cloud.google.com/go/compute/metadata v0.2.3/go.mod h1:VAV5nSsACxMJvgaAuX6Pk2Aawl cloud.google.com/go/iam v0.13.0 h1:+CmB+K0J/33d0zSQ9SlFWUeCCEn5XJA0ZMZ3pHE9u8k= cloud.google.com/go/iam v0.13.0/go.mod h1:ljOg+rcNfzZ5d6f1nAUJ8ZIxOaZUVoS14bKCtaLZ/D0= cloud.google.com/go/longrunning v0.4.1 h1:v+yFJOfKC3yZdY6ZUI933pIYdhyhV8S3NpWrXWmg7jM= +cloud.google.com/go/longrunning v0.4.1/go.mod h1:4iWDqhBZ70CvZ6BfETbvam3T8FMvLK+eFj0E6AaRQTo= cloud.google.com/go/storage v1.30.1 h1:uOdMxAs8HExqBlnLtnQyP0YkvbiDpdGShGKtx6U/oNM= cloud.google.com/go/storage v1.30.1/go.mod h1:NfxhC0UJE1aXSx7CIIbCf7y9HKT7BiccwkR7+P7gN8E= github.com/Azure/azure-pipeline-go v0.2.3 h1:7U9HBg1JFK3jHl5qmo4CTZKFTVgMwdFHMVtCdfBE21U= @@ -79,6 +80,7 @@ github.com/google/go-cmp v0.5.5/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/ github.com/google/go-cmp v0.5.9 h1:O2Tfq5qg4qc4AmwVlvv0oLiVAGB7enBSJ2x2DqQFi38= github.com/google/go-cmp v0.5.9/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= github.com/google/martian/v3 v3.3.2 h1:IqNFLAmvJOgVlpdEBiQbDc2EwKW77amAycfTuWKdfvw= +github.com/google/martian/v3 v3.3.2/go.mod h1:oBOf6HBosgwRXnUGWUB05QECsc6uvmMiJ3+6W4l/CUk= github.com/google/uuid v1.1.2/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= github.com/google/uuid v1.2.0/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= github.com/google/uuid v1.3.0 h1:t6JiXgmwXMjEs8VusXIJk2BXHsn+wx8BZdTaoZ5fu7I= @@ -181,6 +183,7 @@ golang.org/x/term v0.0.0-20201126162022-7de9c90e9dd1/go.mod h1:bj7SfCRtBDWHUb9sn golang.org/x/term v0.0.0-20210927222741-03fcf44c2211/go.mod h1:jbD1KX2456YbFQfuXm/mYQcufACuNUgVhRMnK/tPxf8= golang.org/x/term v0.1.0/go.mod h1:jbD1KX2456YbFQfuXm/mYQcufACuNUgVhRMnK/tPxf8= golang.org/x/term v0.6.0 h1:clScbb1cHjoCkyRbWwBEUZ5H/tIFu5TAXIqaZD0Gcjw= +golang.org/x/term v0.6.0/go.mod h1:m6U89DPEgQRMq3DNkDClhWw02AUbt2daBVO4cn4Hv9U= golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= golang.org/x/text v0.3.2/go.mod h1:bEr9sfX3Q8Zfm5fL9x+3itogRgK3+ptLWKqgva+5dAk= golang.org/x/text v0.3.3/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ=