Releases: cilium/linters
Releases · cilium/linters
v0.3.0
Breaking Changes
The timeafter
linter is removed (see #81) as it is no longer relevant with Go versions >= 1.23.
What's Changed
- ci: Bump actions/checkout from 4.2.2 to 5.0.0 by @dependabot[bot] in #75
- ci: Bump actions/setup-go from 5.4.0 to 5.5.0 by @dependabot[bot] in #70
- ci: Bump actions/setup-go from 5.5.0 to 6.0.0 by @dependabot[bot] in #78
- ci: Bump golangci/golangci-lint-action from 7.0.0 to 8.0.0 by @dependabot[bot] in #69
- remove timeafter linter by @rolinh in #81
- vendor: Bump golang.org/x/mod from 0.25.0 to 0.26.0 by @dependabot[bot] in #73
- vendor: Bump golang.org/x/mod from 0.27.0 to 0.28.0 by @dependabot[bot] in #79
- vendor: Bump golang.org/x/tools from 0.32.0 to 0.33.0 by @dependabot[bot] in #68
- vendor: Bump golang.org/x/tools from 0.33.0 to 0.34.0 by @dependabot[bot] in #72
- vendor: Bump golang.org/x/tools from 0.34.0 to 0.36.0 by @dependabot[bot] in #76
- vendor: Bump golang.org/x/tools from 0.36.0 to 0.37.0 by @dependabot[bot] in #80
Full Changelog: v0.2.0...v0.3.0
v0.2.0
What's Changed
- Skip linters early if affected package is not imported by @tklauser in #54
- Update min Go version to v1.23, test for Go v1.24, update golangci-lint to v2 by @rolinh in #67
- ci: Bump actions/setup-go from 5.1.0 to 5.2.0 by @dependabot in #52
- ci: Bump actions/setup-go from 5.2.0 to 5.3.0 by @dependabot in #56
- ci: Bump actions/setup-go from 5.3.0 to 5.4.0 by @dependabot in #64
- ci: Bump golangci/golangci-lint-action from 6.1.1 to 6.2.0 by @dependabot in #55
- ci: Bump golangci/golangci-lint-action from 6.2.0 to 6.3.2 by @dependabot in #59
- ci: Bump golangci/golangci-lint-action from 6.3.2 to 6.5.0 by @dependabot in #60
- vendor: Bump golang.org/x/mod from 0.22.0 to 0.23.0 by @dependabot in #57
- vendor: Bump golang.org/x/tools from 0.26.0 to 0.27.0 by @dependabot in #50
- vendor: Bump golang.org/x/tools from 0.27.0 to 0.28.0 by @dependabot in #51
- vendor: Bump golang.org/x/tools from 0.28.0 to 0.29.0 by @dependabot in #53
- vendor: Bump golang.org/x/tools from 0.29.0 to 0.30.0 by @dependabot in #58
- vendor: Bump golang.org/x/tools from 0.30.0 to 0.32.0 by @dependabot in #66
Full Changelog: v0.1.0...v0.2.0
v0.1.0
timeafter: skip check on Go ≥ 1.23 Go version ≥ 1.23 no longer has the issue of not collecting unstopped Timers and time.After can safely be used in loops. Also see https://go.dev/doc/go1.23#timer-changes and https://cs.opensource.google/go/go/+/refs/tags/go1.23.2:src/time/sleep.go;l=196-201 Thus we can skip the timeafter check on modules with go.mod specifying go1.23 or later. Example run: ``` $ mkdir timeafter && cd timeafter $ cat <<EOF > main.go package main import "time" func main() { for { select { case <-time.After(5 * time.Second): } } } $ cat <<EOF > go.mod module timeafter go 1.22.0 EOF $ linters . /home/tklauser/tmp/timeafter/main.go:8:10: use of time.After in a for loop is prohibited, use inctimer instead $ sed -ie 's/go 1\.22\.0/go 1.23.0/' go.mod $ linters . $ ``` Signed-off-by: Tobias Klauser <[email protected]>