Skip to content

Commit

Permalink
deps: Update all direct dependencies
Browse files Browse the repository at this point in the history
* go get $(go list -f '{{if not (or .Main .Indirect)}}{{.Path}}{{end}}' -m all)
* Update go version in go.mod to 1.19.
* go mod tidy
  • Loading branch information
bep committed Nov 28, 2023
1 parent c419971 commit 2a63c9c
Show file tree
Hide file tree
Showing 5 changed files with 131 additions and 322 deletions.
5 changes: 2 additions & 3 deletions afero_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ import (
"fmt"
"io"
iofs "io/fs"
"io/ioutil"
"os"
"path/filepath"
"runtime"
Expand Down Expand Up @@ -101,7 +100,7 @@ func TestOpenFile(t *testing.T) {
f.Close()

f, _ = fs.OpenFile(path, os.O_RDONLY, 0o600)
contents, _ := ioutil.ReadAll(f)
contents, _ := io.ReadAll(f)
expectedContents := "initial|append"
if string(contents) != expectedContents {
t.Errorf("%v: appending, expected '%v', got: '%v'", fs.Name(), expectedContents, string(contents))
Expand All @@ -113,7 +112,7 @@ func TestOpenFile(t *testing.T) {
t.Error(fs.Name(), "OpenFile (O_TRUNC) failed:", err)
continue
}
contents, _ = ioutil.ReadAll(f)
contents, _ = io.ReadAll(f)
if string(contents) != "" {
t.Errorf("%v: expected truncated file, got: '%v'", fs.Name(), string(contents))
}
Expand Down
5 changes: 2 additions & 3 deletions composite_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ import (
"bytes"
"fmt"
"io"
"io/ioutil"
"os"
"testing"
"time"
Expand Down Expand Up @@ -69,7 +68,7 @@ func TestUnionCreateExisting(t *testing.T) {
t.Errorf("Failed to write file: %s", err)
}
fh.Seek(0, 0)
data, err := ioutil.ReadAll(fh)
data, err := io.ReadAll(fh)
if err != nil {
t.Errorf("Failed to read file: %s", err)
}
Expand All @@ -79,7 +78,7 @@ func TestUnionCreateExisting(t *testing.T) {
fh.Close()

fh, _ = base.Open("/home/test/file.txt")
data, _ = ioutil.ReadAll(fh)
data, _ = io.ReadAll(fh)
if string(data) != "This is a test" {
t.Errorf("Got wrong data in base file")
}
Expand Down
42 changes: 34 additions & 8 deletions go.mod
Original file line number Diff line number Diff line change
@@ -1,13 +1,39 @@
module github.com/spf13/afero

require (
cloud.google.com/go/storage v1.14.0
github.com/googleapis/google-cloud-go-testing v0.0.0-20200911160855-bcd43fbb19e8
github.com/pkg/sftp v1.13.1
golang.org/x/crypto v0.0.0-20220722155217-630584e8d5aa
golang.org/x/oauth2 v0.0.0-20210218202405-ba52d332ba99
golang.org/x/text v0.3.7
google.golang.org/api v0.40.0
cloud.google.com/go/storage v1.35.1
github.com/googleapis/google-cloud-go-testing v0.0.0-20210719221736-1c9a4c676720
github.com/pkg/sftp v1.13.6
golang.org/x/crypto v0.16.0
golang.org/x/oauth2 v0.15.0
golang.org/x/text v0.14.0
google.golang.org/api v0.152.0
)

go 1.16
require (
cloud.google.com/go v0.110.10 // indirect
cloud.google.com/go/compute v1.23.3 // indirect
cloud.google.com/go/compute/metadata v0.2.3 // indirect
cloud.google.com/go/iam v1.1.5 // indirect
github.com/golang/groupcache v0.0.0-20210331224755-41bb18bfe9da // indirect
github.com/golang/protobuf v1.5.3 // indirect
github.com/google/s2a-go v0.1.7 // indirect
github.com/google/uuid v1.4.0 // indirect
github.com/googleapis/enterprise-certificate-proxy v0.3.2 // indirect
github.com/googleapis/gax-go/v2 v2.12.0 // indirect
github.com/kr/fs v0.1.0 // indirect
go.opencensus.io v0.24.0 // indirect
golang.org/x/net v0.19.0 // indirect
golang.org/x/sync v0.5.0 // indirect
golang.org/x/sys v0.15.0 // indirect
golang.org/x/time v0.5.0 // indirect
golang.org/x/xerrors v0.0.0-20220907171357-04be3eba64a2 // indirect
google.golang.org/appengine v1.6.7 // indirect
google.golang.org/genproto v0.0.0-20231106174013-bbf56f31fb17 // indirect
google.golang.org/genproto/googleapis/api v0.0.0-20231106174013-bbf56f31fb17 // indirect
google.golang.org/genproto/googleapis/rpc v0.0.0-20231120223509-83a465c0220f // indirect
google.golang.org/grpc v1.59.0 // indirect
google.golang.org/protobuf v1.31.0 // indirect
)

go 1.19
Loading

0 comments on commit 2a63c9c

Please sign in to comment.