Is it possible to not descend into subdirectories during compile?

Bengt Kleberg bengt.kleberg at
Wed Feb 1 01:49:50 EST 2012


I originally thought this was aimed to rebar developers. Perhaps it was
meant for me?

My thoughts are that it will be easier to get acceptance for rebar if I
can keep the current directory structure. However, further investigation
showed that this was not the major problem. Integrating with the
revision control system is. 

Hope this helps.


On Fri, 2012-01-27 at 19:15 +0100, Tuncer Ayaz wrote:
> On Fri, Jan 27, 2012 at 1:27 PM, Bengt Kleberg wrote:
> > While I can, in the long run, restructure the current environment it
> > would make the persuasion cost much higher compared to just adding some
> > rebar configuration files.
> >
> > It is possible for rebar to skip directories in dependencies (ex:
> > rebar_core.erl:51:is_skip_dir(Dir) ->). Perhaps it is not a big thing to
> > allow the same behaviour in all directories?
> The most elegant solution would break backwards compatibility.
> We'd have to redefine erl_opts' src_dirs to override instead of extending
> the built-in default (src/) source dir.
> We could add a temporary switch to change the meaning of erl_opts
> and remove it after a grace period together with changing the default.
> That means if you have src_dirs and no src_dirs_override, we'd
> issue a deprecation warning.
> Thoughts?

More information about the rebar mailing list