Skip to content

Commit

Permalink
chore: remove refs to deprecated io/ioutil (#2404)
Browse files Browse the repository at this point in the history
Signed-off-by: guoguangwu <[email protected]>
  • Loading branch information
testwill authored Jul 6, 2023
1 parent 35f5883 commit 1fea9f7
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions scripts/regenerate/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ package main
import (
"encoding/json"
"fmt"
"io/ioutil"
"log"
"os"
"os/exec"
Expand Down Expand Up @@ -63,7 +62,7 @@ func regenerate(dir string) error {
return fmt.Errorf("%s: sqlc-dev generate failed\n%s", cwd, out)
}
if expectFailure {
if err := ioutil.WriteFile(filepath.Join(cwd, "stderr.txt"), out, 0644); err != nil {
if err := os.WriteFile(filepath.Join(cwd, "stderr.txt"), out, 0644); err != nil {
return fmt.Errorf("failed to update stderr.txt: %v", err)
}
}
Expand Down

0 comments on commit 1fea9f7

Please sign in to comment.