Skip to content

Staticcheck fails with error #53

@akranga

Description

@akranga

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.*

Metadata

Metadata

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions