Skip to content

Commit

Permalink
update cloudevents dependency and clean up deps
Browse files Browse the repository at this point in the history
  • Loading branch information
tariq1890 authored and tekton-robot committed Feb 11, 2020
1 parent 52babda commit a1a3280
Show file tree
Hide file tree
Showing 175 changed files with 7,279 additions and 3,010 deletions.
6 changes: 2 additions & 4 deletions go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,14 @@ go 1.13

require (
cloud.google.com/go v0.47.0 // indirect
contrib.go.opencensus.io/exporter/prometheus v0.1.0 // indirect
contrib.go.opencensus.io/exporter/stackdriver v0.12.8 // indirect
github.com/GoogleCloudPlatform/cloud-builders/gcs-fetcher v0.0.0-20191203181535-308b93ad1f39
github.com/cloudevents/sdk-go v0.0.0-20190509003705-56931988abe3
github.com/cloudevents/sdk-go v1.0.0
github.com/evanphx/json-patch v4.5.0+incompatible // indirect
github.com/ghodss/yaml v1.0.0
github.com/go-openapi/spec v0.19.4 // indirect
github.com/gogo/protobuf v1.3.1 // indirect
github.com/google/go-cmp v0.3.1
github.com/google/go-cmp v0.4.0
github.com/google/go-containerregistry v0.0.0-20200115214256-379933c9c22b
github.com/googleapis/gnostic v0.3.1 // indirect
github.com/hashicorp/go-multierror v1.0.0
Expand All @@ -34,7 +33,6 @@ require (
github.com/tektoncd/plumbing v0.0.0-20191216083742-847dcf196de9
github.com/vdemeester/k8s-pkg-credentialprovider v1.13.12-1 // indirect
go.opencensus.io v0.22.1
go.uber.org/atomic v1.4.0 // indirect
go.uber.org/zap v1.10.0
golang.org/x/net v0.0.0-20191119073136-fc4aabc6c914 // indirect
golang.org/x/oauth2 v0.0.0-20190604053449-0f29369cfe45
Expand Down
45 changes: 29 additions & 16 deletions go.sum

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion pkg/reconciler/taskrun/resources/cloudevent/cloudevent.go
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ func SendCloudEvent(sinkURI, eventID, eventSourceURI string, data []byte, eventT
Data: data,
}
ctxt := cecontext.WithTarget(context.TODO(), sinkURI)
_, err := cloudEventClient.Send(ctxt, event)
_, _, err := cloudEventClient.Send(ctxt, event)
if err != nil {
logger.Errorf("Error sending the cloud-event: %s", err)
return event, err
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,12 +45,12 @@ func NewFakeClient(behaviour *FakeClientBehaviour) client.Client {
}

// Send fakes the Send method from kncloudevents.NewDefaultClient
func (c FakeClient) Send(ctx context.Context, event cloudevents.Event) (*cloudevents.Event, error) {
func (c FakeClient) Send(ctx context.Context, event cloudevents.Event) (context.Context, *cloudevents.Event, error) {
c.event = event
if c.behaviour.SendSuccessfully {
return &event, nil
return ctx, &event, nil
}
return nil, fmt.Errorf("%s had to fail", event.Context.GetID())
return ctx, nil, fmt.Errorf("%s had to fail", event.Context.GetID())
}

// StartReceiver fakes the StartReceiver method from kncloudevents.NewDefaultClient
Expand Down
2 changes: 2 additions & 0 deletions third_party/github.com/hashicorp/errwrap/go.mod
Original file line number Diff line number Diff line change
@@ -1 +1,3 @@
module github.com/hashicorp/errwrap

go 1.13
2 changes: 2 additions & 0 deletions third_party/github.com/hashicorp/go-multierror/go.mod
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
module github.com/hashicorp/go-multierror

require github.com/hashicorp/errwrap v1.0.0

go 1.13
3 changes: 3 additions & 0 deletions vendor/github.com/cloudevents/sdk-go/.gitignore

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

44 changes: 42 additions & 2 deletions vendor/github.com/cloudevents/sdk-go/README.md

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

98 changes: 67 additions & 31 deletions vendor/github.com/cloudevents/sdk-go/alias.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

36 changes: 21 additions & 15 deletions vendor/github.com/cloudevents/sdk-go/go.mod

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit a1a3280

Please sign in to comment.