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

io/ioutil Deprecation Warnings #82

Open
nirosys opened this issue Dec 12, 2024 · 0 comments
Open

io/ioutil Deprecation Warnings #82

nirosys opened this issue Dec 12, 2024 · 0 comments
Labels
code cleanup Improve the quiality of the code (refactor, other implementation etc.)

Comments

@nirosys
Copy link
Contributor

nirosys commented Dec 12, 2024

Below are a few lints that are coming up with staticcheck. Our GHAs are currently configured to only show new lints, so these may be getting hidden due to that. The deprecation of io/ioutil is something that should be addressed since the package will at some point be removed.

  • hash_reader_test.go:19:2: "io/ioutil" has been deprecated since Go 1.19: As of Go 1.16, the same functionality is now provided by package [io] or package [os], and those implementations should be preferred in new code. See the specific function documentation for details. (SA1019)
  • hash_writer_test.go:20:2: "io/ioutil" has been deprecated since Go 1.19: As of Go 1.16, the same functionality is now provided by package [io] or package [os], and those implementations should be preferred in new code. See the specific function documentation for details. (SA1019)
  • ion_hash_test.go:20:2: "io/ioutil" has been deprecated since Go 1.19: As of Go 1.16, the same functionality is now provided by package [io] or package [os], and those implementations should be preferred in new code. See the specific function documentation for details. (SA1019)

The functionality removed was scattered between io and os. Some more info here, with links to the proposals that this comes from.

@nirosys nirosys added the code cleanup Improve the quiality of the code (refactor, other implementation etc.) label Dec 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
code cleanup Improve the quiality of the code (refactor, other implementation etc.)
Projects
None yet
Development

No branches or pull requests

1 participant