Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(build): drop Go 1.21 support #82

Merged
merged 1 commit into from
Jan 12, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:
if: (github.event_name == 'push' || github.event.pull_request.head.repo.full_name != github.repository)
strategy:
matrix:
go: [ '1.21', '1.22', '1.23' ]
karasz marked this conversation as resolved.
Show resolved Hide resolved
go: [ '1.22', '1.23' ]
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
Expand Down
2 changes: 1 addition & 1 deletion .golangci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,9 +40,9 @@ linters-settings:
linters:
disable-all: true
enable:
- copyloopvar
- dupl
- errcheck
- exportloopref
karasz marked this conversation as resolved.
Show resolved Hide resolved
- goconst
- gocyclo
- gofmt
Expand Down
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@ OUTDIR ?= $(TMPDIR)

# Dynamic version selection based on Go version
# Format: $(TOOLSDIR)/get_version.sh <go_version> <tool_version1> <tool_version2> ..
GOLANGCI_LINT_VERSION ?= $(shell $(TOOLSDIR)/get_version.sh 1.21 v1.59 v1.61)
REVIVE_VERSION ?= $(shell $(TOOLSDIR)/get_version.sh 1.21 v1.4)
GOLANGCI_LINT_VERSION ?= $(shell $(TOOLSDIR)/get_version.sh 1.22 v1.63.4)
karasz marked this conversation as resolved.
Show resolved Hide resolved
REVIVE_VERSION ?= $(shell $(TOOLSDIR)/get_version.sh 1.22 v1.4)
karasz marked this conversation as resolved.
Show resolved Hide resolved

GOLANGCI_LINT_URL ?= github.com/golangci/golangci-lint/cmd/golangci-lint@$(GOLANGCI_LINT_VERSION)
GOLANGCI_LINT ?= $(GO) run $(GOLANGCI_LINT_URL)
Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module darvaza.org/slog

go 1.21
go 1.22
karasz marked this conversation as resolved.
Show resolved Hide resolved

require darvaza.org/core v0.15.6

Expand Down
2 changes: 1 addition & 1 deletion handlers/cblog/go.mod
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module darvaza.org/slog/handlers/cblog

go 1.21
go 1.22
amery marked this conversation as resolved.
Show resolved Hide resolved

replace darvaza.org/slog => ../../

Expand Down
2 changes: 1 addition & 1 deletion handlers/discard/go.mod
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module darvaza.org/slog/handlers/discard

go 1.21
go 1.22
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The Go module version has been updated to '1.22'. Verify compatibility of the 'discard' handler with this Go version.


replace darvaza.org/slog => ../../

Expand Down
2 changes: 1 addition & 1 deletion handlers/filter/go.mod
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module darvaza.org/slog/handlers/filter

go 1.21
go 1.22
karasz marked this conversation as resolved.
Show resolved Hide resolved

replace darvaza.org/slog => ../../

Expand Down
2 changes: 1 addition & 1 deletion handlers/logrus/go.mod
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module darvaza.org/slog/handlers/logrus

go 1.21
go 1.22
karasz marked this conversation as resolved.
Show resolved Hide resolved

replace darvaza.org/slog => ../../

Expand Down
2 changes: 1 addition & 1 deletion handlers/zap/go.mod
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module darvaza.org/slog/handlers/zap

go 1.21
go 1.22
karasz marked this conversation as resolved.
Show resolved Hide resolved

replace darvaza.org/slog => ../../

Expand Down
2 changes: 1 addition & 1 deletion handlers/zerolog/go.mod
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module darvaza.org/slog/handlers/zerolog

go 1.21
go 1.22
karasz marked this conversation as resolved.
Show resolved Hide resolved

replace darvaza.org/slog => ../../

Expand Down
2 changes: 1 addition & 1 deletion renovate.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"packageRules": [
{
"matchDatasources": ["golang-version"],
"allowedVersions": "1.21"
karasz marked this conversation as resolved.
Show resolved Hide resolved
"allowedVersions": "1.22"
},
{
"groupName": "Darvaza Projects",
Expand Down
Loading