Skip to content

Replace deprecated io/ioutil with modern os/io equivalents#1233

Open
ramonskie wants to merge 1 commit intomasterfrom
fix/remove-ioutil-deprecations
Open

Replace deprecated io/ioutil with modern os/io equivalents#1233
ramonskie wants to merge 1 commit intomasterfrom
fix/remove-ioutil-deprecations

Conversation

@ramonskie
Copy link
Contributor

Summary

  • Replaces ioutil.ReadFile, ioutil.TempDir, and ioutil.ReadDir calls with their Go 1.16+ equivalents (os.ReadFile, os.MkdirTemp, os.ReadDir)
  • Removes the io/ioutil import from all affected files

Motivation

io/ioutil was deprecated in Go 1.16. All buildpacks now target Go 1.24.x, so these modern replacements are fully supported.

Related

Part of a series of identical PRs across all CF buildpacks and libbuildpack (see cloudfoundry/libbuildpack#211).

@ramonskie ramonskie force-pushed the fix/remove-ioutil-deprecations branch from af755c7 to ac6de77 Compare March 3, 2026 10:26
Replaces ioutil.ReadFile, TempDir and ReadDir calls with their Go 1.16+
replacements in os package. Removes the io/ioutil import from all
affected files.
@ramonskie ramonskie force-pushed the fix/remove-ioutil-deprecations branch from ac6de77 to 243b041 Compare March 3, 2026 12:18
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.

1 participant