make staticcheckfails with the error
make staticcheck
# -: cannot import "container/list" (unexpected escape sequence in export data), possibly version skew - reinstall package (compile)
# -: cannot import "internal/cpu" (unexpected escape sequence in export data), possibly version skew - reinstall package (compile)
# -: cannot import "internal/goarch" (unknown bexport format version -1 ("u\x01\x00\x00\x00\x00\x00\x00\x003\...
Steps to reproduce
Go version: 1.20 (not 1.18)
go version
# go1.20.5 darwin/amd64
printenv | grep '^GO'
# GOROOT=/usr/local/Cellar/go/1.20.5/libexec
# GOPATH=/Users/akranga/hub/go
make clean
go mod vendor
go mod tidy
# wait...
make statictest
See error from above
Expected behavior
Static check should be executed
Side note
It looks like the error has been when upgraded to Go version v1.20. Suggesting further to use Go version v1.20.*
make staticcheckfails with the errorSteps to reproduce
Go version:
1.20(not1.18)make clean go mod vendor go mod tidy # wait... make statictestSee error from above
Expected behavior
Static check should be executed
Side note
It looks like the error has been when upgraded to Go version
v1.20. Suggesting further to use Go versionv1.20.*