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

Broken with (unsupported version: 2) error if using staticcheck v2024.1.1 #18

Closed
jcsalem opened this issue Feb 11, 2025 · 1 comment
Closed

Comments

@jcsalem
Copy link

jcsalem commented Feb 11, 2025

When running this action, I now get errors like:

-: internal error in importing "internal/byteorder" (unsupported version: 2); please report an issue (compile)
-: internal error in importing "internal/cpu" (unsupported version: 2); please report an issue (compile)
-: internal error in importing "internal/goarch" (unsupported version: 2); please report an issue (compile)
-: internal error in importing "internal/goos" (unsupported version: 2); please report an issue (compile)
-: internal error in importing "math/bits" (unsupported version: 2); please report an issue (compile)

when using staticcheck version 2024.1.1 with the recently released Go 1.24

Here's a snippet of the workflow that reproduces this:

     - name: staticcheck
        uses: dominikh/staticcheck-action@v1.3.1
        with:
          version: "2024.1.1"

I think (not sure) it can be fixed by removing the specific version name.

More detail on this error can be found here: dominikh/go-tools#1627

@jcsalem jcsalem changed the title Broken with if using staticcheck v2024.1.1 Broken with (unsupported version: 2) error if using staticcheck v2024.1.1 Feb 11, 2025
@dominikh
Copy link
Owner

Staticcheck 2025.1 has been released, which is required when using Go 1.24.

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

No branches or pull requests

2 participants