Skip to content

Commit

Permalink
Upgrade to Go 1.18 + Upgrade dependencies (#697)
Browse files Browse the repository at this point in the history
Before I make a release, might as well upgrade Go
  • Loading branch information
julienduchesne authored Apr 27, 2022
1 parent 1117a38 commit d5d0d3b
Show file tree
Hide file tree
Showing 4 changed files with 60 additions and 42 deletions.
2 changes: 1 addition & 1 deletion .drone/drone.jsonnet
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
local vault = import 'vault.libsonnet';

local golang = 'golang:1.17';
local golang = 'golang:1.18';

local volumes = [{ name: 'gopath', temp: {} }];
local mounts = [{ name: 'gopath', path: '/go' }];
Expand Down
22 changes: 11 additions & 11 deletions .drone/drone.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ name: check
steps:
- commands:
- go mod download
image: golang:1.17
image: golang:1.18
name: download
volumes:
- name: gopath
Expand All @@ -13,7 +13,7 @@ steps:
- make lint
depends_on:
- download
image: golang:1.17
image: golang:1.18
name: lint
volumes:
- name: gopath
Expand All @@ -22,7 +22,7 @@ steps:
- make test
depends_on:
- download
image: golang:1.17
image: golang:1.18
name: test
volumes:
- name: gopath
Expand All @@ -31,7 +31,7 @@ steps:
- make cross
depends_on:
- download
image: golang:1.17
image: golang:1.18
name: build
volumes:
- name: gopath
Expand All @@ -47,14 +47,14 @@ name: release
steps:
- commands:
- git fetch origin --tags
image: golang:1.17
image: golang:1.18
name: fetch-tags
volumes:
- name: gopath
path: /go
- commands:
- make cross
image: golang:1.17
image: golang:1.18
name: cross
volumes:
- name: gopath
Expand Down Expand Up @@ -105,14 +105,14 @@ platform:
steps:
- commands:
- git fetch origin --tags
image: golang:1.17
image: golang:1.18
name: fetch-tags
volumes:
- name: gopath
path: /go
- commands:
- make static
image: golang:1.17
image: golang:1.18
name: static
volumes:
- name: gopath
Expand Down Expand Up @@ -146,14 +146,14 @@ platform:
steps:
- commands:
- git fetch origin --tags
image: golang:1.17
image: golang:1.18
name: fetch-tags
volumes:
- name: gopath
path: /go
- commands:
- make static
image: golang:1.17
image: golang:1.18
name: static
volumes:
- name: gopath
Expand Down Expand Up @@ -221,6 +221,6 @@ kind: secret
name: dockerhub_password
---
kind: signature
hmac: b9fec0540b6d6242fa80c2196bb0664fd312230c4026b19ef6fa6dcc8657a35e
hmac: ff2f11c8d385d1b0f6a4f0d3d1a25193119d8ac8c950dc7492dfb1aed156aa45

...
13 changes: 7 additions & 6 deletions go.mod
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module github.com/grafana/tanka

go 1.17
go 1.18

require (
github.com/Masterminds/semver v1.5.0
Expand All @@ -9,19 +9,19 @@ require (
github.com/fatih/structs v1.1.0
github.com/go-clix/cli v0.2.0
github.com/gobwas/glob v0.2.3
github.com/google/go-cmp v0.5.6
github.com/google/go-cmp v0.5.8
github.com/google/go-jsonnet v0.18.0
github.com/karrick/godirwalk v1.16.1
github.com/pkg/errors v0.9.1
github.com/posener/complete v1.2.3
github.com/spf13/pflag v1.0.5
github.com/stretchr/objx v0.3.0
github.com/stretchr/testify v1.7.0
github.com/thoas/go-funk v0.9.1
golang.org/x/crypto v0.0.0-20210921155107-089bfa567519
github.com/stretchr/testify v1.7.1
github.com/thoas/go-funk v0.9.2
golang.org/x/crypto v0.0.0-20220411220226-7b82a4e95df4
gopkg.in/yaml.v2 v2.4.0
gopkg.in/yaml.v3 v3.0.0-20210107192922-496545a6307b
k8s.io/apimachinery v0.22.2
k8s.io/apimachinery v0.23.6
sigs.k8s.io/yaml v1.3.0
)

Expand All @@ -45,4 +45,5 @@ require (
golang.org/x/sys v0.0.0-20211216021012-1d35b9e2eb4e // indirect
golang.org/x/term v0.0.0-20210927222741-03fcf44c2211 // indirect
k8s.io/klog/v2 v2.40.1 // indirect
k8s.io/utils v0.0.0-20211116205334-6203023598ed // indirect
)
Loading

0 comments on commit d5d0d3b

Please sign in to comment.