CNF-23380: Migrate away from deprecated ioutil#292
CNF-23380: Migrate away from deprecated ioutil#292sebrandon1 wants to merge 1 commit intoopenshift:mainfrom
Conversation
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Repository: openshift/coderabbit/.coderabbit.yaml Review profile: CHILL Plan: Enterprise Run ID: 📒 Files selected for processing (3)
WalkthroughReplace deprecated ioutil APIs with os equivalents across three files: switch ReadFile to os.ReadFile and TempFile to os.CreateTemp; remove unused ChangesIoutil → os replacements
Estimated code review effort🎯 2 (Simple) | ⏱️ ~8 minutes 🚥 Pre-merge checks | ✅ 10 | ❌ 2❌ Failed checks (2 warnings)
✅ Passed checks (10 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 Generate unit tests (beta)
Comment |
has one ioutil.
|
|
Tip For best results, initiate chat on the files or code changes. 🧩 Analysis chain🏁 Script executed: Length of output: 1466 @xingxingxia @sebrandon1 Good catch! I've verified that However, this file is a generated file created by // Code generated for package v4_00_assets by go-bindata DO NOT EDIT. (@generated)To address this ioutil usage, you'll need to:
Would you like me to help investigate the bindata generation process or search for the command/script that generates this file? |
|
Yes, this is bindata so I didn't edit that file. |
|
Maybe it needs regenerated to be updated? |
|
I think that's a good plan. I wonder if that should be a separate PR because regenerating might encompass more changes than just ioutil. |
c6bfab3 to
882c6f7
Compare
|
/retest |
882c6f7 to
1d5fcdc
Compare
|
@sebrandon1: This pull request references CNF-23380 which is a valid jira issue. Warning: The referenced jira issue has an invalid target version for the target branch this PR targets: expected the story to target the "5.0.0" version, but no target version was set. DetailsIn response to this:
Instructions 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 openshift-eng/jira-lifecycle-plugin repository. |
1d5fcdc to
969a042
Compare
|
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: 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 |
|
@sebrandon1: all tests passed! Full PR test history. Your PR dashboard. 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. I understand the commands that are listed here. |
ioutilhas been deprecated since Go 1.16: https://go.dev/doc/go1.16#ioutilTracking issue: redhat-best-practices-for-k8s/telco-bot#52
Summary by CodeRabbit