[release-1.3] chore(CI): add golangci linter rules
backport of https://github.com/etcd-io/bbolt/pull/993
cc @ahrtr @ivanvc
repalces https://github.com/etcd-io/bbolt/pull/995
[APPROVALNOTIFIER] This PR is NOT APPROVED
This pull-request has been approved by: Elbehery
The full list of commands accepted by this bot can be found here.
Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment
@Elbehery, can you update golangci-lint to use version v2.4.0? And let's see if the Windows error persists.
@Elbehery, can you update
golangci-lintto use versionv2.4.0? And let's see if the Windows error persists.
i think we need to install v2.4.0 in a step before using it
lets see
golangci-lint run ./...
0 issues.
golangci-lint run ./... 0 issues.
golangci-lint version
golangci-lint has version 2.4.0 built with go1.25.0 from 43d03392 on 2025-08-13T23:36:29Z
@ivanvc gh does not use v2.4.0 yet :/
Ah, 2.4.0 uses Go 1.25. We need a previous version (2.3.1). But Windows is still failing. I'll try to set up a Windows machine to replicate this locally.