-
-
Notifications
You must be signed in to change notification settings - Fork 153
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Running error: buildir: failed to load package goarch: could not load export data #434
Comments
Similar issue here. Anyone has solution to this? |
I have solved this issue, you gotta add skip installation set to true, they messed up all the pipelines with making installation implicit. There are 2 ways to solve this, you either go for v1.45.2 or above (which probably you can not if you are in a long term project and backward compatibility matters right) or you can just add "skip-go-installation: true" under your yaml like this lint:
name: Lint
runs-on: ubuntu-latest
steps:
- name: Install Go 1.16
uses: actions/setup-go@v2
with:
go-version: 1.16
- name: Checkout code
uses: actions/checkout@v2
- name: golangci-lint
uses: golangci/golangci-lint-action@v2
with:
version: v1.38.0
skip-go-installation: true Note: It is resolved in an easier & better way; just change "golangci/golangci-lint-action@v2" to "golangci/golangci-lint-action@v3" |
please upgrade to v3 action, we removed the installation of go step at all |
@SVilgelm thanks! |
We're hitting this as well. Had to keep jobs:
lint-go:
name: Lint Go code
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
- uses: actions/setup-go@v3
with:
go-version: '1.17.8'
- name: Run golangci-lint
uses: golangci/golangci-lint-action@v3
with:
version: v1.38.0 |
the linter does not support go v1.18 yet |
It works by upgrading to the following configuration: https://github.com/oam-dev/kubevela/pull/3571/files Thanks, closing... |
golangci/golangci-lint-action#434 Signed-off-by: Hasan Turken <[email protected]>
golangci/golangci-lint-action#434 Signed-off-by: Hasan Turken <[email protected]> (cherry picked from commit 2e49ed1)
* ⬆️ Updated Go Version 1.15 => 1.18 * ⬆️ Updating golangci golangci/golangci-lint-action#434 * 🔧 Updated Devcontainer for 1.18
Error message: ``` 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" ``` Upgrade `golangci-lint-action` to v3 golangci/golangci-lint-action#434 Signed-off-by: Iñigo Horcajo <[email protected]>
Error message: ``` 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" ``` Upgrade `golangci-lint-action` to v3 golangci/golangci-lint-action#434 Signed-off-by: Iñigo Horcajo <[email protected]>
The golangci-lint job is failing on GitLab CI, see https://gitlab.com/satoshilabs/trezor/trezord-go/-/commit/ec928e6456bfa60c9a298ae78613f723db256900/pipelines?ref=master This is because only v1.45.0 of golangci-lint supports golang v1.18.0, see golangci/golangci-lint-action#434 (comment)
The golangci-lint job is failing on GitLab CI, see https://gitlab.com/satoshilabs/trezor/trezord-go/-/commit/ec928e6456bfa60c9a298ae78613f723db256900/pipelines?ref=master This is because only v1.45.0 of golangci-lint supports golang v1.18.0, see golangci/golangci-lint-action#434 (comment) Updating the `golangci-lint` action causes a bunch of warnings and errors, so it's probably easier to just keep the golang version at `v1.17`.
The golangci-lint job is failing on GitLab CI, see https://gitlab.com/satoshilabs/trezor/trezord-go/-/commit/ec928e6456bfa60c9a298ae78613f723db256900/pipelines?ref=master This is because only v1.45.0 of golangci-lint supports golang v1.18.0, see golangci/golangci-lint-action#434 (comment) Updating the `golangci-lint` action causes a bunch of warnings and errors, so it's probably easier to just keep the golang version at `v1.17`.
golangci/golangci-lint-action#434 Signed-off-by: Hasan Turken <[email protected]>
golangci/golangci-lint-action#434 Signed-off-by: Hasan Turken <[email protected]>
This removes the implicit go installation. See golangci/golangci-lint-action#434
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:
The error message:
Are there any solution for this?
The text was updated successfully, but these errors were encountered: