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

chore: remove use of io/ioutil #1421

Merged
merged 1 commit into from
Jan 9, 2025
Merged

chore: remove use of io/ioutil #1421

merged 1 commit into from
Jan 9, 2025

Conversation

tenthirtyam
Copy link
Collaborator

Summary of Pull Request

Removes the use of io/ioutil.

As of Go 1.16, the same functionality is now provided by package io or package os, and those implementations are preferred in new code.

Type of Pull Request

  • This is a bug fix.
  • This is an enhancement or feature.
  • This is a code style/formatting update.
  • This is a documentation update.
  • This is a refactoring update.
  • This is a chore update
  • This is something else.
    Please describe:

Related to Existing Issues

Test and Documentation Coverage

For bug fixes or features:

  • Tests have been completed.
  • Documentation has been added/updated.

Breaking Changes?

  • Yes, there are breaking changes.
  • No, there are no breaking changes.

@tenthirtyam tenthirtyam added the chore Chore label Oct 12, 2024
@tenthirtyam tenthirtyam requested a review from annakhm October 12, 2024 03:19
@tenthirtyam tenthirtyam self-assigned this Oct 12, 2024
@tenthirtyam tenthirtyam added needs-review Needs Review size/s Relative Sizing: small labels Oct 12, 2024
@ksamoray
Copy link
Collaborator

Code LGTM - would wait until we reestablish our acceptance tests CI env to validate this change

@tenthirtyam tenthirtyam requested review from a team and removed request for annakhm October 28, 2024 21:33
@tenthirtyam
Copy link
Collaborator Author

@vmware/terraform-provider-nsxt-maintainers: reminder.

Removes the use of `io/ioutil`.

As of Go 1.16, the same functionality is now provided by package `io` or package `os`, and those implementations are preferred in new code.

Signed-off-by: Ryan Johnson <[email protected]>
@tenthirtyam tenthirtyam force-pushed the chore/remove-io-ioutil branch from 9120fe1 to e65b291 Compare January 8, 2025 14:44
Copy link
Member

@salv-orlando salv-orlando left a comment

Choose a reason for hiding this comment

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

LGTM.
This change is safe per https://pkg.go.dev/io/ioutil#ReadAll and should not need a full validation,

@ksamoray ksamoray merged commit 45f3dad into master Jan 9, 2025
6 checks passed
@ksamoray ksamoray deleted the chore/remove-io-ioutil branch January 9, 2025 08:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
chore Chore needs-review Needs Review size/s Relative Sizing: small
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants