Skip to content

Commit d2d8c82

Browse files
committed
ci: bump golangci-lint to v1.50.1
The `varcheck` linter has been removed as it is unmaintained. Also bump the golangci-lint action to v3.3.1. Use the new `skip-cache` directive to disable caching instead of the more specific options. Remove `only-new-issues: false` given that `false` is the default value. Finally, remove `skip-go-installation` as this is an unknown config option to the linter which gives a warning. Signed-off-by: Robin Hahling <[email protected]>
1 parent adca11f commit d2d8c82

File tree

6 files changed

+57
-60
lines changed

6 files changed

+57
-60
lines changed

.github/workflows/static-checks.yaml

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -18,14 +18,11 @@ jobs:
1818
with:
1919
go-version: '1.18.3'
2020
- name: Run static checks
21-
uses: golangci/golangci-lint-action@v3
21+
uses: golangci/golangci-lint-action@0ad9a0988b3973e851ab0a07adf248ec2e100376
2222
with:
23-
version: v1.47.0
23+
version: v1.50.1
2424
args: --config=.golangci.yml --verbose
25-
only-new-issues: false
26-
skip-go-installation: true
27-
skip-pkg-cache: true
28-
skip-build-cache: true
25+
skip-cache: true
2926
- name: Check gofmt formatting
3027
run: |
3128
go fmt ./...

.golangci.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@ linters:
1717
- revive
1818
- staticcheck
1919
- unused
20-
- varcheck
2120

2221
issues:
2322
exclude-rules:

api/v1/tetragon/codegen/eventchecker/eventchecker.pb.go

Lines changed: 24 additions & 24 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

cmd/tetragon/addr.go

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,9 @@ import (
1010
// with net.Listen.
1111
//
1212
// addresses can be:
13-
// unix://absolute_path for unix sockets
14-
// <host>:<port> for TCP (more specifically, an address that can be passed to net.Listen)
13+
//
14+
// unix://absolute_path for unix sockets
15+
// <host>:<port> for TCP (more specifically, an address that can be passed to net.Listen)
1516
//
1617
// Note that the client (tetra) uses https://github.com/grpc/grpc-go/blob/v1.51.0/clientconn.go#L135
1718
// With the syntax is documented in https://github.com/grpc/grpc/blob/master/doc/naming.md. The

pkg/unixlisten/unixlisten.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,9 @@ import (
1212
// ListenWithRename creates a "unix" listener for the given path and the given mode
1313
//
1414
// Go's net.Listen() performs three system calls at once:
15-
// - socket, where the file descriptor is created
16-
// - bind, where the unix socket file is created
17-
// - listen, where the socket can now accept connections
15+
// - socket, where the file descriptor is created
16+
// - bind, where the unix socket file is created
17+
// - listen, where the socket can now accept connections
1818
//
1919
// Hence, doing a chmod(2) after Listen is racy because a client can connect
2020
// between the listen(2) and the chmod(2) calls. One solution would be to use

0 commit comments

Comments
 (0)