Skip to content

Commit 5b40022

Browse files
committed
feat(build): drop Go 1.21 support
Signed-off-by: Nagy Károly Gábriel <[email protected]>
1 parent ad74b73 commit 5b40022

File tree

5 files changed

+67
-5
lines changed

5 files changed

+67
-5
lines changed

.github/workflows/build.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ jobs:
1212
if: (github.event_name == 'push' || github.event.pull_request.head.repo.full_name != github.repository)
1313
strategy:
1414
matrix:
15-
go: [ '1.21', '1.22', '1.23' ]
15+
go: [ '1.22', '1.23' ]
1616
steps:
1717
- uses: actions/checkout@v4
1818
- uses: actions/setup-go@v5

.golangci.yml

+62
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,62 @@
1+
run:
2+
deadline: 5m
3+
allow-parallel-runners: true
4+
5+
linters-settings:
6+
govet:
7+
enable=fieldalignment: true
8+
revive:
9+
rules:
10+
# The following rules are recommended https://github.com/mgechev/revive#recommended-configuration
11+
- name: blank-imports
12+
- name: context-as-argument
13+
- name: context-keys-type
14+
- name: dot-imports
15+
- name: error-return
16+
- name: error-strings
17+
- name: error-naming
18+
- name: exported
19+
- name: increment-decrement
20+
- name: var-naming
21+
- name: var-declaration
22+
- name: package-comments
23+
- name: range
24+
- name: receiver-naming
25+
- name: time-naming
26+
- name: unexported-return
27+
- name: indent-error-flow
28+
- name: errorf
29+
- name: empty-block
30+
- name: superfluous-else
31+
- name: unused-parameter
32+
- name: unreachable-code
33+
- name: redefines-builtin-id
34+
#
35+
# Rules in addition to the recommended configuration above.
36+
#
37+
- name: bool-literal-in-expr
38+
- name: constant-logical-expr
39+
40+
linters:
41+
disable-all: true
42+
enable:
43+
- copyloopvar
44+
- dupl
45+
- errcheck
46+
- goconst
47+
- gocyclo
48+
- gofmt
49+
- goimports
50+
- gosimple
51+
- govet
52+
- ineffassign
53+
- lll
54+
- misspell
55+
- nakedret
56+
- prealloc
57+
- revive
58+
- staticcheck
59+
- typecheck
60+
- unconvert
61+
- unparam
62+
- unused

Makefile

+2-2
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,8 @@ OUTDIR ?= $(TMPDIR)
1414

1515
# Dynamic version selection based on Go version
1616
# Format: $(TOOLSDIR)/get_version.sh <go_version> <tool_version1> <tool_version2> ..
17-
GOLANGCI_LINT_VERSION ?= $(shell $(TOOLSDIR)/get_version.sh 1.21 v1.59 v1.61)
18-
REVIVE_VERSION ?= $(shell $(TOOLSDIR)/get_version.sh 1.21 v1.4)
17+
GOLANGCI_LINT_VERSION ?= $(shell $(TOOLSDIR)/get_version.sh 1.22 v1.63.4)
18+
REVIVE_VERSION ?= $(shell $(TOOLSDIR)/get_version.sh 1.22 v1.4)
1919

2020
GOLANGCI_LINT_URL ?= github.com/golangci/golangci-lint/cmd/golangci-lint@$(GOLANGCI_LINT_VERSION)
2121
GOLANGCI_LINT ?= $(GO) run $(GOLANGCI_LINT_URL)

go.mod

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
module darvaza.org/middleware
22

3-
go 1.21
3+
go 1.22
44

55
require (
66
darvaza.org/core v0.15.6

renovate.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
"packageRules": [
77
{
88
"matchDatasources": ["golang-version"],
9-
"allowedVersions": "1.21"
9+
"allowedVersions": "1.22"
1010
}
1111
]
1212
}

0 commit comments

Comments
 (0)