Skip to content
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

fix: set min-go-version to 1.16 #2048

Merged
merged 1 commit into from
Oct 9, 2021
Merged

Conversation

troyanov
Copy link
Contributor

@troyanov troyanov commented Oct 7, 2021

Changes that were introduced in 8ccea19 made it impossible to compile sarama with go 1.15
(which is mentioned as officially supported version in the README file)

io.Discard and io.ReadAll appeared only in 1.16
https://golang.org/doc/go1.16#ioutil

To address this issue this commit bumps minimal supported go version
defined in go.mod file, to provide a clear message that 1.16 is required

> go build
./config.go:678:37: undefined: io.Discard
./decompress.go:43:10: undefined: io.ReadAll
./decompress.go:55:10: undefined: io.ReadAll
./sarama.go:89:29: undefined: io.Discard
note: module requires Go 1.16

Also it looks like that support of go 1.15 was also dropped in the CI workflow by 974e37b and 1.16 is the min version that is currently being checked https://github.com/Shopify/sarama/blob/main/.github/workflows/ci.yml#L16

@troyanov troyanov requested a review from bai as a code owner October 7, 2021 00:05
@ghost ghost added the cla-needed label Oct 7, 2021
@troyanov troyanov changed the title fix: update min-go-version to 1.16 fix: set min-go-version to 1.16 Oct 7, 2021
Changes that were introduced in 8ccea19
made it impossible to compile sarama with go 1.15
(which is mentioned as officially supported version in the README file)

io.Discard and io.ReadAll appeared only in 1.16
https://golang.org/doc/go1.16#ioutil

To address this issue this commit bumps minimal supported go version
defined in go.mod file, to provide a clear message that 1.16 is required

```
> go build
./config.go:678:37: undefined: io.Discard
./decompress.go:43:10: undefined: io.ReadAll
./decompress.go:55:10: undefined: io.ReadAll
./sarama.go:89:29: undefined: io.Discard
note: module requires Go 1.16
```
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants