Questions tagged [rebar3]

Erlang build tool that makes it easy to compile and test Erlang applications and releases.

Rebar3 is an Erlang tool that makes it easy to create, develop, and release Erlang libraries, applications, and systems in a repeatable manner.

Rebar3 is not Rebar - as the two are completely different.

Rebar3 is also a self-contained Erlang script. It is easy to distribute or embed directly in a project. Tasks or behaviours can be modified or expanded with a plugin system flexible enough that even other languages on the Erlang VM will use it as a build tool.

http://www.rebar3.org/

107 questions
3
votes
0 answers

Where to put a global gen_server when dividing system into OTP apps?

TL;DR If OTP application A makes calls to a globally registered gen_server in application B, and I don't want to install all of app B on nodes that don't run it, how do I handle the gen_servers client code? Background (slightly simplified) I have a…
vmdm
  • 69
  • 4
3
votes
1 answer

How to add new Erlang application to a Rebar3 umbrella project?

I couldn't find it in the docs (or, more probably, I missed it), so I presume these are the steps: Copy existing Erlang application (or create a new one with rebar3 new app) into /apps/ (or /libs/ Add the new app to…
toraritte
  • 6,300
  • 3
  • 46
  • 67
3
votes
1 answer

Rebar3 and Erlang -heart flag

I start my release with a script: #!/bin/bash ERL_FLAGS=" -args_file config/vm.args -config config/sys.config" rebar3 shell I have a -heart command in my vm.args file because I want the node to boot automatically after it crashes, using the…
ersa
  • 81
  • 7
3
votes
2 answers

How to setup tests with the appropriate code using rebar3?

I have created a simple application via rebar3 templates such as: apps/myapp/app/myapp_app.erl -module(myapp_app). -behaviour(application). -export([start/2, stop/1]). start(_StartType, _Params) -> ok. stop(_State) -> ok. I have written…
GlinesMome
  • 1,549
  • 1
  • 22
  • 35
3
votes
1 answer

Erlang.mk project as rebar3 dependency

I am working on an amqp1.0 client for an Erlang rebar3-based project. I need to add the rabbitmq-amqp1.0-client as the queueing dependency. However, rabbitmq-amqp1.0-client is an Erlang.mk project and cannot simply be added as a dependency since the…
MusH
  • 85
  • 2
  • 9
3
votes
1 answer

How to set proxy in Erlang escript?

When I am about to install rebar3 on Windows7, I've cloned the code from github, and then use git bash to install it. But when I type in the command, It shows that `escript: exception error: no match of right hand side value: {error,…
vainman
  • 377
  • 1
  • 5
  • 18
3
votes
2 answers

Load/Recompile Rebar Modules after downgrading Erlang/OTP

I wish to use an erlang client library to communicate with an mqtt broker for one of my projects. So I've started an application using rebar3's built-in templates and added emqttc as a dependency. Since erlang/otp 21 does not have support for…
3
votes
1 answer

-include_lib doesn't find my library

I created a project like this: $> rebar3 new release foo $> cd foo $> rebar3 new app bar The structure looks like this: $> tree foo |-- _build | `-- default |-- _checkouts | |-- bar -> ../bar | `-- rebar.lock |-- apps | `-- foo | …
murphy
  • 524
  • 4
  • 16
3
votes
0 answers

rebar erlang package mnesia replication dynamically

Problem Statement I have created an Erlang package using Rebar3. It is a tar ball which just need to be put in desired OS and get started once you start the node. So like wise there are two nodes, of same kind, in two different linux boxes. Those…
Madhusudan Joshi
  • 4,438
  • 3
  • 26
  • 42
3
votes
1 answer

how to include .hrl files across multiple modules rebar3

I have several modules's directories. For each module, I have include (containing *.hrl files) and src (containing *.erl files) folder separeated. How can I share *.hrl file from a module to another without duplicating them? With rebar, I added…
3
votes
1 answer

Erlang simple release with cowboy 2.0.0 do not work

I'm using Erlang/OTP 20.0 and rebar3. When I start a new release that use cowboy 2.0.0, the release fail to start. Here are the steps I do to build the project. What's wrong? create the release project $ rebar3 new release cowboy2 add cowboy…
3
votes
1 answer

How to tell rebar3 to run tests in dependencies

I want my rebar3 application to test itself and all of its dependencies. Is it possible in rebar3? I've created a simple 'test' plugin that tries to execute rebar_prv_eunit:do/1 over all applications in the project and their dependencies but it…
Kuba Odias
  • 143
  • 1
  • 4
3
votes
1 answer

Mix hangs on deps.compile while compiling riak_core project

I am trying to compile https://github.com/kanatohodets/elixir_riak_core_ping. I have erlang 18 installed and elixir version is 1.3. compilation hangs at below line and does not move ahead: Downloaded package, caching at…
naveen
  • 1,016
  • 1
  • 9
  • 22
3
votes
0 answers

Using Rebar3 how to use Common Test so it places the beam files in _build section not test folder?

When I use rebar3 with Common test as follows: rebar3 ct it compiles (generates beam files for) all my code into the test folder. Everything works but less than ideal. How do I have it place them in the _build/test/MyApp/ebin section? Eunit does…
casillic
  • 1,837
  • 1
  • 24
  • 29
3
votes
2 answers

How to configure httpc profiles with rebar3?

How can I set configuration options for httpc's profiles when using rebar3? Here is the only example being via erl -config inets.config that looks like this: [{inets, [{services,[{httpc,[{profile, server1}]}, {httpc, [{profile,…
Andriy Drozdyuk
  • 58,435
  • 50
  • 171
  • 272