mirror of
https://github.com/nektos/act.git
synced 2026-04-26 09:25:54 +03:00
[PR #1417] [MERGED] refactor: move from io/ioutil to io and os packages #1933
Labels
No labels
area/action
area/cli
area/docs
area/image
area/runner
area/workflow
backlog
confirmed/not-planned
kind/bug
kind/discussion
kind/external
kind/feature-request
kind/question
meta/duplicate
meta/invalid
meta/need-more-info
meta/resolved
meta/wontfix
meta/workaround
needs-work
pull-request
review/not-planned
size/M
size/XL
size/XXL
stale
stale-exempt
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/act#1933
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 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:
master← Head:refactor/deprecate-ioutil📝 Commits (2)
6e748b4refactor: move from io/ioutil to io and os packages879adffMerge 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/ioutilpackage has been deprecated in Go 1.16 (See https://pkg.go.dev/io/ioutil). This PR replaces the existingio/ioutilfunctions with their new definitions inioandospackages.ioutil.Discard=>io.Discardioutil.NopCloser=>io.NopCloserioutil.ReadAll=>io.ReadAllioutil.ReadDir=>os.ReadDirioutil.TempDir=>os.MkdirTempioutil.TempFile=>os.CreateTempioutil.WriteFile=>os.WriteFile🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.