Skip to content

Commit 6f7d80d

Browse files
authored
Merge pull request #37 (deps)
feat(build): drop Go 1.21 support
2 parents 529ce25 + a072900 commit 6f7d80d

File tree

6 files changed

+69
-6
lines changed

6 files changed

+69
-6
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

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

Makefile

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

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

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

go.mod

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

3-
go 1.21
3+
go 1.22
44

55
require github.com/go-jose/go-jose/v4 v4.0.4

pkg/respond/go.mod

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

3-
go 1.21
3+
go 1.22
44

55
require (
66
darvaza.org/acmefy v0.4.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
"groupName": "Darvaza Projects",

0 commit comments

Comments
 (0)