mirror of
https://github.com/thegeeklab/wp-github-comment.git
synced 2024-11-24 13:00:41 +00:00
chore: switch to go1.19 (#125)
This commit is contained in:
parent
57053dd662
commit
cc4373ddab
@ -8,7 +8,7 @@ local PipelineTest = {
|
||||
steps: [
|
||||
{
|
||||
name: 'deps',
|
||||
image: 'golang:1.18',
|
||||
image: 'golang:1.19',
|
||||
commands: [
|
||||
'make deps',
|
||||
],
|
||||
@ -21,7 +21,7 @@ local PipelineTest = {
|
||||
},
|
||||
{
|
||||
name: 'lint',
|
||||
image: 'golang:1.18',
|
||||
image: 'golang:1.19',
|
||||
commands: [
|
||||
'make lint',
|
||||
],
|
||||
@ -34,7 +34,7 @@ local PipelineTest = {
|
||||
},
|
||||
{
|
||||
name: 'test',
|
||||
image: 'golang:1.18',
|
||||
image: 'golang:1.19',
|
||||
commands: [
|
||||
'make test',
|
||||
],
|
||||
@ -68,7 +68,7 @@ local PipelineBuildBinaries = {
|
||||
steps: [
|
||||
{
|
||||
name: 'build',
|
||||
image: 'techknowlogick/xgo:go-1.18.x',
|
||||
image: 'techknowlogick/xgo:go-1.19.x',
|
||||
commands: [
|
||||
'make release',
|
||||
],
|
||||
@ -133,7 +133,7 @@ local PipelineBuildContainer(arch='amd64') = {
|
||||
steps: [
|
||||
{
|
||||
name: 'build',
|
||||
image: 'golang:1.18',
|
||||
image: 'golang:1.19',
|
||||
commands: [
|
||||
'make build',
|
||||
'ls -l dist/drone-github-comment',
|
||||
|
16
.drone.yml
16
.drone.yml
@ -8,7 +8,7 @@ platform:
|
||||
|
||||
steps:
|
||||
- name: deps
|
||||
image: golang:1.18
|
||||
image: golang:1.19
|
||||
commands:
|
||||
- make deps
|
||||
volumes:
|
||||
@ -16,7 +16,7 @@ steps:
|
||||
path: /go
|
||||
|
||||
- name: lint
|
||||
image: golang:1.18
|
||||
image: golang:1.19
|
||||
commands:
|
||||
- make lint
|
||||
volumes:
|
||||
@ -24,7 +24,7 @@ steps:
|
||||
path: /go
|
||||
|
||||
- name: test
|
||||
image: golang:1.18
|
||||
image: golang:1.19
|
||||
commands:
|
||||
- make test
|
||||
volumes:
|
||||
@ -51,7 +51,7 @@ platform:
|
||||
|
||||
steps:
|
||||
- name: build
|
||||
image: techknowlogick/xgo:go-1.18.x
|
||||
image: techknowlogick/xgo:go-1.19.x
|
||||
commands:
|
||||
- make release
|
||||
|
||||
@ -105,7 +105,7 @@ platform:
|
||||
|
||||
steps:
|
||||
- name: build
|
||||
image: golang:1.18
|
||||
image: golang:1.19
|
||||
commands:
|
||||
- make build
|
||||
- ls -l dist/drone-github-comment
|
||||
@ -178,7 +178,7 @@ platform:
|
||||
|
||||
steps:
|
||||
- name: build
|
||||
image: golang:1.18
|
||||
image: golang:1.19
|
||||
commands:
|
||||
- make build
|
||||
- ls -l dist/drone-github-comment
|
||||
@ -251,7 +251,7 @@ platform:
|
||||
|
||||
steps:
|
||||
- name: build
|
||||
image: golang:1.18
|
||||
image: golang:1.19
|
||||
commands:
|
||||
- make build
|
||||
- ls -l dist/drone-github-comment
|
||||
@ -456,6 +456,6 @@ depends_on:
|
||||
|
||||
---
|
||||
kind: signature
|
||||
hmac: 15bd1332f8cda7acc28d2295da2df3057db147ef918b4cacaba7ac384df3159b
|
||||
hmac: a30d89331412b41e3379c959980093a15b22a8e7f0c7f67bb4003da2c20c9248
|
||||
|
||||
...
|
||||
|
2
Makefile
2
Makefile
@ -19,7 +19,7 @@ GOLANGCI_LINT_PACKAGE ?= github.com/golangci/golangci-lint/cmd/golangci-lint@$(G
|
||||
XGO_PACKAGE ?= src.techknowlogick.com/xgo@latest
|
||||
|
||||
GENERATE ?=
|
||||
XGO_VERSION := go-1.18.x
|
||||
XGO_VERSION := go-1.19.x
|
||||
XGO_TARGETS ?= linux/amd64,linux/arm-6,linux/arm-7,linux/arm64
|
||||
|
||||
TAGS ?= netgo
|
||||
|
2
go.mod
2
go.mod
@ -1,6 +1,6 @@
|
||||
module github.com/thegeeklab/drone-github-comment
|
||||
|
||||
go 1.18
|
||||
go 1.19
|
||||
|
||||
require (
|
||||
github.com/google/go-github/v39 v39.2.0
|
||||
|
@ -1,7 +1,6 @@
|
||||
package plugin
|
||||
|
||||
import (
|
||||
"io/ioutil"
|
||||
"os"
|
||||
)
|
||||
|
||||
@ -16,7 +15,7 @@ func readStringOrFile(input string) (string, bool, error) {
|
||||
} else if err != nil {
|
||||
return "", false, err
|
||||
}
|
||||
result, err := ioutil.ReadFile(input)
|
||||
result, err := os.ReadFile(input)
|
||||
if err != nil {
|
||||
return "", true, err
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user