summaryrefslogtreecommitdiff
path: root/src
Commit message (Collapse)AuthorAgeFilesLines
* add error message when no plugin is passed to plugins upgradeTristan Sloughter2015-06-251-2/+8
|
* error message for bad profile configTristan Sloughter2015-06-251-2/+12
|
* fix for overrides in plugins, simpler plugin state handlingTristan Sloughter2015-06-242-3/+2
|
* print sorted list of packagesTristan Sloughter2015-06-211-10/+13
|
* deduplicate parts of package and source dep handlingTristan Sloughter2015-06-211-31/+9
|
* overrides working for pkg depsTristan Sloughter2015-06-211-5/+12
|
* use bbmustache packageTristan Sloughter2015-06-212-1/+2
|
* include app's state providers when building plugin so they can rely on pluginsTristan Sloughter2015-06-201-7/+7
|
* add debug statement of failed hook to help plugin buildersTristan Sloughter2015-06-201-0/+2
|
* Merge pull request #529 from tsloughter/ns_helpTristan Sloughter2015-06-192-3/+17
|\ | | | | print help for namespaces
| * print help for namespacesTristan Sloughter2015-06-192-3/+17
| |
* | fix path storing for pluginsTristan Sloughter2015-06-191-4/+5
|/
* Add error message for bad provider hook, fixes #521Tristan Sloughter2015-06-192-11/+22
|
* plugins providerTristan Sloughter2015-06-189-64/+268
|
* check format of config file and print the bad section in the errorTristan Sloughter2015-06-184-16/+51
|
* Merge pull request #515 from talentdeficit/rebar3_513Fred Hebert2015-06-171-9/+11
|\ | | | | ensure all `src_dirs` and `extra_src_dirs` are handled properly
| * ensure all `src_dirs` and `extra_src_dirs` are handled properlyalisdair sullivan2015-06-131-9/+11
| | | | | | | | | | | | when running `ct` tests fixes #513
* | Merge pull request #520 from tsloughter/undef_doFred Hebert2015-06-161-2/+13
|\ \ | | | | | | print nice error message if do is undef for provider
| * | print nice error message if do is undef for providerTristan Sloughter2015-06-161-2/+13
| |/
* | Merge pull request #510 from erocci/masterFred Hebert2015-06-151-1/+56
|\ \ | | | | | | Export env var REBAR_BUILD_DIR in hooks, as rebar_dir:base_dir/1
| * | Export following env vars when running hooks:Jean Parpaillon2015-06-151-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
* | OTP apps show proper outputFred Hebert2015-06-151-1/+4
|/ | | | | | | | | | Whenever the old shell got killed and an app got loaded prior, the whole thing would silently drop output as the old 'user' process was replaced while application master processes would keep the old one's pid in their internal state. To work around this limitation, make sure the apps are booted only after the shell is replaced so that only the new `user` pid is used.
* Use the same dialyzer rebar.config options as rebarJames Fish2015-06-061-35/+58
| | | | | | | | | | | | | | | | | | | | * All configuration is moved to `{dialyzer, PropList}` * `dialyzer_warnings` renamed `warnings` * `dialyzer_plt_warnings` renamed `get_warnings` * `dialyzer_plt_apps` renamed `plt_extra_apps` * `dialyzer_plt_dir` renamed `plt_location` * `{plt_location, local}` uses profile base directory * `dialyzer_plt` removed * `dialyzer_plt_prefix` sets prefix of PLT name (default "rebar3") * `dialyzer_base_plt_apps` renamed `base_plt_apps` * `dialyzer_base_plt_dir` renamed `base_plt_location` * `{base_plt_location, global}` uses rebar3's global cache directory * `dialyzer_base_plt` removed * `base_plt_prefix` sets prefix of PLT name (default "rebar3") PLT files are always named `<prefix>_<otp_version>_plt` to match rebar. `plt_prefix` and `base_plt_prefix` are not available in rebar, where the prefix is always set to the project's top level application.
* Merge pull request #502 from fishcakez/rebar2_compatFred Hebert2015-06-061-99/+39
|\ | | | | Include same files in PLT as rebar2
| * Include same files in PLT as rebar2James Fish2015-06-021-99/+39
| | | | | | | | | | | | | | | | * Only include direct dependencies + base plt * Error on missing direct dependency * Always use beams in ebin instead of reading .app file (copying rebar2) * Remove fake unknown warnings (will clash with unknown warning in 18.0) * Remove redundant search for .app file (code path includes deps)
* | Merge pull request #500 from tsloughter/artifactsFred Hebert2015-06-025-19/+54
|\ \ | | | | | | add config option artifacts
| * | add config option artifactsTristan Sloughter2015-06-025-19/+54
| | |
* | | Merge pull request #501 from tsloughter/escriptize_improvementsFred Hebert2015-06-021-3/+3
|\ \ \ | |_|/ |/| | improve escriptize provider
| * | improve escriptize providerTristan Sloughter2015-06-021-3/+3
| | |
* | | Handle custom logger shell breakageFred Hebert2015-06-011-6/+12
| | | | | | | | | | | | | | | | | | | | | When swapping handlers, if a custom shell has been installed, it's possible it'll take over the tty and other options. This may break common operations that work on an otherwise regular shell, so we ignore failures and let things work with the custom shell only.
* | | Bump to alpha-6Fred Hebert2015-05-311-1/+1
| |/ |/|
* | set default providers before installing pluginsTristan Sloughter2015-05-312-7/+7
|/
* run pre and post hooks for release and tar providersTristan Sloughter2015-05-312-0/+8
|
* keep all_deps list in state created for building depsTristan Sloughter2015-05-302-5/+9
|
* Merge pull request #487 from ferd/fix-provider-barenessTristan Sloughter2015-05-3026-26/+26
|\ | | | | fix bareness issues
| * fix bareness issuesFred Hebert2015-05-3126-26/+26
| | | | | | | | | | | | - 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.
* | Fix badarg exception when setting group_leader for a dead pidAndras Boroska2015-05-301-2/+4
| | | | | | | | | | | | When setting up a shell some time elapses between listing the pids and setting the group_leader. If the process exited during that time then erlang:group_leader/2 will crash with badarg.
* | allow `src_dirs` and `extra_src_dirs` at the root of the rebar configalisdair sullivan2015-05-301-2/+2
| |
* | Merge pull request #473 from ferd/improve-shellTristan Sloughter2015-05-304-36/+238
|\ \ | |/ | | improve the rebar3 shell
| * Optionally allow node names to the rebar3 shell.Fred Hebert2015-05-301-12/+30
| | | | | | | | | | Helps with integration efforts, but unfortunately can't support the '-sname' and '-name' options, only '--sname' and '--name'.
| * Fix config loading in shellFred Hebert2015-05-301-1/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Config files from the command line would expect the wrong format: {app1, [...]}. {app2, [...]}. Instead of the correct sys.config format: [{app1, [...]}, {app2, [...]}] Not supported yet: the recursive file references documented in http://www.erlang.org/doc/man/config.html
| * Add support to boot apps from releases in shellFred Hebert2015-05-291-1/+14
| | | | | | | | Precedence still goes to shell_apps.
| * Get prebooted apps to acknowledge sys.configFred Hebert2015-05-291-3/+16
| | | | | | | | | | Change the order from load-config -> start-apps to load-apps -> load-config -> start-apps
| * Display experimental warningFred Hebert2015-05-291-4/+12
| | | | | | | | The feature may still be modified in the future.
| * Rebar agent reloads the config file on every runFred Hebert2015-05-282-35/+68
| | | | | | | | | | This allows proper checking of new configurations, deps, or plugins, and makes sure they are detected during an active shell session.
| * 'do' returns its final state.Fred Hebert2015-05-281-0/+4
| | | | | | | | | | | | | | | | | | | | | | | | While 'do' skips state updates between subcommands so that: rebar3 do a, b == (rebar3 a && rebar3 b) The final state of 'b' does not need to be discarded and might in fact be useful to get when dealing with Rebar3 as an API. This can be done without breaking the equality relation already established.
| * Add a shell agentFred Hebert2015-05-263-10/+92
| | | | | | | | | | The shell agent allows to run rebar3 commands and autoload compiled modules when that is done.
| * Adding app auto-boot to rebar shellFred Hebert2015-05-231-35/+63
| | | | | | | | | | | | | | | | | | | | - moved path addition, config loading and app boot to before the shell is available - apps successfully booting are in an INFO message, failed to boot into an ERROR message - A warning is printed when apps are booted informing to please use releases for actual deployment, and is omitted otherwise. - Some minor refactorings otherwise.
* | Merge pull request #474 from tsloughter/fix_plugin_installTristan Sloughter2015-05-297-27/+105
|\ \ | | | | | | fixing plugin install and paths
| * | add comment explaining installing each plugin individuallyTristan Sloughter2015-05-291-0/+1
| | |