question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Running error: buildir: failed to load package goarch: could not load export data

See original GitHub issue

It caused error running golangci lint action https://github.com/oam-dev/kubevela/runs/5775307395?check_suite_focus=true

It just happened last night.

My environment:

Run golangci/golangci-lint-action@v2
  with:
    version: v1.3.8
    github-token: ***
    only-new-issues: false
    skip-go-installation: false
    skip-pkg-cache: false
    skip-build-cache: false
  env:
    GO_VERSION: 1.17
    GOLANGCI_VERSION: v1.38
    KIND_VERSION: v0.7.0
prepare environment

The error message:

  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"

Are there any solution for this?

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:7 (2 by maintainers)

github_iconTop GitHub Comments

2reactions
SVilgelmcommented, Apr 4, 2022

We’re hitting this as well. Had to keep setup-go at 1.17 in order get this to work (despite having the build of our actual binaries in go 1.18 in another job).

the linter does not support go v1.18 yet

2reactions
SVilgelmcommented, Apr 1, 2022

please upgrade to v3 action, we removed the installation of go step at all

Read more comments on GitHub >

github_iconTop Results From Across the Web

golangci-lint file watcher fails to run (failed to load package ...
I can't reproduce it so far, but I installed golangci-lint via Homebrew instead of curl. Pay attention that installation via curl is applicable...
Read more >
make lint errors running golangci-lint during make presubmit
ERRO Running error : buildir: failed to load package goarch: could not load export data: cannot import "internal/goarch" (unknown iexport format version 2), ......
Read more >
golangcli-lint and ERRO Running error - no export data for […]
golangcli-lint and ERRO Running error: buildir: failed to load package : could not load export data: no export data for […].
Read more >
Can't run linter goanalysis_metalinter: buildir ... - CSDN博客
WARN [runner] Can't run linter goanalysis_metalinter: buildir: failed to load package : could not load export data: no export data for ...
Read more >
Bug#1008433: golang-honnef-go-tools: FTBFS: dh_auto_test ...
Hi, During a rebuild of all packages in sid, your package failed to ... cannot import "math" (unknown iexport format > version 2),...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found