Skip to content

Commit ce96447

Browse files
authored
chore: bump minimum version to 1.23 (go-task#2059)
* chore: bump minimum version to 1.23 * fix: version package for 1.24 * feat: update golangci-lint version
1 parent e7a6de6 commit ce96447

File tree

6 files changed

+9
-7
lines changed

6 files changed

+9
-7
lines changed

.github/workflows/lint.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ jobs:
1313
name: Lint
1414
strategy:
1515
matrix:
16-
go-version: [1.22.x, 1.23.x]
16+
go-version: [1.23.x, 1.24.x]
1717
runs-on: ubuntu-latest
1818
steps:
1919
- uses: actions/setup-go@v5
@@ -25,7 +25,7 @@ jobs:
2525
- name: golangci-lint
2626
uses: golangci/golangci-lint-action@v6
2727
with:
28-
version: v1.60.1
28+
version: v1.64.2
2929

3030
lint-jsonschema:
3131
runs-on: ubuntu-latest

.github/workflows/release.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ jobs:
1515
- name: Set up Go
1616
uses: actions/setup-go@v5
1717
with:
18-
go-version: 1.22.x
18+
go-version: 1.23.x
1919

2020
- name: Run GoReleaser
2121
uses: goreleaser/goreleaser-action@v6

.github/workflows/test.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ jobs:
1313
name: Test
1414
strategy:
1515
matrix:
16-
go-version: [1.22.x, 1.23.x]
16+
go-version: [1.23.x, 1.24.x]
1717
platform: [ubuntu-latest, macos-latest, windows-latest]
1818
runs-on: ${{matrix.platform}}
1919
steps:

.golangci.yml

+3-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ linters:
1212
- misspell
1313
- noctx
1414
- paralleltest
15-
- tenv
15+
- usetesting
1616
- thelper
1717
- tparallel
1818

@@ -29,6 +29,8 @@ linters-settings:
2929
desc: "Use github.com/go-task/task/v3/errors instead"
3030
goimports:
3131
local-prefixes: github.com/go-task
32+
gofumpt:
33+
module-path: github.com/go-task/task/v3
3234
gofmt:
3335
rewrite-rules:
3436
- pattern: 'interface{}'

go.mod

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
module github.com/go-task/task/v3
22

3-
go 1.22.0
3+
go 1.23.0
44

55
require (
66
github.com/Ladicle/tabwriter v1.0.0

internal/version/version.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ var (
1212

1313
func init() {
1414
info, ok := debug.ReadBuildInfo()
15-
if !ok || info.Main.Version == "" {
15+
if !ok || info.Main.Version == "(devel)" || info.Main.Version == "" {
1616
version = "unknown"
1717
} else {
1818
if version == "" {

0 commit comments

Comments
 (0)