diff --git a/.drone.jsonnet b/.drone.jsonnet index e67c3be..1b221eb 100644 --- a/.drone.jsonnet +++ b/.drone.jsonnet @@ -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', ], diff --git a/.drone.yml b/.drone.yml index a70c0f8..cdd3816 100644 --- a/.drone.yml +++ b/.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 @@ -177,7 +177,7 @@ platform: steps: - name: build - image: golang:1.18 + image: golang:1.19 commands: - make build @@ -249,7 +249,7 @@ platform: steps: - name: build - image: golang:1.18 + image: golang:1.19 commands: - make build @@ -453,6 +453,6 @@ depends_on: --- kind: signature -hmac: 0993212e8705f0b62ef786e565a039435a280e03e71ac96b83b8c5b088aeacca +hmac: c6bc4fac170e14b5315506b6f5dbe79f8030a53272cf6ecf0d837d4bd830e864 ... diff --git a/Makefile b/Makefile index 05a33b2..8876b8e 100644 --- a/Makefile +++ b/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 diff --git a/cmd/drone-yaml/main.go b/cmd/drone-yaml/main.go index b0e3dcb..c916df1 100644 --- a/cmd/drone-yaml/main.go +++ b/cmd/drone-yaml/main.go @@ -6,7 +6,6 @@ package main import ( "bytes" "io" - "io/ioutil" "os" "github.com/drone/drone-yaml/yaml" @@ -46,7 +45,7 @@ func runFormat() error { pretty.Print(b, m) if *formatSave { - return ioutil.WriteFile(f.Name(), b.Bytes(), 0o644) + return os.WriteFile(f.Name(), b.Bytes(), 0o644) } _, err = io.Copy(os.Stderr, b) return err diff --git a/go.mod b/go.mod index b8d6212..2bbcaf1 100644 --- a/go.mod +++ b/go.mod @@ -1,6 +1,6 @@ module github.com/drone/drone-yaml -go 1.18 +go 1.19 require ( github.com/bmatcuk/doublestar/v4 v4.2.0