Skip to content
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

Outdated staticcheck version (v0.2.2) fails to run in oldstable image #711

Closed
atc0005 opened this issue Aug 26, 2022 · 2 comments · Fixed by #712
Closed

Outdated staticcheck version (v0.2.2) fails to run in oldstable image #711

atc0005 opened this issue Aug 26, 2022 · 2 comments · Fixed by #712
Assignees
Labels
Milestone

Comments

@atc0005
Copy link
Owner

atc0005 commented Aug 26, 2022

CI failure from old staticcheck version:

Run staticcheck $(go list -mod=vendor ./... | grep -v /vendor/)
-: cannot import "internal/cpu" (unknown iexport format version 2), export data is newer version - update tool (compile)
-: cannot import "internal/goarch" (unknown iexport format version 2), export data is newer version - update tool (compile)
Error: Process completed with exit code 1.

in Go 1.18 environment:

  HOME=/github/home
  GITHUB_ACTIONS=true
  CI=true
  PATH=/go/bin:/usr/local/go/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
  GOLANG_VERSION=1.18.5
  GOPATH=/go
  GOLANGCI_LINT_VERSION=v1.49.0
  STATICCHECK_VERSION=v0.2.2
  HTTPERRORYZER_VERSION=v0.0.1
  STRUCTSLOP_VERSION=v0.0.6
  TOMLL_VERSION=v2.0.3
  ERRWRAP_VERSION=v1.4.0
  APT_BSDMAINUTILS_VERSION=12.1.7+nmu3
  APT_TREE_VERSION=1.8.0-1+b1
@atc0005 atc0005 added this to the Next Release milestone Aug 26, 2022
@atc0005 atc0005 self-assigned this Aug 26, 2022
@atc0005
Copy link
Owner Author

atc0005 commented Aug 26, 2022

@atc0005
Copy link
Owner Author

atc0005 commented Aug 26, 2022

The staticcheck version used in the oldstable image was held back at one point because newer versions of that tool were not compatible with the Go version used. Later, when the Go version was updated the staticcheck version reference was evidently not updated accordingly.

atc0005 added a commit that referenced this issue Aug 26, 2022
This was missed when staticcheck was last updated for all
images.

refs GH-711
refs GH-693
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant