summaryrefslogtreecommitdiff
path: root/src/rebar_prv_escriptize.erl
Commit message (Collapse)AuthorAgeFilesLines
* Make the escriptize provider hookableFred Hebert2016-08-131-2/+7
| | | | This will allow to move and modify the generated files
* Merge pull request #1298 from ferd/escript-filter-paths-fixFred Hebert2016-08-101-1/+3
|\ | | | | Fix filtering of system libraries in escriptize
| * Fix filtering of system libraries in escriptizeFred Hebert2016-08-101-1/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | https://github.com/erlang/rebar3/pull/1249 introduced a mechanism by which escript dependencies of applications only would be included; this required adding a filter to skip system libraries in the OTP root because that tends to break escripts in very nasty ways. However, the problem came that some libraries are just not in the escript path but may still be included; for these libraries the path prefix check failed as they return `{error, bad_name}` from `code:lib_dir(Dep)` rather than just the path they're in -- specifically, this happens with top level apps. The issue was reported in https://github.com/erlang/rebar3/issues/1294 and the current patch fixes it by accepting a `bad_name` dep as valid, since it is obviously not in the root path.
* | Handle `escriptize` when the specified app is missingNathaniel Waisbrot2016-08-041-2/+6
|/ | | | | When rebar.config contains a `escript_main_app` option, but the specified app doesn't exist in the build directory, print an error.
* Escriptize based on configured apps onlyFred Hebert2016-06-261-5/+19
| | | | | | | | | | | | Prior to this patch, the escriptize command flat out selected all declared dependencies. This patch instead looks at the app files and only includes the dependencies of the top level app and the extra ones, avoiding to package more apps than required. This required a version bump on cth_readable as it mistakenly included 'syntax_lib' instead of 'syntax_tools' as a dependency.
* escript should append the ebin dirs to the code path not prependTristan Sloughter2015-09-141-1/+1
|
* improve escriptize providerTristan Sloughter2015-06-021-3/+3
|
* keep all_deps list in state created for building depsTristan Sloughter2015-05-301-1/+2
|
* fix bareness issuesFred Hebert2015-05-311-1/+1
| | | | | | - Crashes in providers lib when no providers in a namespace are bare - Making sure bareness matches semantics; i.e. a bare provider is visible, a non-bare provider is hidden.
* improve erlydtl source and out dir discoveryTristan Sloughter2015-04-191-25/+37
|
* restructure escriptize provider so the error is properly returnedTristan Sloughter2015-04-171-17/+17
|
* Fixes #306: help text consistencyFred Hebert2015-04-021-1/+1
|
* Fix dialyzer warningsJames Fish2015-03-181-1/+1
|
* update erlydtl compiler to output to _build, add simple testTristan Sloughter2015-03-071-0/+1
|
* update all examples in providers to use rebar3Tristan Sloughter2015-03-071-1/+1
|
* Add escriptize provider and a minimal testPierre Fenoll2015-03-061-0/+221