Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update go Version in all files #123

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .bingo/bingo.mod
Original file line number Diff line number Diff line change
@@ -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
2 changes: 1 addition & 1 deletion .bingo/embedmd.mod
Original file line number Diff line number Diff line change
@@ -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
2 changes: 1 addition & 1 deletion .bingo/gotest.mod
Original file line number Diff line number Diff line change
@@ -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
2 changes: 1 addition & 1 deletion .bingo/liche.mod
Original file line number Diff line number Diff line change
@@ -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
18 changes: 9 additions & 9 deletions .drone.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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:
Expand Down Expand Up @@ -248,15 +248,15 @@ 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:
CGO_ENABLED: 0
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:
Expand Down Expand Up @@ -303,15 +303,15 @@ 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:
CGO_ENABLED: 0
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:
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down
10 changes: 5 additions & 5 deletions DOCS.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion docker/Dockerfile.linux.amd64
Original file line number Diff line number Diff line change
@@ -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
Expand Down
2 changes: 1 addition & 1 deletion docker/Dockerfile.linux.arm64
Original file line number Diff line number Diff line change
@@ -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
Expand Down
10 changes: 5 additions & 5 deletions docs/examples/drone.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -47,4 +47,4 @@ require (
gopkg.in/yaml.v2 v2.4.0 // indirect
)

go 1.22.4
go 1.23.4
2 changes: 1 addition & 1 deletion key/generator/util.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down