-
Notifications
You must be signed in to change notification settings - Fork 2.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
Replace deprecated ioutil #15871
Replace deprecated ioutil #15871
Conversation
bfe99e2
to
ccf1fe0
Compare
Sigh, this is incomplete. Grepping shows a total of 125 more files that need an |
8057a93
to
fd24b25
Compare
c261789
to
c8403ac
Compare
What I did (mostly) is:
Though actual replacement method varied toward the middle when I realized I had 75 more files to go 🤣 |
d3a7b95
to
ade2642
Compare
Package `io/ioutil` was deprecated in golang 1.16, preventing podman from building under Fedora 37. Fortunately, functionality identical replacements are provided by the packages `io` and `os`. Replace all usage of all `io/ioutil` symbols with appropriate substitutions according to the golang docs. Signed-off-by: Chris Evich <[email protected]>
ade2642
to
d968f3f
Compare
LGTM |
I was waiting until all the tests passed. Reviewer note: I have almost ZERO understanding of the impact any of these changes have other than passing the tests. I manually looked through all the diffs, found/fixed a few typos, but otherwise this PR is as-is, from a non-golang expert. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
/lgtm |
/approve |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: cevich, mheon The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
Ref: containers#15871 Signed-off-by: Chris Evich <[email protected]>
Package
io/ioutil
was deprecated in golang 1.16, preventing podman frombuilding under Fedora 37. Fortunately, functionality identical
replacements are provided by the packages
io
andos
. Replace allusage of all
io/ioutil
symbols with appropriate substitutionsaccording to the golang docs.
Does this PR introduce a user-facing change?