kafka-go icon indicating copy to clipboard operation
kafka-go copied to clipboard

Go1.16 cannot run tests

Open loktarjugg opened this issue 1 year ago • 2 comments

I am using go1.16. When running tests, I encountered an error "unix/syscall.go:83:16: undefined: unsafe.Slice". Upon further investigation, I found that the kafka-go package references testify v1.8.0, which requires at least go1.17. This prevents me from executing the tests.

Is it possible to downgrade testify to v1.7.0?

image

loktarjugg avatar Apr 19 '24 10:04 loktarjugg

I don't work much in this project, but it seems really unlikely this would be a good idea.

erikdw avatar Apr 19 '24 21:04 erikdw

Go 1.16 was released in February of 2021 and is 3 years out of date. I think probably the right solution here is to bump the required Go version to something more modern? https://github.com/segmentio/kafka-go/blob/main/go.mod#L3

isaacd9 avatar Apr 22 '24 20:04 isaacd9