From 03b83f5941e461bdb56edc06060827405e046d91 Mon Sep 17 00:00:00 2001 From: Rafael Dantas Justo Date: Thu, 17 Oct 2024 13:05:39 -0300 Subject: [PATCH] Allow use of deprecated go/ast package for now Linter was complaining about use of the `go/ast` package. Disabling the check for the moment as this will require extra changes. --- .github/workflows/build.yml | 6 +++--- goutil/goutil.go | 2 ++ 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 965d093..a4b28f2 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -10,7 +10,7 @@ jobs: - uses: actions/checkout@v4 - name: Lint - uses: golangci/golangci-lint-action@v3 + uses: golangci/golangci-lint-action@v6 with: only-new-issues: true @@ -22,9 +22,9 @@ jobs: - uses: actions/checkout@v4 - name: Set up Go - uses: actions/setup-go@v4 + uses: actions/setup-go@v5 with: - go-version: '1.20' + go-version: '1.23' - name: Test run: | diff --git a/goutil/goutil.go b/goutil/goutil.go index 7d5d142..0214518 100644 --- a/goutil/goutil.go +++ b/goutil/goutil.go @@ -1,4 +1,6 @@ // Package goutil provides functions to work with Go source files. +// +//nolint:staticcheck package goutil // import "github.com/teamwork/utils/v2/goutil" import (