Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Unicode support in all the places | Fred Hebert | 2017-08-06 | 1 | -3/+3 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | This is done through 3 main change groups: - replacing `~s` by `~ts` in format strings, so that strings that contain unicode are properly printed rather than crashing - adding the `unicode` argument to all function of the `re` module to ensure transformations on strings containing unicode data are valid instead of crashing (see issue #1302) - replacing `ec_cnv:to_binary/1` and `ec_cnv:to_list/1` with matching functions in `rebar_utils`. The last point has been done, rather than modifying and updating erlware commons, because binary and list conversions can be a contentious subject. For example, if what is being handled is actually bytes from a given binary stream, then forcing a byte-oriented interpretation of the data can corrupt it. As such, it does not appear safe to modify erlware commons' conversion functions since it may not be safe for all its users. Instead, rebar3 reimplements a subset of them (only converting atoms and chardata, ignoring numbers) with the explicit purpose of handling unicode string data. Tests were left as unchanged as possible. This may impact the ability to run rebar3's own suites in a unicode path, but respects a principle of least change for such a large patch. | ||||
* | don't needlessly update the code path twice if no hooks to run | Tristan Sloughter | 2016-05-16 | 1 | -12/+16 |
| | |||||
* | Merge branch 'state' of https://github.com/saleyn/rebar3 into saleyn-state | Fred Hebert | 2016-03-01 | 1 | -0/+1 |
|\ | |||||
| * | Add a state display provider | Serge Aleynikov | 2016-02-08 | 1 | -0/+1 |
| | | | | | | | | | | | | | | The provider is used for debugging to help displaying current rebar's state. Usage: rebar3 state | ||||
* | | in providers that don't run per app run all available hooks | Tristan Sloughter | 2016-02-28 | 1 | -0/+6 |
|/ | |||||
* | add ERLANG_ARCH and ERLANG_TARGET to os env for hooks | Tristan Sloughter | 2015-10-05 | 1 | -1/+4 |
| | |||||
* | support updating of per app info by hooks | Tristan Sloughter | 2015-09-06 | 1 | -8/+10 |
| | |||||
* | hooks/artifacts are always run/resolved from an app unless at top of umbrella | Tristan Sloughter | 2015-09-06 | 1 | -1/+1 |
| | |||||
* | add current_app attribute for setting before calling hooks | Tristan Sloughter | 2015-09-04 | 1 | -2/+3 |
| | |||||
* | move opts functions to new module rebar_opts | Tristan Sloughter | 2015-09-01 | 1 | -2/+2 |
| | |||||
* | more cleanup | Tristan Sloughter | 2015-08-31 | 1 | -1/+0 |
| | |||||
* | update use of hooks and plugins with state in app_info | Tristan Sloughter | 2015-08-31 | 1 | -19/+19 |
| | |||||
* | wip: move state into app_info | Tristan Sloughter | 2015-08-31 | 1 | -19/+24 |
| | |||||
* | don't run unnecessary code if hooks are empty list | Tristan Sloughter | 2015-07-07 | 1 | -19/+28 |
| | |||||
* | fix for overrides in plugins, simpler plugin state handling | Tristan Sloughter | 2015-06-24 | 1 | -0/+1 |
| | |||||
* | add debug statement of failed hook to help plugin builders | Tristan Sloughter | 2015-06-20 | 1 | -0/+2 |
| | |||||
* | Add error message for bad provider hook, fixes #521 | Tristan Sloughter | 2015-06-19 | 1 | -10/+19 |
| | |||||
* | Export following env vars when running hooks: | Jean Parpaillon | 2015-06-15 | 1 | -1/+56 |
| | | | | | | | | | | | | | | | | | | | | | | | | REBAR_DEPS_DIR = rebar_dir:deps_dir/1 REBAR_BUILD_DIR = rebar_dir:base_dir/1 REBAR_ROOT_DIR = rebar_dir:root_dir/1 REBAR_CHECKOUTS_DIR = rebar_dir:checkouts_dir/1 REBAR_PLUGINS_DIR = rebar_dir:plugins_dir/1 REBAR_GLOBAL_CONFIG_DIR = rebar_dir:global_config_dir/1 REBAR_GLOBAL_CACHE_DIR = rebar_dir:global_cache_dir/1 REBAR_TEMPLATE_DIR = rebar_dir:template_dir/1 REBAR_APP_DIRS = rebar_dir:lib_dirs/1 REBAR_SRC_DIRS = rebar_dir:src_dirs/1 autoconf compatible variables (see: http://www.gnu.org/software/autoconf/manual/autoconf.html#Erlang-Libraries): ERLANG_ERTS_VER = erlang:system_info(version) ERLANG_ROOT_DIR = code:root_dir/0 ERLANG_LIB_DIR_erl_interface = code:lib_dir(erl_interface) ERLANG_LIB_VER_erl_interface = version part of path returned by code:lib_dir(erl_interface) ERL = ERLANG_ROOT_DIR/bin/erl ERLC = ERLANG_ROOT_DIR/bin/erl Export env var REBAR_BUILD_DIR in hooks, as rebar_dir:base_dir/1 | ||||
* | store plugin providers in app_info's state for deps | Tristan Sloughter | 2015-05-28 | 1 | -1/+3 |
| | |||||
* | fix for plugin installation and code paths | Tristan Sloughter | 2015-05-27 | 1 | -1/+5 |
| | |||||
* | install dep plugins & run provider hooks the same as shell hooks | Tristan Sloughter | 2015-04-04 | 1 | -3/+24 |
| | |||||
* | output hook stdout and don't add extra newline | Tristan Sloughter | 2015-02-23 | 1 | -1/+1 |
| | |||||
* | fix for rebar deps dir path in hooks, making it absolute | Tristan Sloughter | 2015-01-24 | 1 | -1/+1 |
| | |||||
* | move dir functions from utils to new module rebar_dir | Tristan Sloughter | 2014-12-01 | 1 | -1/+1 |
| | |||||
* | wip: profiles | Tristan Sloughter | 2014-11-29 | 1 | -1/+1 |
| | |||||
* | set REBAR_DEPS_DIR in hooks env and run pre_compile hooks before deps compile | Tristan Sloughter | 2014-11-22 | 1 | -2/+3 |
| | |||||
* | add rebar_hooks module | Tristan Sloughter | 2014-11-02 | 1 | -0/+24 |