Tristan Sloughter
1ff904f39a
handle throw by relx
vor 10 Jahren
Tristan Sloughter
b20680304d
split options up by task
vor 10 Jahren
Tristan Sloughter
e1b1152b21
slowly widdling away at dialyzer errors
vor 10 Jahren
Tristan Sloughter
629792f36b
start of moving to splitting state from config parsing
vor 10 Jahren
Tristan Sloughter
5735c538b9
add rebar update provider
vor 10 Jahren
Tristan Sloughter
a602cfc593
replace logging with ec_cmd_log from erlware_commons
vor 10 Jahren
Tristan Sloughter
eb8fa02df7
large refactoring
Removed separate compilers
Resolves apps to build
Finds avail deps before pulling/building
Includes relx
Simplifies build commands
vor 10 Jahren
Tuncer Ayaz
c22370a2cb
Use correct types for OTP >=17.x
vor 11 Jahren
Tuncer Ayaz
5f995bfdc0
Fix a few minor formatting inconsistencies
* fix overlong lines
* where appropriate use %% instead of %
vor 11 Jahren
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.
vor 11 Jahren
Tuncer Ayaz
77a0eb6fe4
Fix #56 (always-on recursion)
Always-on recursive application of all rebar commands causes too many
issues. Recursive application is required for:
1. dealing with dependencies: get-deps, update-deps, and compile of deps
right after get-deps or update-deps
2. projects with a riak-like apps/ project structure and dev process
The vast majority of projects are not structured like riak. Therefore,
moving forward it's best to (by default) restrict recursive behavior to
dealing with deps. This commit does that and also adds command line and
rebar.config options for controlling or configuring recursion. Also, we
introduce two meta commands: prepare-deps (equivalent to rebar -r
get-deps compile) and refresh-deps (equivalent to rebar -r update-deps
compile). riak-like projects can extend the list of recursive commands
(to include 'eunit' and 'compile') by adding
{recursive_cmds, [eunit, compile]} to rebar.config.
vor 12 Jahren
Tuncer Ayaz
277a10cd3b
Fix is_verbose/1 helper function
vor 11 Jahren
Tuncer Ayaz
2f636236bf
rebar_config:is_verbose/0: fix variable name
vor 11 Jahren
Tuncer Ayaz
4f19572ff9
Remove two comments
vor 12 Jahren
Tuncer Ayaz
392adcf967
Refactor setup_env rebar_config funs
vor 12 Jahren
Tuncer Ayaz
252757c753
Do not use application:set_env
vor 13 Jahren
Tuncer Ayaz
4fe3306d99
Document rebar_config TODOs
vor 13 Jahren
Tuncer Ayaz
db78956295
Make sure cached setup_envs are reset
vor 13 Jahren
Tuncer Ayaz
e185e86bff
Remove shared state
vor 13 Jahren
Tuncer Ayaz
b2fdce8879
Use dict() instead of proplist() for shared env
vor 13 Jahren
Ulf Wiger
afffb4895a
Use correct value for file:script SCRIPT binding
vor 13 Jahren
Tuncer Ayaz
9c1a877bbe
Remove gratuitous blank line
vor 13 Jahren
Ulf Wiger
c3c64c1d70
Fix file:script support
vor 13 Jahren
Tuncer Ayaz
7c418ed2b4
Add support for target-specific port options
{port_specs, [{".*", "priv/foo.so", ["c_src/foo.c"], [{env, []}]}]}.
vor 13 Jahren
Ulf Wiger
b3e9e76f57
Use file:script if a .config.script file present
vor 13 Jahren
Tuncer Ayaz
015e58201c
Support different log levels
vor 13 Jahren
Tim Watson
5bb536f839
Respect the --config switch when given
Currently the --config switch does not work because when loading
a new rebar config the global setting is ignored for all paths.
This patch provides a check when loading new rebar config to see
whether or not the current config path matches the `base_dir` set in
global conf, which produces the expected behaviour.
vor 13 Jahren
Tuncer Ayaz
a9a7d7c02b
Apply Tidier suggestions
vor 14 Jahren
Tuncer Ayaz
8263f12594
Add support for $HOME/.rebar/config
vor 14 Jahren
Tuncer Ayaz
6d75bfbeb0
Clean up specs
vor 14 Jahren
Tuncer Ayaz
c466076ffb
Clean up emacs file local variables
vor 14 Jahren
Tuncer Ayaz
a8870807fc
Fix code clarity
vor 14 Jahren
Anders
513ae33c5c
Add possibility to specify rebar config for the "main" application
vor 14 Jahren
Kostis Sagonas
7dc76d578e
Tidier improvements
vor 14 Jahren
iw
39907904e8
Include support for dialyzer
vor 15 Jahren
Tuncer Ayaz
fb0cee2afb
Implemented option to specify number of concurrent workers a command may use
vor 15 Jahren
Dave Smith
bd090f0db2
Refactor of rebar_config to facilitate identification of "local" config settings
vor 15 Jahren
Tuncer Ayaz
0817dec7ca
Rolled back getopt to restore custom variables
vor 15 Jahren
Tuncer Ayaz
9a8015f2d7
Added vi modeline/emacs local variables to file headers
vor 15 Jahren
Tuncer Ayaz
940f9c232b
Enhanced option parsing with new getopt and made rebar more user friendly
vor 15 Jahren
Tuncer Ayaz
8c85021c1e
Deleted trailing whitespace
vor 15 Jahren
Dave Smith
3990f0a076
Refactor of core logic to provide better control over recursion and code path mgmt
vor 15 Jahren
Dave Smith
cb1899b818
Adding convenience method for determing verbosity of run
vor 15 Jahren
Dave Smith
a8fd5bc56f
Add hooks for getting list of release modules
vor 15 Jahren
Dave Smith
cf6738928d
Adding generic get/3; still need some cleanup
vor 15 Jahren
Dave Smith
28fe3bfd54
More gross structural work; now has log levels and broken out log level control
vor 15 Jahren
Dave Smith
e4a9310a97
Adding support for basic compilation ordering
vor 15 Jahren
Dave Smith
e52bb6783c
Getting basic erlang compilation working
vor 15 Jahren
Dave Smith
b7e2088c27
Initial commit
vor 15 Jahren