Skip to content

Commit

Permalink
chore: update to go 1.17
Browse files Browse the repository at this point in the history
  • Loading branch information
mlveggo committed Dec 6, 2021
1 parent 64237c0 commit 8ed8c14
Show file tree
Hide file tree
Showing 7 changed files with 23 additions and 6 deletions.
3 changes: 3 additions & 0 deletions .golangci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,3 +19,6 @@ linters:
- wrapcheck # don't enforce error wrapping
- exhaustivestruct # don't require exhaustive structs
- durationcheck # has false positives
- scopelint # deprecated
- golint # deprecated
- maligned # deprecated
8 changes: 7 additions & 1 deletion go.mod
Original file line number Diff line number Diff line change
@@ -1,8 +1,14 @@
module go.einride.tech/vlp16

go 1.14
go 1.17

require (
golang.org/x/net v0.0.0-20201224014010-6772e930b67b
gotest.tools/v3 v3.0.3
)

require (
github.com/google/go-cmp v0.4.0 // indirect
github.com/pkg/errors v0.8.1 // indirect
golang.org/x/sys v0.0.0-20201119102817-f84b799fce68 // indirect
)
5 changes: 4 additions & 1 deletion packetlistener.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,10 @@ func ListenUDP(ctx context.Context, addr string, listenOpts ...ListenOption) (_
if err != nil {
return nil, err
}
udpConn := packetConn.(*net.UDPConn)
udpConn, ok := packetConn.(*net.UDPConn)
if !ok {
return nil, fmt.Errorf("listenudp couldn't convert type to udpconn")
}
if err := udpConn.SetReadBuffer(opts.bufferSizeBytes); err != nil {
return nil, err
}
Expand Down
2 changes: 1 addition & 1 deletion sensor.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import (
)

const (
// CloumnsPerPacket is the number of columns in point cloud matrix.
// ColumnsPerPacket is the number of columns in point cloud matrix.
ColumnsPerPacket = BlocksPerPacket * 2
// RowsPerColumnSingleReturn is the number of rows in point cloud in single return mode.
RowsPerColumnSingleReturn = 16
Expand Down
2 changes: 1 addition & 1 deletion tools/golangci-lint/rules.mk
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
golangci_lint_cwd := $(abspath $(dir $(lastword $(MAKEFILE_LIST))))
golangci_lint_version := 1.37.0
golangci_lint_version := 1.42.1
golangci_lint := $(golangci_lint_cwd)/$(golangci_lint_version)/golangci-lint

ifeq ($(shell uname),Linux)
Expand Down
2 changes: 1 addition & 1 deletion tools/goreview/rules.mk
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
goreview_cwd := $(abspath $(dir $(lastword $(MAKEFILE_LIST))))
goreview_version := 0.16.0
goreview_version := 0.18.0
goreview := $(goreview_cwd)/$(goreview_version)/goreview

goreview_archive_url := https://github.com/einride/goreview/releases/download/v$(goreview_version)/goreview_$(goreview_version)_$(shell uname)_$(shell uname -m).tar.gz
Expand Down
7 changes: 6 additions & 1 deletion tools/stringer/go.mod
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
module tools/stringer

go 1.13
go 1.17

require golang.org/x/tools v0.0.0-20201208062317-e652b2f42cc7

require (
golang.org/x/mod v0.3.0 // indirect
golang.org/x/xerrors v0.0.0-20200804184101-5ec99f83aff1 // indirect
)

0 comments on commit 8ed8c14

Please sign in to comment.