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

Update to use os & io instead of ioutil #1090

Merged
merged 2 commits into from Nov 2, 2023
Merged

Update to use os & io instead of ioutil #1090

merged 2 commits into from Nov 2, 2023

Conversation

ankur22
Copy link
Collaborator

@ankur22 ankur22 commented Nov 1, 2023

What?

Replacing ioutil with os and io where needed.

Why?

ioutil is deprecated, and instead we should work with os and io.

Checklist

  • I have performed a self-review of my code
  • I have added tests for my changes
  • I have commented on my code, particularly in hard-to-understand areas

Related PR(s)/Issue(s)

Copy link
Member

@inancgumus inancgumus left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice!

Copy link
Collaborator

@ka3de ka3de left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. Thanks!

ioutil is deprecated, and instead we should work with os when writing
files to the disk.
This replaces the usage of ioutil.Discard with io.Discard since ioutil
has been deprecated.
@ankur22 ankur22 merged commit bebb4ae into main Nov 2, 2023
17 checks passed
@ankur22 ankur22 deleted the fix/writefile branch November 2, 2023 10:14
@ankur22 ankur22 changed the title Update to use os & io instead ioutil Update to use os & io instead of ioutil Nov 2, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants