From 797ae2b55bbd2dbceab47e91f7cf8522d152135e Mon Sep 17 00:00:00 2001 From: Thijs Klaver Date: Tue, 28 Jun 2016 10:26:14 +0200 Subject: [PATCH] Fix compilation on Erlang 19 by adding lager 3.2.1 The old exometer dependency had a lager dependency which did not compile on Erlang 19. --- .travis.yml | 1 + rebar.config | 2 ++ src/exometer_influxdb.app.src | 1 + 3 files changed, 4 insertions(+) diff --git a/.travis.yml b/.travis.yml index bacc796..9aa9f96 100644 --- a/.travis.yml +++ b/.travis.yml @@ -6,4 +6,5 @@ otp_release: - 18.0 - 18.1 - 18.2 + - 19.0 script: "rebar get-deps compile && rebar skip_deps=true eunit" diff --git a/rebar.config b/rebar.config index 82b1b76..e7fcffc 100644 --- a/rebar.config +++ b/rebar.config @@ -1,5 +1,7 @@ {deps, [ {hackney, ".*", {git, "git://github.com/benoitc/hackney.git", {branch, "master"}}}, + %% lager dependency to override exometer's lager dependency, which does not compile on Erlang 19. + {lager, ".*", {git, "git://github.com/basho/lager.git", {tag, "3.2.1"}}}, {exometer_core, ".*", {git, "git://github.com/Feuerlabs/exometer_core.git", "5fdd9426713a3c26cae32f644a3120711b1cdb64"}} ]}. {erl_opts, [{parse_transform, lager_transform}]}. diff --git a/src/exometer_influxdb.app.src b/src/exometer_influxdb.app.src index f275ce6..c5a8eb5 100644 --- a/src/exometer_influxdb.app.src +++ b/src/exometer_influxdb.app.src @@ -7,6 +7,7 @@ kernel, stdlib, hackney, + lager, exometer_core ]}, {env, []}