go1.23 support (#4836)
Some checks failed
Release a tag / release (push) Has been cancelled
Some checks failed
Release a tag / release (push) Has been cancelled
This commit is contained in:
parent
9eeb891cbc
commit
1147824c61
36
.github/workflows/documentation.yml
vendored
36
.github/workflows/documentation.yml
vendored
@ -11,36 +11,18 @@ jobs:
|
|||||||
name: Build and deploy documentation
|
name: Build and deploy documentation
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
env:
|
env:
|
||||||
GO_VERSION: '1.22'
|
# https://github.com/actions/setup-go#supported-version-syntax
|
||||||
|
# ex:
|
||||||
|
# - 1.18beta1 -> 1.18.0-beta.1
|
||||||
|
# - 1.18rc1 -> 1.18.0-rc.1
|
||||||
|
GO_VERSION: '1.23'
|
||||||
NODE_VERSION: '20.x'
|
NODE_VERSION: '20.x'
|
||||||
CGO_ENABLED: 0
|
CGO_ENABLED: 0
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Check out code
|
- uses: actions/checkout@v4
|
||||||
uses: actions/checkout@v4
|
- uses: actions/setup-go@v5
|
||||||
with:
|
|
||||||
fetch-depth: 0
|
|
||||||
|
|
||||||
- name: Set up Go ${{ env.GO_VERSION }}
|
|
||||||
uses: actions/setup-go@v5
|
|
||||||
with:
|
with:
|
||||||
go-version: ${{ env.GO_VERSION }}
|
go-version: ${{ env.GO_VERSION }}
|
||||||
|
|
||||||
- name: Cache Go modules
|
|
||||||
uses: actions/cache@v4
|
|
||||||
with:
|
|
||||||
# In order:
|
|
||||||
# * Module download cache
|
|
||||||
# * Build cache (Linux)
|
|
||||||
path: |
|
|
||||||
~/go/pkg/mod
|
|
||||||
~/.cache/go-build
|
|
||||||
key: docs-${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
|
|
||||||
restore-keys: |
|
|
||||||
docs-${{ runner.os }}-go-
|
|
||||||
|
|
||||||
- run: go mod download
|
|
||||||
|
|
||||||
- name: Use Node.js ${{ env.NODE_VERSION }}
|
- name: Use Node.js ${{ env.NODE_VERSION }}
|
||||||
uses: actions/setup-node@v4
|
uses: actions/setup-node@v4
|
||||||
with:
|
with:
|
||||||
@ -48,12 +30,14 @@ jobs:
|
|||||||
cache: npm
|
cache: npm
|
||||||
cache-dependency-path: docs/package-lock.json
|
cache-dependency-path: docs/package-lock.json
|
||||||
|
|
||||||
|
- run: go mod download
|
||||||
|
|
||||||
- run: npm install --legacy-peer-deps
|
- run: npm install --legacy-peer-deps
|
||||||
working-directory: ./docs
|
working-directory: ./docs
|
||||||
|
|
||||||
- name: Build Documentation
|
- name: Build Documentation
|
||||||
run: npm run build
|
|
||||||
working-directory: ./docs
|
working-directory: ./docs
|
||||||
|
run: npm run build
|
||||||
|
|
||||||
- name: Deploy to GitHub Pages
|
- name: Deploy to GitHub Pages
|
||||||
uses: peaceiris/actions-gh-pages@v4
|
uses: peaceiris/actions-gh-pages@v4
|
||||||
|
33
.github/workflows/post-release.yml
vendored
33
.github/workflows/post-release.yml
vendored
@ -11,16 +11,16 @@ jobs:
|
|||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
env:
|
env:
|
||||||
GITHUB_TOKEN: ${{ secrets.GOLANGCI_LINT_TOKEN }}
|
GITHUB_TOKEN: ${{ secrets.GOLANGCI_LINT_TOKEN }}
|
||||||
|
# https://github.com/actions/setup-go#supported-version-syntax
|
||||||
|
# ex:
|
||||||
|
# - 1.18beta1 -> 1.18.0-beta.1
|
||||||
|
# - 1.18rc1 -> 1.18.0-rc.1
|
||||||
|
GO_VERSION: '1.23'
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
- name: Install Go
|
- uses: actions/setup-go@v5
|
||||||
uses: actions/setup-go@v5
|
|
||||||
with:
|
with:
|
||||||
# https://github.com/actions/setup-go#supported-version-syntax
|
go-version: ${{ env.GO_VERSION }}
|
||||||
# ex:
|
|
||||||
# - 1.18beta1 -> 1.18.0-beta.1
|
|
||||||
# - 1.18rc1 -> 1.18.0-rc.1
|
|
||||||
go-version: '1.22'
|
|
||||||
- uses: actions/setup-node@v4
|
- uses: actions/setup-node@v4
|
||||||
with:
|
with:
|
||||||
node-version: "15"
|
node-version: "15"
|
||||||
@ -49,14 +49,9 @@ jobs:
|
|||||||
GITHUB_TOKEN: ${{ secrets.GOLANGCI_LINT_TOKEN }}
|
GITHUB_TOKEN: ${{ secrets.GOLANGCI_LINT_TOKEN }}
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
- name: Install Go
|
- uses: actions/setup-go@v5
|
||||||
uses: actions/setup-go@v5
|
|
||||||
with:
|
with:
|
||||||
# https://github.com/actions/setup-go#supported-version-syntax
|
go-version: ${{ env.GO_VERSION }}
|
||||||
# ex:
|
|
||||||
# - 1.18beta1 -> 1.18.0-beta.1
|
|
||||||
# - 1.18rc1 -> 1.18.0-rc.1
|
|
||||||
go-version: '1.22'
|
|
||||||
|
|
||||||
- name: Update GitHub Action config
|
- name: Update GitHub Action config
|
||||||
run: make assets/github-action-config.json
|
run: make assets/github-action-config.json
|
||||||
@ -77,14 +72,9 @@ jobs:
|
|||||||
GITHUB_TOKEN: ${{ secrets.GOLANGCI_LINT_TOKEN }}
|
GITHUB_TOKEN: ${{ secrets.GOLANGCI_LINT_TOKEN }}
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
- name: Install Go
|
- uses: actions/setup-go@v5
|
||||||
uses: actions/setup-go@v5
|
|
||||||
with:
|
with:
|
||||||
# https://github.com/actions/setup-go#supported-version-syntax
|
go-version: ${{ env.GO_VERSION }}
|
||||||
# ex:
|
|
||||||
# - 1.18beta1 -> 1.18.0-beta.1
|
|
||||||
# - 1.18rc1 -> 1.18.0-rc.1
|
|
||||||
go-version: '1.22'
|
|
||||||
|
|
||||||
- name: Update reference files
|
- name: Update reference files
|
||||||
run: cp .golangci.next.reference.yml .golangci.reference.yml
|
run: cp .golangci.next.reference.yml .golangci.reference.yml
|
||||||
@ -110,6 +100,5 @@ jobs:
|
|||||||
matrix:
|
matrix:
|
||||||
os: [ubuntu-latest, macos-latest, windows-latest]
|
os: [ubuntu-latest, macos-latest, windows-latest]
|
||||||
runs-on: ${{ matrix.os }}
|
runs-on: ${{ matrix.os }}
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- run: curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b "./install-golangci-lint"
|
- run: curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b "./install-golangci-lint"
|
||||||
|
33
.github/workflows/pr-documentation.yml
vendored
33
.github/workflows/pr-documentation.yml
vendored
@ -9,36 +9,19 @@ jobs:
|
|||||||
name: Build documentation
|
name: Build documentation
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
env:
|
env:
|
||||||
GO_VERSION: '1.22'
|
# https://github.com/actions/setup-go#supported-version-syntax
|
||||||
|
# ex:
|
||||||
|
# - 1.18beta1 -> 1.18.0-beta.1
|
||||||
|
# - 1.18rc1 -> 1.18.0-rc.1
|
||||||
|
GO_VERSION: '1.23'
|
||||||
NODE_VERSION: '20.x'
|
NODE_VERSION: '20.x'
|
||||||
CGO_ENABLED: 0
|
CGO_ENABLED: 0
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Check out code
|
- uses: actions/checkout@v4
|
||||||
uses: actions/checkout@v4
|
- uses: actions/setup-go@v5
|
||||||
with:
|
|
||||||
fetch-depth: 0
|
|
||||||
|
|
||||||
- name: Set up Go ${{ env.GO_VERSION }}
|
|
||||||
uses: actions/setup-go@v5
|
|
||||||
with:
|
with:
|
||||||
go-version: ${{ env.GO_VERSION }}
|
go-version: ${{ env.GO_VERSION }}
|
||||||
|
|
||||||
- name: Cache Go modules
|
|
||||||
uses: actions/cache@v4
|
|
||||||
with:
|
|
||||||
# In order:
|
|
||||||
# * Module download cache
|
|
||||||
# * Build cache (Linux)
|
|
||||||
path: |
|
|
||||||
~/go/pkg/mod
|
|
||||||
~/.cache/go-build
|
|
||||||
key: docs-${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
|
|
||||||
restore-keys: |
|
|
||||||
docs-${{ runner.os }}-go-
|
|
||||||
|
|
||||||
- run: go mod download
|
|
||||||
|
|
||||||
- name: Use Node.js ${{ env.NODE_VERSION }}
|
- name: Use Node.js ${{ env.NODE_VERSION }}
|
||||||
uses: actions/setup-node@v4
|
uses: actions/setup-node@v4
|
||||||
with:
|
with:
|
||||||
@ -46,6 +29,8 @@ jobs:
|
|||||||
cache: npm
|
cache: npm
|
||||||
cache-dependency-path: docs/package-lock.json
|
cache-dependency-path: docs/package-lock.json
|
||||||
|
|
||||||
|
- run: go mod download
|
||||||
|
|
||||||
- run: npm install --legacy-peer-deps
|
- run: npm install --legacy-peer-deps
|
||||||
working-directory: ./docs
|
working-directory: ./docs
|
||||||
|
|
||||||
|
2
.github/workflows/pr-extra.yml
vendored
2
.github/workflows/pr-extra.yml
vendored
@ -17,7 +17,7 @@ jobs:
|
|||||||
# ex:
|
# ex:
|
||||||
# - 1.18beta1 -> 1.18.0-beta.1
|
# - 1.18beta1 -> 1.18.0-beta.1
|
||||||
# - 1.18rc1 -> 1.18.0-rc.1
|
# - 1.18rc1 -> 1.18.0-rc.1
|
||||||
go-version: '1.22'
|
go-version: '1.23'
|
||||||
- name: Run go list
|
- name: Run go list
|
||||||
run: go list -json -m all > go.list
|
run: go list -json -m all > go.list
|
||||||
- name: Nancy
|
- name: Nancy
|
||||||
|
74
.github/workflows/pr.yml
vendored
74
.github/workflows/pr.yml
vendored
@ -6,23 +6,21 @@ on:
|
|||||||
pull_request:
|
pull_request:
|
||||||
|
|
||||||
env:
|
env:
|
||||||
GO_VERSION: '1.22'
|
# https://github.com/actions/setup-go#supported-version-syntax
|
||||||
|
# ex:
|
||||||
|
# - 1.18beta1 -> 1.18.0-beta.1
|
||||||
|
# - 1.18rc1 -> 1.18.0-rc.1
|
||||||
|
GO_VERSION: '1.23'
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
# Check if there is any dirty change for go mod tidy
|
# Check if there is any dirty change for go mod tidy
|
||||||
go-mod:
|
go-mod:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- name: Install Go
|
- uses: actions/checkout@v4
|
||||||
uses: actions/setup-go@v5
|
- uses: actions/setup-go@v5
|
||||||
with:
|
with:
|
||||||
# https://github.com/actions/setup-go#supported-version-syntax
|
|
||||||
# ex:
|
|
||||||
# - 1.18beta1 -> 1.18.0-beta.1
|
|
||||||
# - 1.18rc1 -> 1.18.0-rc.1
|
|
||||||
go-version: ${{ env.GO_VERSION }}
|
go-version: ${{ env.GO_VERSION }}
|
||||||
- name: Checkout code
|
|
||||||
uses: actions/checkout@v4
|
|
||||||
- name: Check go mod
|
- name: Check go mod
|
||||||
run: |
|
run: |
|
||||||
go mod tidy
|
go mod tidy
|
||||||
@ -35,14 +33,15 @@ jobs:
|
|||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
- name: Install Go
|
- uses: actions/setup-go@v5
|
||||||
uses: actions/setup-go@v5
|
|
||||||
with:
|
with:
|
||||||
# https://github.com/actions/setup-go#supported-version-syntax
|
# https://github.com/actions/setup-go#supported-version-syntax
|
||||||
# ex:
|
# ex:
|
||||||
# - 1.18beta1 -> 1.18.0-beta.1
|
# - 1.18beta1 -> 1.18.0-beta.1
|
||||||
# - 1.18rc1 -> 1.18.0-rc.1
|
# - 1.18rc1 -> 1.18.0-rc.1
|
||||||
go-version: ${{ env.GO_VERSION }}
|
# TODO(ldez) must be changed after the first release of golangci-lint with go1.23
|
||||||
|
# go-version: ${{ env.GO_VERSION }}
|
||||||
|
go-version: '1.22'
|
||||||
- name: lint
|
- name: lint
|
||||||
uses: golangci/golangci-lint-action@v6.1.0
|
uses: golangci/golangci-lint-action@v6.1.0
|
||||||
with:
|
with:
|
||||||
@ -53,13 +52,8 @@ jobs:
|
|||||||
runs-on: windows-latest
|
runs-on: windows-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
- name: Install Go
|
- uses: actions/setup-go@v5
|
||||||
uses: actions/setup-go@v5
|
|
||||||
with:
|
with:
|
||||||
# https://github.com/actions/setup-go#supported-version-syntax
|
|
||||||
# ex:
|
|
||||||
# - 1.18beta1 -> 1.18.0-beta.1
|
|
||||||
# - 1.18rc1 -> 1.18.0-rc.1
|
|
||||||
go-version: ${{ env.GO_VERSION }} # test only the latest go version to speed up CI
|
go-version: ${{ env.GO_VERSION }} # test only the latest go version to speed up CI
|
||||||
- name: Run tests
|
- name: Run tests
|
||||||
run: make.exe test
|
run: make.exe test
|
||||||
@ -69,13 +63,8 @@ jobs:
|
|||||||
runs-on: macos-latest
|
runs-on: macos-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
- name: Install Go
|
- uses: actions/setup-go@v5
|
||||||
uses: actions/setup-go@v5
|
|
||||||
with:
|
with:
|
||||||
# https://github.com/actions/setup-go#supported-version-syntax
|
|
||||||
# ex:
|
|
||||||
# - 1.18beta1 -> 1.18.0-beta.1
|
|
||||||
# - 1.18rc1 -> 1.18.0-rc.1
|
|
||||||
go-version: ${{ env.GO_VERSION }} # test only the latest go version to speed up CI
|
go-version: ${{ env.GO_VERSION }} # test only the latest go version to speed up CI
|
||||||
- name: Run tests
|
- name: Run tests
|
||||||
run: make test
|
run: make test
|
||||||
@ -86,43 +75,27 @@ jobs:
|
|||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
golang:
|
golang:
|
||||||
- '1.21'
|
|
||||||
- '1.22'
|
- '1.22'
|
||||||
|
- '1.23'
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
- name: Install Go
|
- uses: actions/setup-go@v5
|
||||||
uses: actions/setup-go@v5
|
|
||||||
with:
|
with:
|
||||||
# https://github.com/actions/setup-go#supported-version-syntax
|
|
||||||
# ex:
|
|
||||||
# - 1.18beta1 -> 1.18.0-beta.1
|
|
||||||
# - 1.18rc1 -> 1.18.0-rc.1
|
|
||||||
go-version: ${{ matrix.golang }}
|
go-version: ${{ matrix.golang }}
|
||||||
- uses: actions/cache@v4
|
|
||||||
with:
|
|
||||||
path: ~/go/pkg/mod
|
|
||||||
key: ${{ runner.os }}-go-${{ matrix.golang }}-${{ hashFiles('**/go.sum') }}
|
|
||||||
restore-keys: |
|
|
||||||
${{ runner.os }}-go-${{ matrix.golang }}-
|
|
||||||
- name: Run tests
|
- name: Run tests
|
||||||
run: make test
|
run: make test
|
||||||
|
|
||||||
|
# Checks: GitHub action assets
|
||||||
check_generated:
|
check_generated:
|
||||||
needs: golangci-lint # run after golangci-lint action to not produce duplicated errors
|
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
- name: Unshallow
|
|
||||||
run: git fetch --prune --unshallow
|
|
||||||
- name: Install Go
|
|
||||||
uses: actions/setup-go@v5
|
|
||||||
with:
|
with:
|
||||||
# https://github.com/actions/setup-go#supported-version-syntax
|
fetch-depth: 0
|
||||||
# ex:
|
- uses: actions/setup-go@v5
|
||||||
# - 1.18beta1 -> 1.18.0-beta.1
|
with:
|
||||||
# - 1.18rc1 -> 1.18.0-rc.1
|
|
||||||
go-version: ${{ env.GO_VERSION }}
|
go-version: ${{ env.GO_VERSION }}
|
||||||
- name: Check generated files are up to date
|
- name: Check generated files are up-to-date
|
||||||
run: make fast_check_generated
|
run: make fast_check_generated
|
||||||
env:
|
env:
|
||||||
# needed for github-action-config.json generation
|
# needed for github-action-config.json generation
|
||||||
@ -145,13 +118,8 @@ jobs:
|
|||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
- name: Install Go
|
- uses: actions/setup-go@v5
|
||||||
uses: actions/setup-go@v5
|
|
||||||
with:
|
with:
|
||||||
# https://github.com/actions/setup-go#supported-version-syntax
|
|
||||||
# ex:
|
|
||||||
# - 1.18beta1 -> 1.18.0-beta.1
|
|
||||||
# - 1.18rc1 -> 1.18.0-rc.1
|
|
||||||
go-version: ${{ env.GO_VERSION }}
|
go-version: ${{ env.GO_VERSION }}
|
||||||
- name: Build golangci-lint
|
- name: Build golangci-lint
|
||||||
run: make build
|
run: make build
|
||||||
|
9
.github/workflows/tag.yml
vendored
9
.github/workflows/tag.yml
vendored
@ -12,16 +12,15 @@ jobs:
|
|||||||
# ex:
|
# ex:
|
||||||
# - 1.18beta1 -> 1.18.0-beta.1
|
# - 1.18beta1 -> 1.18.0-beta.1
|
||||||
# - 1.18rc1 -> 1.18.0-rc.1
|
# - 1.18rc1 -> 1.18.0-rc.1
|
||||||
GO_VERSION: '1.22'
|
GO_VERSION: '1.23'
|
||||||
CHOCOLATEY_VERSION: 2.2.0
|
CHOCOLATEY_VERSION: 2.2.0
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
- name: Install Go
|
with:
|
||||||
uses: actions/setup-go@v5
|
fetch-depth: 0
|
||||||
|
- uses: actions/setup-go@v5
|
||||||
with:
|
with:
|
||||||
go-version: ${{ env.GO_VERSION }}
|
go-version: ${{ env.GO_VERSION }}
|
||||||
- name: Unshallow
|
|
||||||
run: git fetch --prune --unshallow
|
|
||||||
|
|
||||||
- name: Install chocolatey
|
- name: Install chocolatey
|
||||||
run: |
|
run: |
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
---
|
version: 2
|
||||||
|
|
||||||
project_name: golangci-lint
|
project_name: golangci-lint
|
||||||
|
|
||||||
builds:
|
builds:
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
# syntax=docker/dockerfile:1.4
|
# syntax=docker/dockerfile:1.4
|
||||||
FROM golang:1.22-alpine
|
FROM golang:1.23-alpine
|
||||||
|
|
||||||
# related to https://github.com/golangci/golangci-lint/issues/3107
|
# related to https://github.com/golangci/golangci-lint/issues/3107
|
||||||
ENV GOROOT /usr/local/go
|
ENV GOROOT /usr/local/go
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
# syntax=docker/dockerfile:1.4
|
# syntax=docker/dockerfile:1.4
|
||||||
FROM golang:1.22
|
FROM golang:1.23
|
||||||
|
|
||||||
# related to https://github.com/golangci/golangci-lint/issues/3107
|
# related to https://github.com/golangci/golangci-lint/issues/3107
|
||||||
ENV GOROOT /usr/local/go
|
ENV GOROOT /usr/local/go
|
||||||
|
6
go.mod
6
go.mod
@ -1,6 +1,6 @@
|
|||||||
module github.com/golangci/golangci-lint
|
module github.com/golangci/golangci-lint
|
||||||
|
|
||||||
go 1.21.0
|
go 1.22.1
|
||||||
|
|
||||||
require (
|
require (
|
||||||
4d63.com/gocheckcompilerdirectives v1.2.1
|
4d63.com/gocheckcompilerdirectives v1.2.1
|
||||||
@ -10,7 +10,7 @@ require (
|
|||||||
github.com/Antonboom/errname v0.1.13
|
github.com/Antonboom/errname v0.1.13
|
||||||
github.com/Antonboom/nilnil v0.1.9
|
github.com/Antonboom/nilnil v0.1.9
|
||||||
github.com/Antonboom/testifylint v1.4.3
|
github.com/Antonboom/testifylint v1.4.3
|
||||||
github.com/BurntSushi/toml v1.4.0
|
github.com/BurntSushi/toml v1.4.1-0.20240526193622-a339e1f7089c
|
||||||
github.com/Crocmagnon/fatcontext v0.4.0
|
github.com/Crocmagnon/fatcontext v0.4.0
|
||||||
github.com/Djarvur/go-err113 v0.0.0-20210108212216-aea10b59be24
|
github.com/Djarvur/go-err113 v0.0.0-20210108212216-aea10b59be24
|
||||||
github.com/GaijinEntertainment/go-exhaustruct/v3 v3.3.0
|
github.com/GaijinEntertainment/go-exhaustruct/v3 v3.3.0
|
||||||
@ -127,7 +127,7 @@ require (
|
|||||||
golang.org/x/exp v0.0.0-20240103183307-be819d1f06fc
|
golang.org/x/exp v0.0.0-20240103183307-be819d1f06fc
|
||||||
golang.org/x/tools v0.24.0
|
golang.org/x/tools v0.24.0
|
||||||
gopkg.in/yaml.v3 v3.0.1
|
gopkg.in/yaml.v3 v3.0.1
|
||||||
honnef.co/go/tools v0.4.7
|
honnef.co/go/tools v0.5.0
|
||||||
mvdan.cc/gofumpt v0.6.0
|
mvdan.cc/gofumpt v0.6.0
|
||||||
mvdan.cc/unparam v0.0.0-20240528143540-8a5130ca722f
|
mvdan.cc/unparam v0.0.0-20240528143540-8a5130ca722f
|
||||||
)
|
)
|
||||||
|
8
go.sum
generated
8
go.sum
generated
@ -46,8 +46,8 @@ github.com/Antonboom/nilnil v0.1.9/go.mod h1:iGe2rYwCq5/Me1khrysB4nwI7swQvjclR8/
|
|||||||
github.com/Antonboom/testifylint v1.4.3 h1:ohMt6AHuHgttaQ1xb6SSnxCeK4/rnK7KKzbvs7DmEck=
|
github.com/Antonboom/testifylint v1.4.3 h1:ohMt6AHuHgttaQ1xb6SSnxCeK4/rnK7KKzbvs7DmEck=
|
||||||
github.com/Antonboom/testifylint v1.4.3/go.mod h1:+8Q9+AOLsz5ZiQiiYujJKs9mNz398+M6UgslP4qgJLA=
|
github.com/Antonboom/testifylint v1.4.3/go.mod h1:+8Q9+AOLsz5ZiQiiYujJKs9mNz398+M6UgslP4qgJLA=
|
||||||
github.com/BurntSushi/toml v0.3.1/go.mod h1:xHWCNGjB5oqiDr8zfno3MHue2Ht5sIBksp03qcyfWMU=
|
github.com/BurntSushi/toml v0.3.1/go.mod h1:xHWCNGjB5oqiDr8zfno3MHue2Ht5sIBksp03qcyfWMU=
|
||||||
github.com/BurntSushi/toml v1.4.0 h1:kuoIxZQy2WRRk1pttg9asf+WVv6tWQuBNVmK8+nqPr0=
|
github.com/BurntSushi/toml v1.4.1-0.20240526193622-a339e1f7089c h1:pxW6RcqyfI9/kWtOwnv/G+AzdKuy2ZrqINhenH4HyNs=
|
||||||
github.com/BurntSushi/toml v1.4.0/go.mod h1:ukJfTF/6rtPPRCnwkur4qwRxa8vTRFBF0uk2lLoLwho=
|
github.com/BurntSushi/toml v1.4.1-0.20240526193622-a339e1f7089c/go.mod h1:ukJfTF/6rtPPRCnwkur4qwRxa8vTRFBF0uk2lLoLwho=
|
||||||
github.com/BurntSushi/xgb v0.0.0-20160522181843-27f122750802/go.mod h1:IVnqGOEym/WlBOVXweHU+Q+/VP0lqqI8lqeDx9IjBqo=
|
github.com/BurntSushi/xgb v0.0.0-20160522181843-27f122750802/go.mod h1:IVnqGOEym/WlBOVXweHU+Q+/VP0lqqI8lqeDx9IjBqo=
|
||||||
github.com/Crocmagnon/fatcontext v0.4.0 h1:4ykozu23YHA0JB6+thiuEv7iT6xq995qS1vcuWZq0tg=
|
github.com/Crocmagnon/fatcontext v0.4.0 h1:4ykozu23YHA0JB6+thiuEv7iT6xq995qS1vcuWZq0tg=
|
||||||
github.com/Crocmagnon/fatcontext v0.4.0/go.mod h1:ZtWrXkgyfsYPzS6K3O88va6t2GEglG93vnII/F94WC0=
|
github.com/Crocmagnon/fatcontext v0.4.0/go.mod h1:ZtWrXkgyfsYPzS6K3O88va6t2GEglG93vnII/F94WC0=
|
||||||
@ -965,8 +965,8 @@ honnef.co/go/tools v0.0.0-20190523083050-ea95bdfd59fc/go.mod h1:rf3lG4BRIbNafJWh
|
|||||||
honnef.co/go/tools v0.0.1-2019.2.3/go.mod h1:a3bituU0lyd329TUQxRnasdCoJDkEUEAqEt0JzvZhAg=
|
honnef.co/go/tools v0.0.1-2019.2.3/go.mod h1:a3bituU0lyd329TUQxRnasdCoJDkEUEAqEt0JzvZhAg=
|
||||||
honnef.co/go/tools v0.0.1-2020.1.3/go.mod h1:X/FiERA/W4tHapMX5mGpAtMSVEeEUOyHaw9vFzvIQ3k=
|
honnef.co/go/tools v0.0.1-2020.1.3/go.mod h1:X/FiERA/W4tHapMX5mGpAtMSVEeEUOyHaw9vFzvIQ3k=
|
||||||
honnef.co/go/tools v0.0.1-2020.1.4/go.mod h1:X/FiERA/W4tHapMX5mGpAtMSVEeEUOyHaw9vFzvIQ3k=
|
honnef.co/go/tools v0.0.1-2020.1.4/go.mod h1:X/FiERA/W4tHapMX5mGpAtMSVEeEUOyHaw9vFzvIQ3k=
|
||||||
honnef.co/go/tools v0.4.7 h1:9MDAWxMoSnB6QoSqiVr7P5mtkT9pOc1kSxchzPCnqJs=
|
honnef.co/go/tools v0.5.0 h1:29uoiIormS3Z6R+t56STz/oI4v+mB51TSmEOdJPgRnE=
|
||||||
honnef.co/go/tools v0.4.7/go.mod h1:+rnGS1THNh8zMwnd2oVOTL9QF6vmfyG6ZXBULae2uc0=
|
honnef.co/go/tools v0.5.0/go.mod h1:e9irvo83WDG9/irijV44wr3tbhcFeRnfpVlRqVwpzMs=
|
||||||
mvdan.cc/gofumpt v0.6.0 h1:G3QvahNDmpD+Aek/bNOLrFR2XC6ZAdo62dZu65gmwGo=
|
mvdan.cc/gofumpt v0.6.0 h1:G3QvahNDmpD+Aek/bNOLrFR2XC6ZAdo62dZu65gmwGo=
|
||||||
mvdan.cc/gofumpt v0.6.0/go.mod h1:4L0wf+kgIPZtcCWXynNS2e6bhmj73umwnuXSZarixzA=
|
mvdan.cc/gofumpt v0.6.0/go.mod h1:4L0wf+kgIPZtcCWXynNS2e6bhmj73umwnuXSZarixzA=
|
||||||
mvdan.cc/unparam v0.0.0-20240528143540-8a5130ca722f h1:lMpcwN6GxNbWtbpI1+xzFLSW8XzX0u72NttUGVFjO3U=
|
mvdan.cc/unparam v0.0.0-20240528143540-8a5130ca722f h1:lMpcwN6GxNbWtbpI1+xzFLSW8XzX0u72NttUGVFjO3U=
|
||||||
|
@ -179,7 +179,7 @@ func analyzersFromConfig(settings *config.GovetSettings) []*analysis.Analyzer {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func isAnalyzerEnabled(name string, cfg *config.GovetSettings, defaultAnalyzers []*analysis.Analyzer) bool {
|
func isAnalyzerEnabled(name string, cfg *config.GovetSettings, defaultAnalyzers []*analysis.Analyzer) bool {
|
||||||
// TODO(ldez) remove loopclosure when go1.23
|
// TODO(ldez) remove loopclosure when go1.24
|
||||||
if name == loopclosure.Analyzer.Name && config.IsGoGreaterThanOrEqual(cfg.Go, "1.22") {
|
if name == loopclosure.Analyzer.Name && config.IsGoGreaterThanOrEqual(cfg.Go, "1.22") {
|
||||||
return false
|
return false
|
||||||
}
|
}
|
||||||
|
@ -84,7 +84,6 @@ func TestGovetAnalyzerIsEnabled(t *testing.T) {
|
|||||||
{Name: "unsafeptr", Enabled: true, Enable: []string{"unsafeptr"}},
|
{Name: "unsafeptr", Enabled: true, Enable: []string{"unsafeptr"}},
|
||||||
{Name: "shift", Enabled: true, EnableAll: true},
|
{Name: "shift", Enabled: true, EnableAll: true},
|
||||||
{Name: "shadow", EnableAll: true, Disable: []string{"shadow"}, Enabled: false},
|
{Name: "shadow", EnableAll: true, Disable: []string{"shadow"}, Enabled: false},
|
||||||
{Name: "loopclosure", EnableAll: true, Enabled: false, Go: "1.22"}, // TODO(ldez) remove loopclosure when go1.23
|
|
||||||
} {
|
} {
|
||||||
cfg := &config.GovetSettings{
|
cfg := &config.GovetSettings{
|
||||||
Enable: tc.Enable,
|
Enable: tc.Enable,
|
||||||
|
@ -101,7 +101,6 @@ func TestCgoOk(t *testing.T) {
|
|||||||
WithArgs("--timeout=3m",
|
WithArgs("--timeout=3m",
|
||||||
"--enable-all",
|
"--enable-all",
|
||||||
).
|
).
|
||||||
WithArgs("--go=1.22"). // TODO(ldez) remove this line when we will run go1.23 on the CI. (related to intrange, copyloopvar)
|
|
||||||
WithTargetPath(testdataDir, "cgo").
|
WithTargetPath(testdataDir, "cgo").
|
||||||
Runner().
|
Runner().
|
||||||
Install().
|
Install().
|
||||||
@ -323,7 +322,6 @@ func TestUnsafeOk(t *testing.T) {
|
|||||||
testshared.NewRunnerBuilder(t).
|
testshared.NewRunnerBuilder(t).
|
||||||
WithNoConfig().
|
WithNoConfig().
|
||||||
WithArgs("--enable-all").
|
WithArgs("--enable-all").
|
||||||
WithArgs("--go=1.22"). // TODO(ldez) remove this line when we will run go1.23 on the CI. (related to intrange, copyloopvar)
|
|
||||||
WithTargetPath(testdataDir, "unsafe").
|
WithTargetPath(testdataDir, "unsafe").
|
||||||
Runner().
|
Runner().
|
||||||
Install().
|
Install().
|
||||||
@ -484,7 +482,6 @@ func TestEnableAllFastAndEnableCanCoexist(t *testing.T) {
|
|||||||
testshared.NewRunnerBuilder(t).
|
testshared.NewRunnerBuilder(t).
|
||||||
WithNoConfig().
|
WithNoConfig().
|
||||||
WithArgs(test.args...).
|
WithArgs(test.args...).
|
||||||
WithArgs("--go=1.22"). // TODO(ldez) remove this line when we will run go1.23 on the CI. (related to intrange, copyloopvar)
|
|
||||||
WithTargetPath(testdataDir, minimalPkg).
|
WithTargetPath(testdataDir, minimalPkg).
|
||||||
WithBinPath(binPath).
|
WithBinPath(binPath).
|
||||||
Runner().
|
Runner().
|
||||||
|
@ -63,7 +63,6 @@ func testOneSource(t *testing.T, log *logutils.StderrLog, binPath, sourcePath st
|
|||||||
}
|
}
|
||||||
|
|
||||||
args := []string{
|
args := []string{
|
||||||
"--go=1.22", // TODO(ldez) remove this line when we will run go1.23 on the CI. (related to intrange, copyloopvar)
|
|
||||||
"--disable-all",
|
"--disable-all",
|
||||||
"--out-format=json",
|
"--out-format=json",
|
||||||
"--max-same-issues=100",
|
"--max-same-issues=100",
|
||||||
|
Loading…
x
Reference in New Issue
Block a user