[PR #1417] [MERGED] refactor: move from io/ioutil to io and os packages #1933

Closed
opened 2026-03-01 21:53:18 +03:00 by kerem · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/nektos/act/pull/1417
Author: @Juneezee
Created: 10/29/2022
Status: Merged
Merged: 10/29/2022
Merged by: @mergify[bot]

Base: masterHead: refactor/deprecate-ioutil


📝 Commits (2)

  • 6e748b4 refactor: move from io/ioutil to io and os packages
  • 879adff Merge branch 'master' into refactor/deprecate-ioutil

📊 Changes

7 files changed (+25 additions, -30 deletions)

View changed files

📝 pkg/common/file.go (+1 -3)
📝 pkg/common/git/git.go (+3 -4)
📝 pkg/common/git/git_test.go (+2 -3)
📝 pkg/container/docker_images_test.go (+3 -3)
📝 pkg/container/docker_run.go (+1 -2)
📝 pkg/model/planner.go (+13 -13)
📝 pkg/runner/runner.go (+2 -2)

📄 Description

The io/ioutil package has been deprecated in Go 1.16 (See https://pkg.go.dev/io/ioutil). This PR replaces the existing io/ioutil functions with their new definitions in io and os packages.

  • ioutil.Discard => io.Discard
  • ioutil.NopCloser => io.NopCloser
  • ioutil.ReadAll => io.ReadAll
  • ioutil.ReadDir => os.ReadDir
  • ioutil.TempDir => os.MkdirTemp
  • ioutil.TempFile => os.CreateTemp
  • ioutil.WriteFile => os.WriteFile

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/nektos/act/pull/1417 **Author:** [@Juneezee](https://github.com/Juneezee) **Created:** 10/29/2022 **Status:** ✅ Merged **Merged:** 10/29/2022 **Merged by:** [@mergify[bot]](https://github.com/apps/mergify) **Base:** `master` ← **Head:** `refactor/deprecate-ioutil` --- ### 📝 Commits (2) - [`6e748b4`](https://github.com/nektos/act/commit/6e748b4a26a73332fac65e87b97b39bf7f2f748b) refactor: move from io/ioutil to io and os packages - [`879adff`](https://github.com/nektos/act/commit/879adffbb416cce29bf4c597a7eb18abb0763125) Merge branch 'master' into refactor/deprecate-ioutil ### 📊 Changes **7 files changed** (+25 additions, -30 deletions) <details> <summary>View changed files</summary> 📝 `pkg/common/file.go` (+1 -3) 📝 `pkg/common/git/git.go` (+3 -4) 📝 `pkg/common/git/git_test.go` (+2 -3) 📝 `pkg/container/docker_images_test.go` (+3 -3) 📝 `pkg/container/docker_run.go` (+1 -2) 📝 `pkg/model/planner.go` (+13 -13) 📝 `pkg/runner/runner.go` (+2 -2) </details> ### 📄 Description The `io/ioutil` package has been deprecated in Go 1.16 (See https://pkg.go.dev/io/ioutil). This PR replaces the existing `io/ioutil` functions with their new definitions in `io` and `os` packages. - `ioutil.Discard` => `io.Discard` - `ioutil.NopCloser` => `io.NopCloser` - `ioutil.ReadAll` => `io.ReadAll` - `ioutil.ReadDir` => `os.ReadDir` - `ioutil.TempDir` => `os.MkdirTemp` - `ioutil.TempFile` => `os.CreateTemp` - `ioutil.WriteFile` => `os.WriteFile` [\[1\]]: https://pkg.go.dev/io/ioutil#ReadDir --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
kerem 2026-03-01 21:53:18 +03:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/act#1933
No description provided.