rebar_core implementation - preprocess runs on skip_dirs
watson.timothy at gmail.com
Sun Jan 23 08:26:28 EST 2011
> 'preprocess' is a tricky bit of code, mostly intended to enable the
> dependency code to be able to return a list of other directories that
> might need processing _first_. If you don't allow this code to run,
> independently of skip_deps, I believe that the transitive properties
> of the dependency code will break.
Sorry - reposting to the list as well - damn gmail I keep forgetting
to hit reply to all.
Ok having looked at the code, I think you're right. It does feel a bit
odd though, because the preprocess implementation in rebar_otp_app
will actually write (the app.src file) to the file system. I suspect
the only time when you don't want that code to run is when the folder
is outside of your project's base dir, so you wouldn't use skip_dir
for that anyway and this wouldn't be an issue if code (e.g.,
dependencies) installed outside the base_dir were skipped by default.
Funnily enough, I added that feature and made a pull request just last
night - https://github.com/basho/rebar/pull/35.
More information about the rebar