diff --git a/.github/workflows/lint_golang.yml b/.github/workflows/lint_golang.yml index 7336659..f0db236 100644 --- a/.github/workflows/lint_golang.yml +++ b/.github/workflows/lint_golang.yml @@ -31,5 +31,5 @@ jobs: - name: golangci-lint uses: golangci/golangci-lint-action@v6 with: - version: v1.59.1 + version: v1.60.3 args: --verbose diff --git a/specs/destination.go b/specs/destination.go index 8d7a110..5b9ab8c 100644 --- a/specs/destination.go +++ b/specs/destination.go @@ -3,6 +3,7 @@ package specs import ( "bytes" "encoding/json" + "errors" "fmt" "strings" @@ -53,7 +54,7 @@ func (d *Destination) Validate() error { if funk.ContainsString(officialPlugins, d.Name) { msg += fmt.Sprintf(". Hint: try setting path to cloudquery/%s in your config", d.Name) } - return fmt.Errorf(msg) + return errors.New(msg) } if d.Registry.NeedVersion() { diff --git a/specs/source.go b/specs/source.go index dd82187..2f55929 100644 --- a/specs/source.go +++ b/specs/source.go @@ -3,6 +3,7 @@ package specs import ( "bytes" "encoding/json" + "errors" "fmt" "strings" @@ -107,7 +108,7 @@ func (s *Source) Validate() error { if funk.ContainsString(officialPlugins, s.Name) { msg += fmt.Sprintf(". Hint: try setting path to cloudquery/%s in your config", s.Name) } - return fmt.Errorf(msg) + return errors.New(msg) } if len(s.Tables) == 0 {