Skip to content

Commit

Permalink
Bump librdkafka requirement to v1.1.0
Browse files Browse the repository at this point in the history
  • Loading branch information
edenhill committed Jul 15, 2019
1 parent 7167b61 commit 48acc03
Show file tree
Hide file tree
Showing 4 changed files with 352 additions and 37 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ Getting Started
Installing librdkafka
---------------------

This client for Go depends on librdkafka v1.0.0 or later, so you either need to install librdkafka
This client for Go depends on librdkafka v1.1.0 or later, so you either need to install librdkafka
through your OS/distributions package manager, or download and build it from source.

- For Debian and Ubuntu based distros, install `librdkafka-dev` from the standard
Expand Down
12 changes: 6 additions & 6 deletions kafka/00version.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package kafka

/**
* Copyright 2016-2018 Confluent Inc.
* Copyright 2016-2019 Confluent Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down Expand Up @@ -29,19 +29,19 @@ import (
//defines and strings in sync.
//
#define MIN_RD_KAFKA_VERSION 0x01000000
#define MIN_RD_KAFKA_VERSION 0x01010000
#ifdef __APPLE__
#define MIN_VER_ERRSTR "confluent-kafka-go requires librdkafka v1.0.0 or later. Install the latest version of librdkafka from Homebrew by running `brew install librdkafka` or `brew upgrade librdkafka`"
#define MIN_VER_ERRSTR "confluent-kafka-go requires librdkafka v1.1.0 or later. Install the latest version of librdkafka from Homebrew by running `brew install librdkafka` or `brew upgrade librdkafka`"
#else
#define MIN_VER_ERRSTR "confluent-kafka-go requires librdkafka v1.0.0 or later. Install the latest version of librdkafka from the Confluent repositories, see http://docs.confluent.io/current/installation.html"
#define MIN_VER_ERRSTR "confluent-kafka-go requires librdkafka v1.1.0 or later. Install the latest version of librdkafka from the Confluent repositories, see http://docs.confluent.io/current/installation.html"
#endif
#if RD_KAFKA_VERSION < MIN_RD_KAFKA_VERSION
#ifdef __APPLE__
#error "confluent-kafka-go requires librdkafka v1.0.0 or later. Install the latest version of librdkafka from Homebrew by running `brew install librdkafka` or `brew upgrade librdkafka`"
#error "confluent-kafka-go requires librdkafka v1.1.0 or later. Install the latest version of librdkafka from Homebrew by running `brew install librdkafka` or `brew upgrade librdkafka`"
#else
#error "confluent-kafka-go requires librdkafka v1.0.0 or later. Install the latest version of librdkafka from the Confluent repositories, see http://docs.confluent.io/current/installation.html"
#error "confluent-kafka-go requires librdkafka v1.1.0 or later. Install the latest version of librdkafka from the Confluent repositories, see http://docs.confluent.io/current/installation.html"
#endif
#endif
*/
Expand Down
Loading

0 comments on commit 48acc03

Please sign in to comment.