James Fish
08698c9403
Remove inets from escript
pirms 10 gadiem
Tristan Sloughter
71de52cb9d
fix callback r14 support
pirms 10 gadiem
Tristan Sloughter
79b1f23240
move back to using format_error/1
pirms 10 gadiem
Tristan Sloughter
77ae749326
update package update provider
pirms 10 gadiem
Tristan Sloughter
8bd6a7088f
switch back to erlware relx repo
pirms 10 gadiem
Tristan Sloughter
c508a3feb8
fix tar provider to pass release and tar to relx as 2 commands
pirms 10 gadiem
Tristan Sloughter
055fa5b639
update config deps and support semver in app vsn
pirms 10 gadiem
Tristan Sloughter
1dce2d36cc
add format_error/2 provider callback to providers
pirms 10 gadiem
Tristan Sloughter
9f98bdde67
switch to https for getopt so github account isn't needed
pirms 10 gadiem
Tristan Sloughter
b37a5ae611
move providers to separate app
pirms 10 gadiem
Tristan Sloughter
6356112cbb
more dialyzer fun. no likey opaque types
pirms 10 gadiem
Tristan Sloughter
52fcf0278d
add rebar providers create and plugin inclusion with providers
pirms 10 gadiem
Tristan Sloughter
48769e75c2
wip: move to erlydtl for rebar templates
pirms 10 gadiem
Tristan Sloughter
6ab36ba769
rename escript to rebar3
pirms 10 gadiem
Tristan Sloughter
21f4743861
remove more code that can be brought back later if needed
pirms 10 gadiem
Tristan Sloughter
901cea4671
quick and dirty fix for proper dep compilatoin order
pirms 10 gadiem
Tristan Sloughter
b37fe2c4bb
refactoring and remove unused providers for now
pirms 10 gadiem
Tristan Sloughter
eb8fa02df7
large refactoring
Removed separate compilers
Resolves apps to build
Finds avail deps before pulling/building
Includes relx
Simplifies build commands
pirms 10 gadiem
Tuncer Ayaz
15373a580f
Fix typo s/of/on/
pirms 10 gadiem
Tuncer Ayaz
71c2f17c9b
Remove warnings_as_errors from rebar.config
rebar's beam files are actually compiled by bootstrap's call to
make:files/2, so warnings_as_errors in rebar.config isn't really used.
pirms 11 gadiem
Tuncer Ayaz
5f995bfdc0
Fix a few minor formatting inconsistencies
* fix overlong lines
* where appropriate use %% instead of %
pirms 11 gadiem
Matwey V. Kornilov
a7e05f57d1
Fix build for 17.0 using the solutiong proposed by @tsloughter
We use namespaced_types option to choose between dict() and dict:dict() types.
pirms 11 gadiem
Tuncer Ayaz
e74a0feb05
rebar.config: delete unused and unimplemented 'app_bin' option
app_bin option was used by the install command which has been
removed in 51ed787
.
pirms 12 gadiem
Dave Smith
473843d3cc
Add diameter exclusions to xref
pirms 12 gadiem
Tuncer Ayaz
e0bc55db33
Use R15B02 EUnit {test,M,F} primitive as suggested by Richard Carlsson
pirms 12 gadiem
Tuncer Ayaz
73e9413a01
Update custom xref query
pirms 12 gadiem
Tuncer Ayaz
0af95507aa
Update custom xref query (eunit_test calls)
eunit_test:function_wrapper/2 was renamed to eunit:mf_wrapper/2 in
R15B02. Ignore both calls like we do with escript:foldl/3.
pirms 12 gadiem
Tuncer Ayaz
563607bc02
Change escript zip archive creation as suggested by Siri Hansen
1. manually insert directory entries to work around issues fixed in
R15B02 erl_prim_loader
2. put the escript archive's beams in appname/appname/ebin
Tested with R13B03 and R15B01.
pirms 13 gadiem
Tuncer Ayaz
556f47579d
No need to re-specify default escript_shebang in rebar.config
pirms 12 gadiem
Tuncer Ayaz
c91250d2df
Use [{File,Bin}, ...] in escriptize zip:create
pirms 13 gadiem
Tuncer Ayaz
83879c22e1
Add missing escriptize comments
pirms 13 gadiem
Tuncer Ayaz
1e980859e2
Extend escriptize and reuse in bootstrap
pirms 13 gadiem
Amit Kapoor
6ada1c24c7
Update filter list for custom xref query
Rebar has support for optional compilers built-in. These compilers might
not be installed causing xref to return errors for the undefined external
function calls query. The updated filter list will catch this error and
act as a nop if they are installed.
pirms 13 gadiem
Amit Kapoor
0191806f92
Add support for custom xref queries
The custom queries are configured in rebar.config via the tuple
{xref_queries, [{query(), query_result()},...]}. The implementation
passes the query() string to xref:q and compares the return value with
query_result(). It will result in an error if they do not match.
The following configuration, for example, is the same as running the
xref check undefined_function_calls. It additionally filters
ejabberd_logger:*_msg/4 from the result as these functions are generated
on execution by ejabberd and not available at compile time.
{xref_queries, [{"(XC - UC) || (XU - X - B -
(\"ejabberd_logger\":\".*_msg\"/\"4\"))",[]}]}.
This patch also modifies the build process of this package by running a
custom query instead of doing a diff against a static xref_warning file.
pirms 13 gadiem
Piotr Usewicz
df4e836c4e
Add file local variables where appropriate
pirms 14 gadiem
Tuncer Ayaz
27de53125e
Use warnings_as_errors instead of fail_on_warning
pirms 14 gadiem
Tuncer Ayaz
be209f24ff
Make debug_info default
Add no_debug_info option.
Remove debug_info=1 option.
pirms 14 gadiem
Dave Smith
f36e044e5d
Enable xref checks on rebar
pirms 15 gadiem
Dave Smith
7cf35a88ba
Enable fail_on_warning by default
pirms 15 gadiem
Jon Meredith
8e91e1014e
Connected up symlinking the list of progs in rebar.config/app_bin
to the OTP bin dir.
pirms 15 gadiem