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

Incompatible go version 1.22.5 #1588

Closed
brienze opened this issue Aug 14, 2024 · 4 comments
Closed

Incompatible go version 1.22.5 #1588

brienze opened this issue Aug 14, 2024 · 4 comments
Labels
waiting-for-feedback Waiting for the user to get back to us

Comments

@brienze
Copy link

brienze commented Aug 14, 2024

Hi,
First of all, thanks in advance for your support.
I am having issues when using Staticcheck related to my go version 1.22.5:

"module requires at least go1.22.5, but Staticcheck was built with go1.22 (compile)"

I am using latest tagged version (i.e. go install honnef.co/go/tools/cmd/staticcheck@latest). Same happens with master.
That's my command:

  • staticcheck -checks="SA*,S*,QF*"

I'd appreciate any support on that.

Regards,
Marcos

@brienze brienze added the needs-triage Newly filed issue that needs triage label Aug 14, 2024
@dominikh
Copy link
Owner

Please provide

  • The output of 'staticcheck -debug.version'
  • The output of 'go version' (outside of any Go module)
  • The output of 'go env'

@dominikh dominikh added waiting-for-feedback Waiting for the user to get back to us and removed needs-triage Newly filed issue that needs triage labels Aug 14, 2024
@brienze
Copy link
Author

brienze commented Aug 14, 2024

Hey,
Here are the outputs:

$ staticcheck -debug.version
staticcheck 2024.1 (0.5.0)

_Compiled with Go version: go1.22.5 X:boringcrypto
Main module:
        honnef.co/go/tools@v0.5.0 (sum: h1:29uoiIormS3Z6R+t56STz/oI4v+mB51TSmEOdJPgRnE=)
Dependencies:
        github.com/BurntSushi/toml@v1.4.1-0.20240526193622-a339e1f7089c (sum: h1:pxW6RcqyfI9/kWtOwnv/G+AzdKuy2ZrqINhenH4HyNs=)
        golang.org/x/exp/typeparams@v0.0.0-20231108232855-2478ac86f678 (sum: h1:1P7xPZEwZMoBoz0Yze5Nx2/4pxj6nw9ZqHWXqP0iRgQ=)
        golang.org/x/mod@v0.17.0 (sum: h1:zY54UmvipHiNd+pm+m0x9KhZ9hl1/7QNMyxXbc6ICqA=)
        golang.org/x/sync@v0.7.0 (sum: h1:YsImfSBoP9QPYL0xyKJPq0gcaJdG3rInoqxTWbfQu9M=)
        golang.org/x/tools@v0.21.1-0.20240531212143-b6235391adb3 (sum: h1:SHq4Rl+B7WvyM4XODon1LXtP7gcG49+7Jubt1gWWswY=)_
$go version
go version go1.22.5 linux/amd64
$ go env
GO111MODULE='on'
GOARCH='amd64'
GOBIN='/home/mbrienze/go/workspace/bin'
GOCACHE='/home/mbrienze/.cache/go-build'
GOENV='/home/mbrienze/.config/go/env'
GOEXE=''
GOEXPERIMENT=''
GOFLAGS=''
GOHOSTARCH='amd64'
GOHOSTOS='linux'
GOINSECURE=''
GOMODCACHE='/home/mbrienze/go/workspace/pkg/mod'
GONOPROXY='dev.azure.com'
GONOSUMDB='dev.azure.com'
GOOS='linux'
GOPATH='/home/mbrienze/go/workspace'
GOPRIVATE='dev.azure.com'
GOPROXY='https://proxy.golang.org,direct'
GOROOT='/home/mbrienze/go'
GOSUMDB='sum.golang.org'
GOTMPDIR=''
GOTOOLCHAIN='auto'
GOTOOLDIR='/home/mbrienze/go/pkg/tool/linux_amd64'
GOVCS=''
GOVERSION='go1.22.5'
GCCGO='gccgo'
GOAMD64='v1'
AR='ar'
CC='gcc'
CXX='g++'
CGO_ENABLED='1'
GOMOD='/dev/null'
GOWORK=''
CGO_CFLAGS='-O2 -g'
CGO_CPPFLAGS=''
CGO_CXXFLAGS='-O2 -g'
CGO_FFLAGS='-O2 -g'
CGO_LDFLAGS='-O2 -g'
PKG_CONFIG='pkg-config'
GOGCCFLAGS='-fPIC -m64 -pthread -Wl,--no-gc-sections -fmessage-length=0 -ffile-prefix-map=/tmp/go-build978548960=/tmp/go-build -gno-record-gcc-switches'

Thanks
Marcos

@dominikh
Copy link
Owner

Thanks. This looks identical to #1586 and I will merge the two issues.

@dominikh dominikh closed this as not planned Won't fix, can't repro, duplicate, stale Aug 14, 2024
@brienze
Copy link
Author

brienze commented Aug 14, 2024

Thanks for the quick response. :-)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
waiting-for-feedback Waiting for the user to get back to us
Projects
None yet
Development

No branches or pull requests

2 participants