From fa5db3f952f6b79dc0a1eaaf30c6d0032fd7d8df Mon Sep 17 00:00:00 2001 From: Kenichi Kamiya Date: Tue, 26 Sep 2023 04:47:11 +0900 Subject: [PATCH] wip --- cmd/replace-with-commands/main.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/replace-with-commands/main.go b/cmd/replace-with-commands/main.go index 7afa762..f4fc1ea 100644 --- a/cmd/replace-with-commands/main.go +++ b/cmd/replace-with-commands/main.go @@ -69,7 +69,7 @@ $ replace-with-commands --prefix='# @updator:' --list .github/workflows/*.yml newLines := []string{} isDirty := false - file, err := os.Create(path) + file, err := os.Open(path) if err != nil { log.Fatalf("%+v", xerrors.Errorf("%s: %w", path, err)) }