chore: Replace deprecated ioutil.ReadFile and ioutil.ReadDir in workspaceenv_test#1412
Conversation
…rkspaceenv_test Updated code to use `os.ReadFile` and `os.ReadDir`, as `ioutil` package was deprecated in Go 1.16. Signed-off-by: Rohan Kumar <rohaan@redhat.com>
|
Hi @rohanKanojia. Thanks for your PR. I'm waiting for a devfile member to verify that this patch is reasonable to test. If it is, they should reply with Once the patch is verified, the new status will be reflected by the I understand the commands that are listed here. DetailsInstructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. |
|
/ok-to-test |
|
/retest |
|
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: akurinnoy, rohanKanojia The full list of commands accepted by this bot can be found here. DetailsNeeds approval from an approver in each of these files:Approvers can indicate their approval by writing |
What does this PR do?
Updated code to use
os.ReadFileandos.ReadDir, asioutilpackage was deprecated in Go 1.16 (See ioutil godoc).What issues does this PR fix or reference?
This is just a minor code smell fix, it is not related to any issue.
Is it tested? How?
I've only verified it via IDE that code is not breaking any build.
PR Checklist
/test v8-devworkspace-operator-e2e, v8-che-happy-pathto trigger)v8-devworkspace-operator-e2e: DevWorkspace e2e testv8-che-happy-path: Happy path for verification integration with Che