Skip to content

Commit 6529095

Browse files
authored
Merge pull request #326 from cloudfoundry-community/update-dependencies
Updated 3rd party dependencies
2 parents 28e7ba0 + 7a44de5 commit 6529095

File tree

681 files changed

+92655
-18989
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

681 files changed

+92655
-18989
lines changed

eventwriter/splunk.go

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@ import (
77
"errors"
88
"fmt"
99
"io"
10-
"io/ioutil"
1110
"net/http"
1211

1312
"code.cloudfoundry.org/cfhttp"
@@ -103,11 +102,11 @@ func (s *splunkClient) send(postBody *[]byte) error {
103102
defer resp.Body.Close()
104103

105104
if resp.StatusCode > 299 {
106-
responseBody, _ := ioutil.ReadAll(resp.Body)
105+
responseBody, _ := io.ReadAll(resp.Body)
107106
return errors.New(fmt.Sprintf("Non-ok response code [%d] from splunk: %s", resp.StatusCode, responseBody))
108107
} else {
109108
//Draining the response buffer, so that the same connection can be reused the next time
110-
_, err := io.Copy(ioutil.Discard, resp.Body)
109+
_, err := io.Copy(io.Discard, resp.Body)
111110
if err != nil {
112111
s.config.Logger.Error("Error discarding response body", err)
113112
}

eventwriter/splunk_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ package eventwriter_test
22

33
import (
44
"fmt"
5-
"io/ioutil"
5+
"io"
66
"net/http"
77
"net/http/httptest"
88
"strings"
@@ -43,7 +43,7 @@ var _ = Describe("Splunk", func() {
4343
splunkResponse = []byte("{}")
4444
testServer = httptest.NewServer(http.HandlerFunc(func(writer http.ResponseWriter, request *http.Request) {
4545
capturedRequest = request
46-
body, err := ioutil.ReadAll(request.Body)
46+
body, err := io.ReadAll(request.Body)
4747
if err != nil {
4848
panic(err)
4949
}

go.mod

Lines changed: 38 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -3,50 +3,58 @@ module github.com/cloudfoundry-community/splunk-firehose-nozzle
33
go 1.17
44

55
require (
6-
code.cloudfoundry.org/cfhttp v0.0.0-20160823172719-1d363866d79a
7-
code.cloudfoundry.org/cflager v0.0.0-20160705185420-3b0406dd8038
8-
code.cloudfoundry.org/lager v0.0.0-20161021174446-b273f19621a2
9-
github.com/cloudfoundry-community/go-cfclient v0.0.0-20190201205600-f136f9222381
6+
code.cloudfoundry.org/cfhttp v1.0.0
7+
code.cloudfoundry.org/lager v1.1.0
8+
github.com/cloudfoundry-community/go-cfclient v0.0.0-20220803221820-5e81c204bd31
109
github.com/cloudfoundry/noaa v2.1.1-0.20190110210640-5ce49363dfa6+incompatible
1110
github.com/cloudfoundry/sonde-go v0.0.0-20160804000546-81c3f6be579c
1211
github.com/gogo/protobuf v1.3.2
13-
github.com/google/uuid v0.0.0-20170728174318-281f560d28af
14-
github.com/gorilla/websocket v1.4.2
15-
github.com/mailru/easyjson v0.0.0-20160816214844-3d7eb5818bd5
16-
github.com/onsi/ginkgo v1.6.0
17-
github.com/onsi/gomega v1.4.3
18-
github.com/sirupsen/logrus v0.10.0
12+
github.com/google/uuid v1.3.0
13+
github.com/gorilla/websocket v1.5.0
14+
github.com/mailru/easyjson v0.7.7
15+
github.com/onsi/ginkgo v1.16.5
16+
github.com/onsi/gomega v1.20.2
17+
github.com/sirupsen/logrus v1.9.0
1918
go.etcd.io/bbolt v1.3.6
20-
gopkg.in/alecthomas/kingpin.v2 v2.2.3
19+
gopkg.in/alecthomas/kingpin.v2 v2.2.6
2120
)
2221

2322
require (
2423
code.cloudfoundry.org/gofileutils v0.0.0-20170111115228-4d0c80011a0f // indirect
25-
github.com/Masterminds/semver v1.4.3-0.20190429190951-059deebd1619 // indirect
26-
github.com/alecthomas/assert v0.0.0-20170929043011-405dbfeb8e38 // indirect
24+
github.com/Masterminds/semver v1.5.0 // indirect
25+
github.com/alecthomas/assert v1.0.0 // indirect
2726
github.com/alecthomas/colour v0.1.0 // indirect
28-
github.com/alecthomas/repr v0.0.0-20210801044451-80ca428c5142 // indirect
29-
github.com/alecthomas/template v0.0.0-20150530000104-b867cc6ab45c // indirect
30-
github.com/alecthomas/units v0.0.0-20150109002421-6b4e7dc5e314 // indirect
27+
github.com/alecthomas/repr v0.1.0 // indirect
28+
github.com/alecthomas/template v0.0.0-20190718012654-fb15b899a751 // indirect
29+
github.com/alecthomas/units v0.0.0-20211218093645-b94a6e3cc137 // indirect
3130
github.com/apoydence/eachers v0.0.0-20181020210610-23942921fe77 // indirect
3231
github.com/davecgh/go-spew v1.1.1 // indirect
33-
github.com/elazarl/goproxy v0.0.0-20210801061803-8e322dfb79c4 // indirect
34-
github.com/elazarl/goproxy/ext v0.0.0-20210801061803-8e322dfb79c4 // indirect
35-
github.com/golang/protobuf v1.4.2 // indirect
32+
github.com/elazarl/goproxy v0.0.0-20220901064549-fbd10ff4f5a1 // indirect
33+
github.com/elazarl/goproxy/ext v0.0.0-20220901064549-fbd10ff4f5a1 // indirect
34+
github.com/fsnotify/fsnotify v1.4.9 // indirect
35+
github.com/golang/protobuf v1.5.2 // indirect
36+
github.com/google/go-cmp v0.5.8 // indirect
3637
github.com/hpcloud/tail v1.0.0 // indirect
37-
github.com/mattn/go-isatty v0.0.14 // indirect
38+
github.com/josharian/intern v1.0.0 // indirect
39+
github.com/kr/pretty v0.2.1 // indirect
40+
github.com/kr/text v0.1.0 // indirect
41+
github.com/mattn/go-isatty v0.0.16 // indirect
3842
github.com/nu7hatch/gouuid v0.0.0-20131221200532-179d4d0c4d8d // indirect
39-
github.com/pkg/errors v0.8.1 // indirect
43+
github.com/nxadm/tail v1.4.8 // indirect
44+
github.com/pkg/errors v0.9.1 // indirect
45+
github.com/pmezard/go-difflib v1.0.0 // indirect
4046
github.com/sergi/go-diff v1.2.0 // indirect
41-
github.com/stretchr/testify v1.7.0 // indirect
42-
golang.org/x/net v0.0.0-20210520170846-37e1c6afe023 // indirect
43-
golang.org/x/oauth2 v0.0.0-20211005180243-6b3c2da341f1 // indirect
44-
golang.org/x/sys v0.0.0-20210630005230-0f9fa26af87c // indirect
45-
golang.org/x/text v0.3.6 // indirect
46-
google.golang.org/appengine v1.6.6 // indirect
47-
google.golang.org/protobuf v1.25.0 // indirect
48-
gopkg.in/check.v1 v1.0.0-20190902080502-41f04d3bba15 // indirect
47+
github.com/stretchr/objx v0.4.0 // indirect
48+
github.com/stretchr/testify v1.8.0 // indirect
49+
golang.org/x/net v0.0.0-20220909164309-bea034e7d591 // indirect
50+
golang.org/x/oauth2 v0.0.0-20220909003341-f21342109be1 // indirect
51+
golang.org/x/sys v0.0.0-20220915200043-7b5979e65e41 // indirect
52+
golang.org/x/text v0.3.7 // indirect
53+
google.golang.org/appengine v1.6.7 // indirect
54+
google.golang.org/protobuf v1.28.1 // indirect
55+
gopkg.in/check.v1 v1.0.0-20201130134442-10cb98267c6c // indirect
4956
gopkg.in/fsnotify.v1 v1.4.7 // indirect
5057
gopkg.in/tomb.v1 v1.0.0-20141024135613-dd632973f1e7 // indirect
51-
gopkg.in/yaml.v2 v2.2.8 // indirect
58+
gopkg.in/yaml.v2 v2.4.0 // indirect
59+
gopkg.in/yaml.v3 v3.0.1 // indirect
5260
)

0 commit comments

Comments
 (0)