-
Notifications
You must be signed in to change notification settings - Fork 4.4k
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
consul/api@v1.9.0 uses go1.16-only variable #10470
Comments
Thank you for the bug report! Note the Go language policy is to only support the last two Major versions, so similarly we would only support the last two major Go versions for the The We will update our CI to test the |
Thanks, @dnephin Would you consider releasing a |
Yes, we have tagged v1.9.1 for the api: https://github.com/hashicorp/consul/releases/tag/api%2Fv1.9.1 |
Overview of the Issue
When pulling the latest
consul/api
(v1.9.0
) I get a build error when using go < 1.16 due to the use ofio.Discard
Reproduction Steps
Fix
The
go.mod
file says that go1.12 is the minimum version.To keep
consul/api
compatible with previous versions of Go, it should useioutil.Discard
rather thanio.Discard
, which was not introduced untilgo1.16
The text was updated successfully, but these errors were encountered: