-
Notifications
You must be signed in to change notification settings - Fork 4.1k
security: remove uses of deprecated package io/ioutil #92861
Copy link
Copy link
Closed
Labels
C-enhancementSolution expected to add code/behavior + preserve backward-compat (pg compat issues are exception)Solution expected to add code/behavior + preserve backward-compat (pg compat issues are exception)E-starterMight be suitable for a starter project for new employees or team members.Might be suitable for a starter project for new employees or team members.T-server-and-securityDB Server & SecurityDB Server & Securityhelp wantedHelp is requested / needed by the one who filed the issue to fix it.Help is requested / needed by the one who filed the issue to fix it.v26.1.0-prerelease
Description
io/ioutil is deprecated as of Go 1.16 and officially marked as deprecated as of Go 1.19. The same functionality is now provided by package io or package os, and those implementations should be preferred in new code. It is currently used in:
pkg/security/securityassets/security_assets.go
pkg/security/securitytest/securitytest.go
pkg/server/dumpstore/dumpstore.go
pkg/server/dumpstore/dumpstore_test.go
pkg/server/heapprofiler/profilestore_test.go
Once those uses are removed, update nogo so that it doesn't exclude the files above from its analysis.
Jira issue: CRDB-22005
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
C-enhancementSolution expected to add code/behavior + preserve backward-compat (pg compat issues are exception)Solution expected to add code/behavior + preserve backward-compat (pg compat issues are exception)E-starterMight be suitable for a starter project for new employees or team members.Might be suitable for a starter project for new employees or team members.T-server-and-securityDB Server & SecurityDB Server & Securityhelp wantedHelp is requested / needed by the one who filed the issue to fix it.Help is requested / needed by the one who filed the issue to fix it.v26.1.0-prerelease