From e2852ca9fb370f7cb8a84e33697b306a680a11a9 Mon Sep 17 00:00:00 2001 From: Lars Lehtonen Date: Thu, 7 Sep 2023 08:23:38 -0700 Subject: [PATCH] internal/copy: deprecate io/ioutil (#336) Signed-off-by: Lars Lehtonen --- internal/copy/copy_dir_test.go | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/internal/copy/copy_dir_test.go b/internal/copy/copy_dir_test.go index 655adb7d79..f17f717b4c 100644 --- a/internal/copy/copy_dir_test.go +++ b/internal/copy/copy_dir_test.go @@ -4,7 +4,6 @@ package copy import ( - "io/ioutil" "os" "path/filepath" "testing" @@ -38,7 +37,7 @@ func TestCopyDir_symlinks(t *testing.T) { t.Fatal(err) } - err = ioutil.WriteFile(filepath.Join(subModuleDir, "main.tf"), []byte("hello"), 0644) + err = os.WriteFile(filepath.Join(subModuleDir, "main.tf"), []byte("hello"), 0644) if err != nil { t.Fatal(err) } @@ -74,7 +73,7 @@ func TestCopyDir_symlink_file(t *testing.T) { t.Fatal(err) } - err = ioutil.WriteFile(filepath.Join(moduleDir, "main.tf"), []byte("hello"), 0644) + err = os.WriteFile(filepath.Join(moduleDir, "main.tf"), []byte("hello"), 0644) if err != nil { t.Fatal(err) }