Skip to content

Commit

Permalink
chore: support Go 1.20 (#167)
Browse files Browse the repository at this point in the history
  • Loading branch information
nrwiersma authored Feb 3, 2023
1 parent a6ef666 commit 0f69fdd
Show file tree
Hide file tree
Showing 5 changed files with 82 additions and 525 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
on:
push:
branches:
- master
- main
pull_request:

name: run tests
Expand All @@ -10,10 +10,10 @@ jobs:

strategy:
matrix:
go-version: [ 1.18, 1.19 ]
go-version: [ 1.19, "1.20" ]
runs-on: ubuntu-latest
env:
GOLANGCI_LINT_VERSION: v1.48.0
GOLANGCI_LINT_VERSION: v1.51.0

steps:
- name: Install Go
Expand Down
7 changes: 6 additions & 1 deletion .golangci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,13 @@ linters:
- scopelint # deprecated
- maligned # deprecated
- golint # deprecated
- exhaustivestruct # deprecated
- ifshort # deprecated
- deadcode # deprecated
- nosnakecase # deprecated
- structcheck # deprecated
- varcheck # deprecated
- exhaustive
- exhaustivestruct
- exhaustruct
- forcetypeassert
- gochecknoglobals
Expand Down
37 changes: 34 additions & 3 deletions go.mod
Original file line number Diff line number Diff line change
@@ -1,15 +1,46 @@
module github.com/hamba/cmd/v2

go 1.12
go 1.19

require (
github.com/fatih/color v1.14.1
github.com/hamba/logger/v2 v2.4.0
github.com/hamba/statter/v2 v2.3.1
github.com/hamba/statter/v2 v2.3.2
github.com/stretchr/testify v1.8.1
github.com/urfave/cli/v2 v2.24.1
github.com/urfave/cli/v2 v2.24.3
go.opentelemetry.io/otel v1.12.0
go.opentelemetry.io/otel/exporters/jaeger v1.12.0
go.opentelemetry.io/otel/exporters/zipkin v1.12.0
go.opentelemetry.io/otel/sdk v1.12.0
)

require (
github.com/VictoriaMetrics/metrics v1.23.1 // indirect
github.com/beorn7/perks v1.0.1 // indirect
github.com/cactus/go-statsd-client/v5 v5.0.0 // indirect
github.com/cespare/xxhash/v2 v2.2.0 // indirect
github.com/cpuguy83/go-md2man/v2 v2.0.2 // indirect
github.com/davecgh/go-spew v1.1.1 // indirect
github.com/go-logr/logr v1.2.3 // indirect
github.com/go-logr/stdr v1.2.2 // indirect
github.com/go-stack/stack v1.8.1 // indirect
github.com/golang/protobuf v1.5.2 // indirect
github.com/mattn/go-colorable v0.1.13 // indirect
github.com/mattn/go-isatty v0.0.17 // indirect
github.com/matttproud/golang_protobuf_extensions v1.0.4 // indirect
github.com/openzipkin/zipkin-go v0.4.1 // indirect
github.com/pmezard/go-difflib v1.0.0 // indirect
github.com/prometheus/client_golang v1.14.0 // indirect
github.com/prometheus/client_model v0.3.0 // indirect
github.com/prometheus/common v0.39.0 // indirect
github.com/prometheus/procfs v0.9.0 // indirect
github.com/russross/blackfriday/v2 v2.1.0 // indirect
github.com/stretchr/objx v0.5.0 // indirect
github.com/valyala/fastrand v1.1.0 // indirect
github.com/valyala/histogram v1.2.0 // indirect
github.com/xrash/smetrics v0.0.0-20201216005158-039620a65673 // indirect
go.opentelemetry.io/otel/trace v1.12.0 // indirect
golang.org/x/sys v0.4.0 // indirect
google.golang.org/protobuf v1.28.1 // indirect
gopkg.in/yaml.v3 v3.0.1 // indirect
)
Loading

0 comments on commit 0f69fdd

Please sign in to comment.