Tristan Sloughter
56fdedaf72
switch to REBAR_DEFAULT_PROFILE to make it clear the profile becomes the default for the run
10 lat temu
Tristan Sloughter
5fdf2f82d5
add use of REBAR_PROFILE os var to set default profile
10 lat temu
Tristan Sloughter
3abb122b35
only apply profiles to default
10 lat temu
Tristan Sloughter
731f05cc3d
fix handle_deps when no deps are to be fetched
10 lat temu
Tristan Sloughter
9afd6e89b2
global plugins install to global config directory
10 lat temu
Tristan Sloughter
bdd5d902d9
fix lock provider to work anytime it is run
10 lat temu
Tristan Sloughter
14cb6803e0
wip: profiles
10 lat temu
Tristan Sloughter
154b70b466
properly escape paths
10 lat temu
omarkj
cd2f72d2aa
Transform silent_connections well and parse
verbosity. Verbosity can be a integer but I am
parsing it as a term. This will work for integers
as well as terms.
10 lat temu
omarkj
a93723189f
Correctly parse create_priv_dir.
10 lat temu
omarkj
b0a48436bf
Return errors when tests fail.
10 lat temu
omarkj
94e474e471
Validate the input as it comes in from the
command line by converting things to atoms and
splitting up strings where needed.
10 lat temu
Tristan Sloughter
414621fb82
move rebar.hrl to src to keep private, not for use in plugins
10 lat temu
Fred Hebert
45ac9eb94d
Drop search for templates in cwd
Templates should only be in ~/.rebar3/templates and the built-in ones,
bar some specific overrides someone may want.
Looking recursively for templates in the CWD (.) may end up searching
nearly forever if the project is being created at the top of a very deep
directory tree, with extremely unlikely chances to find relevant
templates.
It causes more problems than benefits.
10 lat temu
Tristan Sloughter
6ec98e0b69
rename functions to be clearer
10 lat temu
Tristan Sloughter
4ea12beb77
fix git resource update check, bad url comparison
10 lat temu
Tristan Sloughter
4888810c69
use digraph topo sort for building
10 lat temu
Tristan Sloughter
eb5c0eb424
include initial verticies in solution list
10 lat temu
Tristan Sloughter
3e01e3e46d
replace rlx_depsolver types with new package types
10 lat temu
Tristan Sloughter
af35d5f0a2
replace rlx_depsolver use with new rebar_digraph
10 lat temu
Tristan Sloughter
f22db1302d
new dep graph working
10 lat temu
Tristan Sloughter
e9b58f2775
set REBAR_DEPS_DIR in hooks env and run pre_compile hooks before deps compile
10 lat temu
Tristan Sloughter
6c0b3f87c0
fix check for plugin being a provider
10 lat temu
James Fish
e90219cb14
Fix printing of dialyzer warnings
Fixes cases where dialyzer warning might include a `~` causing printing
to console to fail with `badarg`.
10 lat temu
James Fish
0bcec763ba
Fix dialyzer to work on rebar
code:lib_dir/1,2 can return archive directory for rebar escript archive
applications, rather than the application's directory in the project.
Add dependencies not listed in `applications` to `dialyzer_plt_apps`.
10 lat temu
James Fish
4ee0157b96
Add configuration to hide warnings when updating plt
10 lat temu
James Fish
16c9a23212
Cleanup dialyzer provider
10 lat temu
James Fish
c948769512
Add crypto to base plt by default
10 lat temu
James Fish
3dff706e14
Clarify how apps are selected for the plt files
10 lat temu
James Fish
37a88be662
Introduce dialyzer otp versioned plts and base plts
Adds a base plt per OTP version that is stored in $HOME/.rebar3/. The
base plt is copied to new projects that don't have a plt for the active
OTP version. Modules are added/removed to the project's copy based on
the project's .app files.
10 lat temu
James Fish
642a71e4ce
Prepare dialyzer command for public use
* Add description
* Make configuration constitent (prefix with dialyzer_)
* Make printed info consistent
10 lat temu
James Fish
16da6d2630
Add options to skip updating plt or success typing
* --update-plt=true|false (false skips updating plt)
* --succ-typings=true|false (false skips success typing analysis)
10 lat temu
James Fish
a96fddfcde
Improve default dialyzer PLT by trying to guess dependencies
Try to automatically detect all application dependencies when `plt_apps`
is not included in `rebar.config`.
Note that this will not follow `runtime_dependencies` in OTP
applications. This can be resolved by adding any missing
`runtime_dependencies` to `applications` in the .app.src file or
including `plt_apps` in `rebar.config`.
10 lat temu
James Fish
16b2dae066
Improve formatting of dialyzer errors
Strip ":0: " from unknown type/function/behaviour warnings
10 lat temu
James Fish
62e7cc27da
Refactor dialyzer PLT use
* Only include `plt_apps` (defaults to deps) in a single PLT
* Update PLT when `plt_apps` (or deps) are changed or updated
* Print warnings for all dialyzer runs (not just `succ_typings`)
10 lat temu
James Fish
03b07c3d39
Fix default dialyzer warnings
* Nolonger supress standard warnings
* Nolonger include race_conditions by default[1]
[1] http://erlang.org/pipermail/erlang-bugs/2014-July/004518.html
10 lat temu
Tristan Sloughter
fb630d18ea
add included applications to app_info applications element
10 lat temu
Tristan Sloughter
293c1b8e6e
add applications field to app_info to track all deps of an application
10 lat temu
Tristan Sloughter
71de52cb9d
fix callback r14 support
10 lat temu
Tristan Sloughter
8635beffc1
catch error on multiplpe app files in an app dir
10 lat temu
Tristan Sloughter
1d5703025c
fix default release output dir to _rel
10 lat temu
Tristan Sloughter
926e550f3b
update package index fetching
10 lat temu
Tristan Sloughter
4c8db4e047
write packages file to tmp so a lost connection doesn't mean corruption
10 lat temu
Fred Hebert
731c3fd8a4
Minor template fixes
- The OTP app template now adds the supevisor
- The default apps_dir value does not contain the trailing '/' that the
template index already added.
10 lat temu
Tristan Sloughter
33e4b7e017
add cleanup_code_path back to rebar_utils for eunit provider
10 lat temu
Tristan Sloughter
6cae428058
use CONFIG_DIR of rebar3 for config directories
10 lat temu
Fred Hebert
392abf1481
First unkeyed var is now 'name', appid -> name
The first variable can be unkeyed and the provider will sub in the
variable name 'name'. Additionally, the built-in templates and
documentation have been updated so that 'appid' is now 'name' and the
alternative commands are shown.
10 lat temu
Fred Hebert
4ed1c4ef58
Allow to forcibly overwrite files with templates
10 lat temu
Fred Hebert
c832b567db
Redo templates with docs and whatnot
This totally breaks compatibility with rebar2, and maybe it shouldn't
have.
10 lat temu
Tristan Sloughter
79b1f23240
move back to using format_error/1
10 lat temu