Interactions-HSG / grpcwot

A simple command line tool to generate a Thing Description from Protocol Buffers
GNU General Public License v3.0
0 stars 0 forks source link

golangci-lint Action is failing #18

Closed iomz closed 2 years ago

iomz commented 2 years ago

The linter is not running and needs to be fixed:

Installed Go in 95ms
Requested golangci-lint 'v1.29', using 'v1.29.0', calculation took 138ms
Installing golangci-lint v1.29.0...
Downloading https://github.com/golangci/golangci-lint/releases/download/v1.29.0/golangci-lint-1.29.0-linux-amd64.tar.gz ...
Cache not found for input keys: golangci-lint.cache-2733-c6cc50dfdb586e9d8e133ea4ae3aa237a78f7510, golangci-lint.cache-2733-, golangci-lint.cache-
/usr/bin/tar xz --overwrite --warning=no-unknown-keyword -C /home/runner -f /home/runner/work/_temp/41fad16d-1e83-432c-afaf-519c53c0a24a
Installed golangci-lint into /home/runner/golangci-lint-1.29.0-linux-amd[64](https://github.com/Interactions-HSG/grpcwot/runs/6592714514?check_suite_focus=true#step:4:66)/golangci-lint in 516ms
Prepared env in [65](https://github.com/Interactions-HSG/grpcwot/runs/6592714514?check_suite_focus=true#step:4:67)6ms

run golangci-lint
  Running [/home/runner/golangci-lint-1.29.0-linux-amd64/golangci-lint run --out-format=github-actions] in [] ...
  level=warning msg="[runner] Can't run linter goanalysis_metalinter: S1002: failed prerequisites: [(inspect@github.com/Interactions-HSG/grpcwot/pkg/protofmt, isgenerated@github.com/Interactions-HSG/grpcwot/pkg/protofmt): analysis skipped: errors in package: [/home/runner/work/grpcwot/grpcwot/pkg/protofmt/reflector.go:26:8: could not import github.com/emicklei/proto (/home/runner/go/pkg/mod/github.com/emicklei/proto@v1.9.2/comment.go:27:2: could not import strings (/opt/hostedtoolcache/go/1.18.2/x64/src/strings/builder.go:8:2: could not import unicode/utf8 (-: could not load export data: cannot import \"unicode/utf8\" (unknown iexport format version 2), export data is newer version - update tool)))]]"
  level=warning msg="[runner] Can't run linter unused: buildir: failed to load package goarch: could not load export data: cannot import \"internal/goarch\" (unknown iexport format version 2), export data is newer version - update tool"
  level=error msg="Running error: buildir: failed to load package goarch: could not load export data: cannot import \"internal/goarch\" (unknown iexport format version 2), export data is newer version - update tool"

  Error: golangci-lint exit with code 3