chore: bump golangci-lint

This commit is contained in:
Julian Sommer
2026-05-20 10:18:58 +10:00
parent 762381adfd
commit c5e65cae38
3 changed files with 3 additions and 2 deletions
+1 -1
View File
@@ -136,7 +136,7 @@ jobs:
- name: Lint
uses: golangci/golangci-lint-action@v9
with:
version: v2.11.3
version: v2.12.2
working-directory: spinifex
- name: Govulncheck
+1
View File
@@ -93,6 +93,7 @@ linters:
modernize:
disable:
- newexpr # don't replace aws.String() with new() — AWS SDK idiom
- slicesbackward # less readable
- stringsbuilder # don't replace small string concatenations with strings.Builder
perfsprint:
+1 -1
View File
@@ -397,7 +397,7 @@ func (m *DHCPManager) trackAndRenew(lease *dhcp.Lease) {
}
// cancel is stored in tracker.renewStop and fired from forget() or Close().
ctx, cancel := context.WithCancel(m.stopCtx) //nolint:gosec // G118: cancel stored in tracker.renewStop, fired via forget()/Close()
ctx, cancel := context.WithCancel(m.stopCtx)
tracker := &managedLease{
lease: lease,
renewStop: cancel,