diff --git a/.bingo/bingo.mod b/.bingo/bingo.mod index aff7615b..813e8231 100644 --- a/.bingo/bingo.mod +++ b/.bingo/bingo.mod @@ -1,5 +1,5 @@ module _ // Auto generated by https://github.com/bwplotka/bingo. DO NOT EDIT -go 1.22.4 +go 1.23.4 require github.com/bwplotka/bingo v0.2.2 diff --git a/.bingo/embedmd.mod b/.bingo/embedmd.mod index 7f4db4d7..ead1b096 100644 --- a/.bingo/embedmd.mod +++ b/.bingo/embedmd.mod @@ -1,5 +1,5 @@ module _ // Auto generated by https://github.com/bwplotka/bingo. DO NOT EDIT -go 1.22.4 +go 1.23.4 require github.com/campoy/embedmd v1.0.0 diff --git a/.bingo/gotest.mod b/.bingo/gotest.mod index 5b54c5d9..f584fbd6 100644 --- a/.bingo/gotest.mod +++ b/.bingo/gotest.mod @@ -1,5 +1,5 @@ module _ // Auto generated by https://github.com/bwplotka/bingo. DO NOT EDIT -go 1.22.4 +go 1.23.4 require github.com/rakyll/gotest v0.0.4 diff --git a/.bingo/liche.mod b/.bingo/liche.mod index 57531c90..d7eeddee 100644 --- a/.bingo/liche.mod +++ b/.bingo/liche.mod @@ -1,5 +1,5 @@ module _ // Auto generated by https://github.com/bwplotka/bingo. DO NOT EDIT -go 1.22.4 +go 1.23.4 require github.com/raviqqe/liche v0.0.0-20200229003944-f57a5d1c5be4 diff --git a/.drone.yml b/.drone.yml index 06796aa6..88695ff1 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.22.4-alpine3.19 + image: golang:1.23.1-alpine3.19 commands: - apk add --update make git - make drone-cache @@ -41,7 +41,7 @@ steps: - name: test - image: golang:1.22.4-alpine3.19 + image: golang:1.23.1-alpine3.19 commands: - go test -mod=vendor -short -cover -tags=integration ./... environment: @@ -248,7 +248,7 @@ platform: steps: - name: build-push pull: always - image: golang:1.22.4 + image: golang:1.23.1 commands: - 'go build -v -ldflags "-X main.build=${DRONE_BUILD_NUMBER}" -a -o release/linux/amd64/drone-cache' environment: @@ -256,7 +256,7 @@ steps: GO111MODULE: on - name: build-tag pull: always - image: golang:1.22.4 + image: golang:1.23.1 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: @@ -303,7 +303,7 @@ platform: steps: - name: build-push pull: always - image: golang:1.22.4 + image: golang:1.23.1 commands: - 'go build -v -ldflags "-X main.build=${DRONE_BUILD_NUMBER}" -a -o release/linux/arm64/drone-cache' environment: @@ -311,7 +311,7 @@ steps: GO111MODULE: on - name: build-tag pull: always - image: golang:1.22.4 + image: golang:1.23.1 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: @@ -357,7 +357,7 @@ platform: steps: - name: build - image: golang:1.22.4 + image: golang:1.23.1 commands: - echo $env:DRONE_SEMVER_SHORT - go build -o release/windows/amd64/drone-cache.exe @@ -404,7 +404,7 @@ platform: steps: - name: build - image: golang:1.22.4 + image: golang:1.23.1 commands: - echo $env:DRONE_SEMVER_SHORT - go build -o release/windows/amd64/drone-cache.exe @@ -480,7 +480,7 @@ pool: steps: - name: build - image: golang:1.22.4 + image: golang:1.23.1 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/DOCS.md b/DOCS.md index 8a3ae4be..d59f7251 100644 --- a/DOCS.md +++ b/DOCS.md @@ -115,7 +115,7 @@ steps: - 'vendor' - name: build - image: golang:1.22.4-alpine3.19 + image: golang:1.23.1-alpine3.19 pull: true commands: - apk add --update make git @@ -160,7 +160,7 @@ steps: path: /tmp/cache - name: build - image: golang:1.22.4-alpine3.19 + image: golang:1.23.1-alpine3.19 pull: true commands: - apk add --update make git @@ -212,7 +212,7 @@ steps: - 'vendor' - name: build - image: golang:1.22.4-alpine3.19 + image: golang:1.23.1-alpine3.19 pull: true commands: - apk add --update make git @@ -261,7 +261,7 @@ steps: - 'vendor' - name: build - image: golang:1.22.4-alpine3.19 + image: golang:1.23.1-alpine3.19 pull: true commands: - apk add --update make git @@ -300,7 +300,7 @@ steps: debug: true - name: build - image: golang:1.22.4-alpine3.19 + image: golang:1.23.1-alpine3.19 pull: true commands: - apk add --update make git diff --git a/README.md b/README.md index 9396dee2..53f70715 100644 --- a/README.md +++ b/README.md @@ -85,7 +85,7 @@ steps: - 'vendor' - name: build - image: golang:1.22.4-alpine3.19 + image: golang:1.23.1-alpine3.19 pull: true commands: - apk add --update make git diff --git a/docker/Dockerfile.linux.amd64 b/docker/Dockerfile.linux.amd64 index a091dcc8..2a6c058b 100644 --- a/docker/Dockerfile.linux.amd64 +++ b/docker/Dockerfile.linux.amd64 @@ -1,4 +1,4 @@ -FROM golang:1.22.4-alpine3.19 AS builder +FROM golang:1.23.1-alpine3.19 AS builder RUN apk add --update --no-cache ca-certificates tzdata && update-ca-certificates FROM scratch as runner diff --git a/docker/Dockerfile.linux.arm64 b/docker/Dockerfile.linux.arm64 index c01b2835..6fa4753a 100644 --- a/docker/Dockerfile.linux.arm64 +++ b/docker/Dockerfile.linux.arm64 @@ -1,4 +1,4 @@ -FROM golang:1.22.4-alpine3.19 AS builder +FROM golang:1.23.1-alpine3.19 AS builder RUN apk add --update --no-cache ca-certificates tzdata && update-ca-certificates FROM scratch as runner diff --git a/docs/examples/drone.md b/docs/examples/drone.md index 5732c343..e77f8028 100644 --- a/docs/examples/drone.md +++ b/docs/examples/drone.md @@ -27,7 +27,7 @@ steps: - 'vendor' - name: build - image: golang:1.22.4-alpine3.19 + image: golang:1.23.1-alpine3.19 pull: true commands: - apk add --update make git @@ -74,7 +74,7 @@ steps: path: /tmp/cache - name: build - image: golang:1.22.4-alpine3.19 + image: golang:1.23.1-alpine3.19 pull: true commands: - apk add --update make git @@ -127,7 +127,7 @@ steps: - 'vendor' - name: build - image: golang:1.22.4-alpine3.19 + image: golang:1.23.1-alpine3.19 pull: true commands: - apk add --update make git @@ -175,7 +175,7 @@ steps: - 'vendor' - name: build - image: golang:1.22.4-alpine3.19 + image: golang:1.23.1-alpine3.19 pull: true commands: - apk add --update make git @@ -214,7 +214,7 @@ steps: debug: true - name: build - image: golang:1.22.4-alpine3.19 + image: golang:1.23.1-alpine3.19 pull: true commands: - apk add --update make git diff --git a/go.mod b/go.mod index d33a5f49..35ff84a2 100644 --- a/go.mod +++ b/go.mod @@ -47,4 +47,4 @@ require ( gopkg.in/yaml.v2 v2.4.0 // indirect ) -go 1.22.4 +go 1.23.4 diff --git a/key/generator/util.go b/key/generator/util.go index fc95ca6b..a21daa59 100644 --- a/key/generator/util.go +++ b/key/generator/util.go @@ -8,7 +8,7 @@ import ( // readerHasher generic md5 hash generater from io.Reader. func readerHasher(readers ...io.Reader) (string, error) { - // Use go1.22.4 new hashmap functions. + // Use go1.23.1 new hashmap functions. h := md5.New() // #nosec for _, r := range readers {