mirror of
https://github.com/go-task/task.git
synced 2025-07-17 01:43:07 +02:00
chore: bump minimum version to 1.23 (#2059)
* chore: bump minimum version to 1.23 * fix: version package for 1.24 * feat: update golangci-lint version
This commit is contained in:
4
.github/workflows/lint.yml
vendored
4
.github/workflows/lint.yml
vendored
@ -13,7 +13,7 @@ jobs:
|
|||||||
name: Lint
|
name: Lint
|
||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
go-version: [1.22.x, 1.23.x]
|
go-version: [1.23.x, 1.24.x]
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/setup-go@v5
|
- uses: actions/setup-go@v5
|
||||||
@ -25,7 +25,7 @@ jobs:
|
|||||||
- name: golangci-lint
|
- name: golangci-lint
|
||||||
uses: golangci/golangci-lint-action@v6
|
uses: golangci/golangci-lint-action@v6
|
||||||
with:
|
with:
|
||||||
version: v1.60.1
|
version: v1.64.2
|
||||||
|
|
||||||
lint-jsonschema:
|
lint-jsonschema:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
2
.github/workflows/release.yml
vendored
2
.github/workflows/release.yml
vendored
@ -15,7 +15,7 @@ jobs:
|
|||||||
- name: Set up Go
|
- name: Set up Go
|
||||||
uses: actions/setup-go@v5
|
uses: actions/setup-go@v5
|
||||||
with:
|
with:
|
||||||
go-version: 1.22.x
|
go-version: 1.23.x
|
||||||
|
|
||||||
- name: Run GoReleaser
|
- name: Run GoReleaser
|
||||||
uses: goreleaser/goreleaser-action@v6
|
uses: goreleaser/goreleaser-action@v6
|
||||||
|
2
.github/workflows/test.yml
vendored
2
.github/workflows/test.yml
vendored
@ -13,7 +13,7 @@ jobs:
|
|||||||
name: Test
|
name: Test
|
||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
go-version: [1.22.x, 1.23.x]
|
go-version: [1.23.x, 1.24.x]
|
||||||
platform: [ubuntu-latest, macos-latest, windows-latest]
|
platform: [ubuntu-latest, macos-latest, windows-latest]
|
||||||
runs-on: ${{matrix.platform}}
|
runs-on: ${{matrix.platform}}
|
||||||
steps:
|
steps:
|
||||||
|
@ -12,7 +12,7 @@ linters:
|
|||||||
- misspell
|
- misspell
|
||||||
- noctx
|
- noctx
|
||||||
- paralleltest
|
- paralleltest
|
||||||
- tenv
|
- usetesting
|
||||||
- thelper
|
- thelper
|
||||||
- tparallel
|
- tparallel
|
||||||
|
|
||||||
@ -29,6 +29,8 @@ linters-settings:
|
|||||||
desc: "Use github.com/go-task/task/v3/errors instead"
|
desc: "Use github.com/go-task/task/v3/errors instead"
|
||||||
goimports:
|
goimports:
|
||||||
local-prefixes: github.com/go-task
|
local-prefixes: github.com/go-task
|
||||||
|
gofumpt:
|
||||||
|
module-path: github.com/go-task/task/v3
|
||||||
gofmt:
|
gofmt:
|
||||||
rewrite-rules:
|
rewrite-rules:
|
||||||
- pattern: 'interface{}'
|
- pattern: 'interface{}'
|
||||||
|
2
go.mod
2
go.mod
@ -1,6 +1,6 @@
|
|||||||
module github.com/go-task/task/v3
|
module github.com/go-task/task/v3
|
||||||
|
|
||||||
go 1.22.0
|
go 1.23.0
|
||||||
|
|
||||||
require (
|
require (
|
||||||
github.com/Ladicle/tabwriter v1.0.0
|
github.com/Ladicle/tabwriter v1.0.0
|
||||||
|
@ -12,7 +12,7 @@ var (
|
|||||||
|
|
||||||
func init() {
|
func init() {
|
||||||
info, ok := debug.ReadBuildInfo()
|
info, ok := debug.ReadBuildInfo()
|
||||||
if !ok || info.Main.Version == "" {
|
if !ok || info.Main.Version == "(devel)" || info.Main.Version == "" {
|
||||||
version = "unknown"
|
version = "unknown"
|
||||||
} else {
|
} else {
|
||||||
if version == "" {
|
if version == "" {
|
||||||
|
Reference in New Issue
Block a user