From 9ad1eb51cb2d7bf5c55ac6f1c1706421da045837 Mon Sep 17 00:00:00 2001 From: Conor Mongey Date: Sun, 14 Apr 2019 16:22:25 +0100 Subject: [PATCH] Fix for sarama bug https://github.com/Shopify/sarama/pull/1353 --- Gopkg.lock | 6 +++--- Gopkg.toml | 2 +- vendor/github.com/Shopify/sarama/metadata_request.go | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/Gopkg.lock b/Gopkg.lock index b1ddc961..e15cf107 100644 --- a/Gopkg.lock +++ b/Gopkg.lock @@ -10,12 +10,12 @@ version = "v1.3.4" [[projects]] - digest = "1:dcffbfae4b048c3e927ada13b0bfece5bb1958553ef7b1c595bd1a6dc17b0220" + branch = "master" + digest = "1:a8d254f7942b4e1226ffd113ecd3f75368ad53c1c4380b7a07c1062544d2a592" name = "github.com/Shopify/sarama" packages = ["."] pruneopts = "NUT" - revision = "5d2af84cf5e2dd36f2daecaaafa13c4e286f20fd" - version = "v1.22.0" + revision = "c14cccae56fa14dea0c7e8cf53e24917950e12a6" [[projects]] digest = "1:8bd40ec66a32437126e8ff3080f26b11ca5926917daa01eba1285d0b059416bc" diff --git a/Gopkg.toml b/Gopkg.toml index 26e3d980..30cabbdf 100644 --- a/Gopkg.toml +++ b/Gopkg.toml @@ -3,7 +3,7 @@ [[constraint]] name = "github.com/Shopify/sarama" - version = "v1.22.0" + branch = "master" [[constraint]] name = "github.com/hashicorp/terraform" diff --git a/vendor/github.com/Shopify/sarama/metadata_request.go b/vendor/github.com/Shopify/sarama/metadata_request.go index 43239c4d..1b590d36 100644 --- a/vendor/github.com/Shopify/sarama/metadata_request.go +++ b/vendor/github.com/Shopify/sarama/metadata_request.go @@ -10,7 +10,7 @@ func (r *MetadataRequest) encode(pe packetEncoder) error { if r.Version < 0 || r.Version > 5 { return PacketEncodingError{"invalid or unsupported MetadataRequest version field"} } - if r.Version == 0 || r.Version == 5 || len(r.Topics) > 0 { + if r.Version == 0 || len(r.Topics) > 0 { err := pe.putArrayLength(len(r.Topics)) if err != nil { return err