diff options
author | Bjørn Erik Pedersen <[email protected]> | 2023-03-01 09:34:13 +0100 |
---|---|---|
committer | Bjørn Erik Pedersen <[email protected]> | 2023-03-01 16:28:43 +0100 |
commit | a669467d98f54860fa7f06fbfdd1d8fdc98773fd (patch) | |
tree | 29c6444f8489006af9770e089adec3f1c4a3c081 /magefile.go | |
parent | d453c12742e992d672fcf3e61b7a5ed35391c4b0 (diff) | |
download | hugo-a669467d98f54860fa7f06fbfdd1d8fdc98773fd.tar.gz hugo-a669467d98f54860fa7f06fbfdd1d8fdc98773fd.zip |
Misc ioutil deprecation adjustments
To make the tests pass.
* Replace io => os.ReadFile in magefile.go
* Adjust failing image test vs fs.DirEntry
* Adjust poller test
See #10732
Diffstat (limited to 'magefile.go')
-rw-r--r-- | magefile.go | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/magefile.go b/magefile.go index f00964cf7..bd9c5b830 100644 --- a/magefile.go +++ b/magefile.go @@ -7,7 +7,6 @@ import ( "bytes" "errors" "fmt" - "io" "os" "path" "path/filepath" @@ -298,7 +297,7 @@ func TestCoverHTML() error { if err := sh.Run(goexe, "test", "-coverprofile="+cover, "-covermode=count", pkg); err != nil { return err } - b, err := io.ReadFile(cover) + b, err := os.ReadFile(cover) if err != nil { if os.IsNotExist(err) { continue |