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
go test fails with build error #537
Comments
It appears that ReadAll is no longer available under io. Further reading suggests to use ioutil instead. |
It's the other way around. ioutil was deprecated in Go 1.16, and io.ReadAll was added. I can't see anything in the error message that suggests this is to do with Gomega. Am I missing something? |
I know right, but io.ReadAll stopped working and ioutils.ReadAll works. Go figure. I don't know how this issue ended up here, I posted it over at alpaca so you can close it if you think its a non-issue |
I guess it's worth checking the Go version that's being used. It also might be worth checking whether there are any other versions of Go on the system, as sometimes a test might modify the PATH and end up using a different version of Go than you thought you were using. Gomega uses build tags so that ioutil is used for Go 1.15 and earlier, and io.ReadAll for Go 1.16 and higher. It's possible that this has gone wrong, but the error message is pointing to "./authenticator_test.go:87:15" which I don't think is part of Gomega. |
I installed go today and picked up this issue, version 1.18 windows/amd64, oh I see the issue. the wsl version of GO is 1.13. solved. |
The text was updated successfully, but these errors were encountered: