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

refactor: move from io/ioutil to io and os package #827

Merged
merged 1 commit into from
Oct 27, 2021
Merged

refactor: move from io/ioutil to io and os package #827

merged 1 commit into from
Oct 27, 2021

Conversation

Juneezee
Copy link
Contributor

What

This PR replaces the existing io/ioutil functions with their new definitions in io and os packages.

Why

The io/ioutil package has been deprecated in Go 1.16 (See https://golang.org/doc/go1.16#ioutil). Since k3d has been upgraded to Go 1.17 (5aa1edf), we can remove the usage of io/ioutil package.

Implications

No breaking changes.

The io/ioutil package has been deprecated as of Go 1.16, see
https://golang.org/doc/go1.16#ioutil. This commit replaces the existing
io/ioutil functions with their new definitions in io and os packages.

Signed-off-by: Eng Zer Jun <engzerjun@gmail.com>
@iwilltry42 iwilltry42 added this to the v5.0.2 milestone Oct 27, 2021
Copy link
Member

@iwilltry42 iwilltry42 left a comment

Choose a reason for hiding this comment

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

LGTM!

@iwilltry42
Copy link
Member

Hi @Juneezee , this looks clean, thanks a lot for your contribution! 🙂

@iwilltry42 iwilltry42 merged commit 5e5a35c into k3d-io:main Oct 27, 2021
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.

2 participants