You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I figured out what the issue is but I leave what I wrote initially below since I think the error message can be improved and not just panic.
When trying the same example on an Intel Mac I got a useful output that made me resolve the issue.
Maybe the arm code can be fixed to give a useful error message.
Below is on go 1.20.1 darwin/amd64
$ go vet --vettool=$(which sqlrows) ./...
# internal/abi
sqlrows: /usr/local/go/src/internal/abi/abi.go:8:2: could not import internal/goarch (cannot import "internal/goarch" (unknown iexport format version 2), export data is newer version - update tool)
# runtime/internal/math
sqlrows: /usr/local/go/src/runtime/internal/math/math.go:7:8: could not import internal/goarch (cannot import "internal/goarch" (unknown iexport format version 2), export data is newer version - update tool)
# internal/bytealg
sqlrows: /usr/local/go/src/internal/bytealg/bytealg.go:8:2: could not import internal/cpu (cannot import "internal/cpu" (unknown iexport format version 2), export data is newer version - update tool)
# runtime/internal/sys
sqlrows: /usr/local/go/src/runtime/internal/sys/consts.go:8:2: could not import internal/goarch (cannot import "internal/goarch" (unknown iexport format version 2), export data is newer version - update tool)
# runtime
sqlrows: /usr/local/go/src/runtime/alg.go:8:2: could not import internal/cpu (cannot import "internal/cpu" (unknown iexport format version 2), export data is newer version - update tool)
-- BELOW THE ISSUE I WANTED TO FILE --
What version of Go are you using (go version)?
$ go version
go version go1.20.1 darwin/arm64
Does this issue reproduce with the latest release?
Yes
What operating system and processor architecture are you using (go env)?
I had this error in a big project so I tried to make a minimal working example and the code below results in the same issue.
It is not dependent on sqlrows, it also gives the same error with bodyclose for example.
echo "package main\nfunc main(){\n}" > main.go
go mod init example.com/foo
go mod tidy
go vet --vettool=$(which sqlrows)
I figured out what the issue is but I leave what I wrote initially below since I think the error message can be improved and not just panic.
When trying the same example on an Intel Mac I got a useful output that made me resolve the issue.
Maybe the arm code can be fixed to give a useful error message.
Below is on go 1.20.1 darwin/amd64
-- BELOW THE ISSUE I WANTED TO FILE --
What version of Go are you using (
go version
)?Does this issue reproduce with the latest release?
Yes
What operating system and processor architecture are you using (
go env
)?go env
OutputWhat did you do?
I had this error in a big project so I tried to make a minimal working example and the code below results in the same issue.
It is not dependent on sqlrows, it also gives the same error with bodyclose for example.
What did you expect to see?
The tool to work.
What did you see instead?
go vet --vettool=$(which sqlrows)
Panic OutputThe text was updated successfully, but these errors were encountered: