mirror of
https://github.com/jsimonetti/rtnetlink.git
synced 2026-03-28 07:21:07 +01:00
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:
parent
cff2178760
commit
4f94b95172
6
.github/workflows/go-test.yml
vendored
6
.github/workflows/go-test.yml
vendored
@ -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:
|
||||
|
||||
2
.github/workflows/golangci-lint.yml
vendored
2
.github/workflows/golangci-lint.yml
vendored
@ -24,4 +24,4 @@ jobs:
|
||||
- name: Lint
|
||||
uses: golangci/golangci-lint-action@1481404843c368bc19ca9406f87d6e0fc97bdcfd # v7.0.0
|
||||
with:
|
||||
version: v1.54.2
|
||||
version: v2.0
|
||||
|
||||
@ -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
5
go.mod
@ -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
|
||||
|
||||
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user