Skip to content

Commit 2a63c9c

Browse files
committed
deps: Update all direct dependencies
* 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
1 parent c419971 commit 2a63c9c

File tree

5 files changed

+131
-322
lines changed

5 files changed

+131
-322
lines changed

afero_test.go

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@ import (
1919
"fmt"
2020
"io"
2121
iofs "io/fs"
22-
"io/ioutil"
2322
"os"
2423
"path/filepath"
2524
"runtime"
@@ -101,7 +100,7 @@ func TestOpenFile(t *testing.T) {
101100
f.Close()
102101

103102
f, _ = fs.OpenFile(path, os.O_RDONLY, 0o600)
104-
contents, _ := ioutil.ReadAll(f)
103+
contents, _ := io.ReadAll(f)
105104
expectedContents := "initial|append"
106105
if string(contents) != expectedContents {
107106
t.Errorf("%v: appending, expected '%v', got: '%v'", fs.Name(), expectedContents, string(contents))
@@ -113,7 +112,7 @@ func TestOpenFile(t *testing.T) {
113112
t.Error(fs.Name(), "OpenFile (O_TRUNC) failed:", err)
114113
continue
115114
}
116-
contents, _ = ioutil.ReadAll(f)
115+
contents, _ = io.ReadAll(f)
117116
if string(contents) != "" {
118117
t.Errorf("%v: expected truncated file, got: '%v'", fs.Name(), string(contents))
119118
}

composite_test.go

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ import (
44
"bytes"
55
"fmt"
66
"io"
7-
"io/ioutil"
87
"os"
98
"testing"
109
"time"
@@ -69,7 +68,7 @@ func TestUnionCreateExisting(t *testing.T) {
6968
t.Errorf("Failed to write file: %s", err)
7069
}
7170
fh.Seek(0, 0)
72-
data, err := ioutil.ReadAll(fh)
71+
data, err := io.ReadAll(fh)
7372
if err != nil {
7473
t.Errorf("Failed to read file: %s", err)
7574
}
@@ -79,7 +78,7 @@ func TestUnionCreateExisting(t *testing.T) {
7978
fh.Close()
8079

8180
fh, _ = base.Open("/home/test/file.txt")
82-
data, _ = ioutil.ReadAll(fh)
81+
data, _ = io.ReadAll(fh)
8382
if string(data) != "This is a test" {
8483
t.Errorf("Got wrong data in base file")
8584
}

go.mod

Lines changed: 34 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,39 @@
11
module github.com/spf13/afero
22

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

13-
go 1.16
13+
require (
14+
cloud.google.com/go v0.110.10 // indirect
15+
cloud.google.com/go/compute v1.23.3 // indirect
16+
cloud.google.com/go/compute/metadata v0.2.3 // indirect
17+
cloud.google.com/go/iam v1.1.5 // indirect
18+
github.com/golang/groupcache v0.0.0-20210331224755-41bb18bfe9da // indirect
19+
github.com/golang/protobuf v1.5.3 // indirect
20+
github.com/google/s2a-go v0.1.7 // indirect
21+
github.com/google/uuid v1.4.0 // indirect
22+
github.com/googleapis/enterprise-certificate-proxy v0.3.2 // indirect
23+
github.com/googleapis/gax-go/v2 v2.12.0 // indirect
24+
github.com/kr/fs v0.1.0 // indirect
25+
go.opencensus.io v0.24.0 // indirect
26+
golang.org/x/net v0.19.0 // indirect
27+
golang.org/x/sync v0.5.0 // indirect
28+
golang.org/x/sys v0.15.0 // indirect
29+
golang.org/x/time v0.5.0 // indirect
30+
golang.org/x/xerrors v0.0.0-20220907171357-04be3eba64a2 // indirect
31+
google.golang.org/appengine v1.6.7 // indirect
32+
google.golang.org/genproto v0.0.0-20231106174013-bbf56f31fb17 // indirect
33+
google.golang.org/genproto/googleapis/api v0.0.0-20231106174013-bbf56f31fb17 // indirect
34+
google.golang.org/genproto/googleapis/rpc v0.0.0-20231120223509-83a465c0220f // indirect
35+
google.golang.org/grpc v1.59.0 // indirect
36+
google.golang.org/protobuf v1.31.0 // indirect
37+
)
38+
39+
go 1.19

0 commit comments

Comments
 (0)