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: use ioutil for Go 1.15 and lower #492

Merged
merged 1 commit into from Jan 17, 2022
Merged

fix: use ioutil for Go 1.15 and lower #492

merged 1 commit into from Jan 17, 2022

Commits on Jan 17, 2022

  1. fix: use ioutil for Go 1.15 and lower

    Since Go 1.16 it has been recommended to no longer use ioutil in new
    code. We want Gomega to look modern so we removed references to ioutil,
    which also removes the chance of outdated code being copied. However we
    got feedback that some users were stuck on Go 1.15 and lower and were
    broken by this change. We have therefore introduces a "gutil" package
    that implements similar functions to ioutil and redirect to the right
    functions appropriate to the version of Go. This will hopefully:
    - make it look intentional that ioutil is still used (rather than
    looking like an omission)
    - reduce the chance of ioutil usage being propagated by copying
    - limit the possibility of deprecation warnings
    blgm committed Jan 17, 2022
    Copy the full SHA
    a0c4408 View commit details
    Browse the repository at this point in the history