chore: fix CI issues (#257)

* chore: fix CI issues
* chore: fix golangci-lint version issue

---------

Signed-off-by: Jeroen Simonetti <jeroen@simonetti.nl>
This commit is contained in:
Jeroen Simonetti 2025-04-15 10:21:45 +02:00 committed by GitHub
parent cff2178760
commit 4f94b95172
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
5 changed files with 38 additions and 21 deletions

View File

@ -5,7 +5,7 @@ jobs:
name: Test MacOS
strategy:
matrix:
go-version: [1.22.x, 1.23.x]
go-version: [1.23.x, 1.24.x]
platform: [macos-latest]
runs-on: ${{ matrix.platform }}
steps:
@ -33,7 +33,7 @@ jobs:
name: Test Linux Integration
strategy:
matrix:
go-version: [1.22.x, 1.23.x]
go-version: [1.23.x, 1.24.x]
platform: [ubuntu-latest]
runs-on: ${{ matrix.platform }}
steps:
@ -61,7 +61,7 @@ jobs:
name: Check for vulnerabilities
strategy:
matrix:
go-version: [1.22.x, 1.23.x]
go-version: [1.23.x, 1.24.x]
platform: [ubuntu-latest]
runs-on: ${{ matrix.platform }}
steps:

View File

@ -24,4 +24,4 @@ jobs:
- name: Lint
uses: golangci/golangci-lint-action@1481404843c368bc19ca9406f87d6e0fc97bdcfd # v7.0.0
with:
version: v1.54.2
version: v2.0

View File

@ -1,18 +1,34 @@
---
version: "2"
linters:
enable:
- gofmt
- misspell
- revive
linters-settings:
misspell:
ignore-words:
# Incorrect spelling used in CacheInfo struct.
- Prefered
revive:
rules:
# https://github.com/mgechev/revive/blob/master/RULES_DESCRIPTIONS.md#unused-parameter
- name: unused-parameter
severity: warning
disabled: true
settings:
misspell:
ignore-rules:
- Prefered
revive:
rules:
- name: unused-parameter
severity: warning
disabled: true
exclusions:
generated: lax
presets:
- comments
- common-false-positives
- legacy
- std-error-handling
paths:
- third_party$
- builtin$
- examples$
formatters:
enable:
- gofmt
exclusions:
generated: lax
paths:
- third_party$
- builtin$
- examples$

5
go.mod
View File

@ -1,7 +1,8 @@
module github.com/jsimonetti/rtnetlink/v2
go 1.20
toolchain go1.24.1
go 1.23.0
toolchain go1.23.8
require (
github.com/cilium/ebpf v0.17.3

View File

@ -166,7 +166,7 @@ func TestLinkMessageUnmarshalBinary(t *testing.T) {
var val_uint8_1 uint8 = 1
var val_uint32_1 uint32 = 1
var val_string_3c string = "rtl"
var val_string_3c = "rtl"
tests := []struct {
name string