Skip to content

Commit

Permalink
Support go 1.20 (#57)
Browse files Browse the repository at this point in the history
  • Loading branch information
nhatthm committed Feb 6, 2023
1 parent 4b6b61b commit 3aa9282
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/lint.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ on:
pull_request:

env:
GO_VERSION: "1.19.x"
GO_VERSION: 1.20.x

jobs:
lint:
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,15 +8,15 @@ on:

env:
GO111MODULE: "on"
GO_LATEST_VERSION: "1.19.x"
GO_LATEST_VERSION: "1.20.x"

jobs:
test:
strategy:
fail-fast: false
matrix:
os: [ ubuntu-latest, macos-latest ]
go-version: [ 1.17.x, 1.18.x, 1.19.x ]
go-version: [ 1.17.x, 1.18.x, 1.19.x, 1.20.x ]
runs-on: ${{ matrix.os }}
steps:
- name: Install Go
Expand Down
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ MODULE_NAME = grpcmock

VENDOR_DIR = vendor

GOLANGCI_LINT_VERSION ?= v1.50.1
GOLANGCI_LINT_VERSION ?= v1.51.1

GO ?= go
GOLANGCI_LINT ?= $(shell go env GOPATH)/bin/golangci-lint-$(GOLANGCI_LINT_VERSION)
Expand Down
2 changes: 1 addition & 1 deletion reflect/error.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package reflect

var _ error = (*err)(nil)
var _ error = (*err)(nil) //nolint: errcheck // false positive.

const (
// ErrPtrIsNil indicates that the pointer is nil.
Expand Down

0 comments on commit 3aa9282

Please sign in to comment.