summaryrefslogtreecommitdiff
path: root/src
Commit message (Collapse)AuthorAgeFilesLines
...
* Merge pull request #1318 from tuncer/conventional-stacktraceFred Hebert2016-08-311-1/+1
|\ | | | | Print stacktrace in a more conventional way
| * Print stacktrace in a more conventional wayTuncer Ayaz2016-08-301-1/+1
| | | | | | | | | | | | Insert a newline before printing the stacktrace so that the term is easier to read and copy. This is a more conventional way to print traces, and is, for instance, the way it's done by make and python.
* | reset accumulated coverdata on writing out to disk. this preventsalisdair sullivan2016-08-271-0/+2
| | | | | | | | | | provider chains like `eunit, ct, proper` from misreporting cover stats from providers later in the sequence
* | Merge pull request #1315 from ferd/fix-hashcheck-noindexFred Hebert2016-08-271-1/+10
|\ \ | | | | | | Fix crash when doing hash check with missing index
| * | Fix crash when doing hash check with missing indexFred Hebert2016-08-271-1/+10
| |/ | | | | | | | | | | | | | | | | | | Specifically, when fetching an application where the expected hash is unknown, the hash is validated from the hex index; when the index is available, the hash is fetched fine and later inserted in the lock file. However, if the index is not available, the call would simply crash. This patch fixes thing so that instead, the index is refreshed before giving up and failing.
* | Re-format cover exclusion codeFred Hebert2016-08-271-17/+26
| | | | | | | | | | | | - brings back former error handling and debug messages - keeps the filtering of excluded mods and debug messages - breaks up code into multiple functions and removes nesting
* | Merge branch 'cover_excl_mods' of https://github.com/lpgauth/rebar3 into ↵Fred Hebert2016-08-271-15/+23
|\ \ | |/ |/| | | lpgauth-cover_excl_mods
| * Add support for cover_excl_modsLouis-Philippe Gauthier2016-06-151-15/+23
| |
| * Cutting 3.1.1Fred Hebert2016-05-171-1/+1
| |
* | Returning to git-based taggingFred Hebert2016-08-261-1/+1
| |
* | Bumping to 3.3.0Fred Hebert2016-08-261-1/+1
| |
* | Equivalent trim_all in bin split for <17.xFred Hebert2016-08-251-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The trim_all option used in binary:split/3 is not supported in 17.x. This patch makes an equivalent operation by eliminating empty split fragments. From the docs: trim Removes trailing empty parts of the result (as does trim in re:split/3. trim_all Removes all empty parts of the result. The new expression is therefore equivalent to the old one, but with the added benefit of compatibility. Fixes #1275
* | Make Edoc carry paths of pre-built librariesFred Hebert2016-08-251-9/+26
| | | | | | | | | | | | | | | | | | | | | | Given the topological sort applied to top-level apps, we should be able to carry the edoc values for paths configured when more than one app exists. This allows multiple disjoint app to have defined cross-linking in the documentation. Tests pending.
* | Print error on too many help argumentsRasmus Svensson2016-08-151-1/+4
| | | | | | | | | | | | | | Previously the help task would crash when given more than two arguments. After this change it instead print a message: Too many arguments given. Usage: rebar3 help [<namespace>] <task>
* | Make the escriptize provider hookableFred Hebert2016-08-131-2/+7
| | | | | | | | This will allow to move and modify the generated files
* | Merge pull request #1298 from ferd/escript-filter-paths-fixFred Hebert2016-08-101-1/+3
|\ \ | | | | | | Fix filtering of system libraries in escriptize
| * | Fix filtering of system libraries in escriptizeFred Hebert2016-08-101-1/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | https://github.com/erlang/rebar3/pull/1249 introduced a mechanism by which escript dependencies of applications only would be included; this required adding a filter to skip system libraries in the OTP root because that tends to break escripts in very nasty ways. However, the problem came that some libraries are just not in the escript path but may still be included; for these libraries the path prefix check failed as they return `{error, bad_name}` from `code:lib_dir(Dep)` rather than just the path they're in -- specifically, this happens with top level apps. The issue was reported in https://github.com/erlang/rebar3/issues/1294 and the current patch fixes it by accepting a `bad_name` dep as valid, since it is obviously not in the root path.
* | | Merge pull request #1288 from ElectronicRU/masterFred Hebert2016-08-101-1/+1
|\ \ \ | | | | | | | | Typo fix.
| * | | Typo fix.Alexander Sedov2016-08-041-1/+1
| |/ /
* | | Merge pull request #1282 from ssbx/custom_template_dirFred Hebert2016-08-101-1/+1
|\ \ \ | | | | | | | | template_dir option was forgotten in documentation plus recurse in di…
| * | | template_dir option was forgotten in documentation plus recurse in directory ↵Sébastien Serre2016-07-231-1/+1
| | | | | | | | | | | | | | | | added
* | | | Handle `escriptize` when the specified app is missingNathaniel Waisbrot2016-08-041-2/+6
| |/ / |/| | | | | | | | | | | When rebar.config contains a `escript_main_app` option, but the specified app doesn't exist in the build directory, print an error.
* | | Merge pull request #1274 from deadtrickster/ssl_verify_fun_bumpFred Hebert2016-08-011-1/+1
|\ \ \ | | | | | | | | ssl_verify_hostname was renamed to ssl_verify_fun
| * | | ssl_verify_hostname was renamed to ssl_verify_funIlya Khaprov2016-07-151-1/+1
| | | |
* | | | Merge pull request #1279 from gbour/fix-dialyzeralisdair sullivan2016-07-311-0/+2
|\ \ \ \ | |_|/ / |/| | | fix catching `not_valid` error on dialyzer
| * | | Fix return error on `not_valid` to force .plt file regenerationGuillaume Bour2016-07-301-2/+1
| | | |
| * | | Fix support for `not_valid` dialyzer errorGuillaume Bour2016-07-221-0/+3
| |/ /
* | | Fix opts check when compiler called with dict optsFred Hebert2016-07-221-1/+7
|/ / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | rebar_base_compiler allows to be called with two types of options: a dictionary, or a rebar_state record. In the later case, the options are taken out with a call from rebar_opts, which fetches options that have been inserted in the application via rebar_app_info as part of the app_discovery phase, and are a list. This yields a possibility that options used when formatting warnings can either be a list of a dict, and we only used lists when making checks. This ended up breaking 3rd party compiler users (i.e. LFE compile plugin) since they were calling us with a dict rather than our own internal records. This patch supports both types of lookups to avoid issues.
* | Avoid PLT rebuild when files deleted on new dialyzerJames Fish2016-07-111-3/+16
| |
* | Don't error when analyzing empty appJames Fish2016-07-111-4/+7
| |
* | Handle empty PLTsJames Fish2016-07-111-1/+12
| |
* | Merge pull request #1249 from ferd/required-escript-depsFred Hebert2016-07-081-5/+19
|\ \ | | | | | | Escriptize based on configured apps only
| * | Escriptize based on configured apps onlyFred Hebert2016-06-261-5/+19
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Prior to this patch, the escriptize command flat out selected all declared dependencies. This patch instead looks at the app files and only includes the dependencies of the top level app and the extra ones, avoiding to package more apps than required. This required a version bump on cth_readable as it mistakenly included 'syntax_lib' instead of 'syntax_tools' as a dependency.
* | | Fixes for windows environment: 1) copy empty directories when cloning (since ↵Steve Strong2016-06-282-3/+3
|/ / | | | | | | git occasionally has a refs directory with no files in it - if the directory is not present, then git does not believe it is a git repo) and 2) change order of git rev-parse arguments to match git docs
* | Merge pull request #1207 from ferd/pkg-local-hash-lockFred Hebert2016-06-228-32/+125
|\ \ | | | | | | lock file contains expected hash for pkg dependencies
| * | Only display old version warning onceFred Hebert2016-06-101-4/+17
| | | | | | | | | | | | | | | This uses the env variable as a global store for variables. It's not the cleanest thing, but it sounded nicer than pdicts.
| * | Hashes in lockfile are diff friendlyFred Hebert2016-06-091-2/+21
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This reworks the version and hash printing in the lockfile to minimize diff changes: - the version is on its own line so that the locks are mostly the same aside from the last line - the hashes are each printed on one line with the package name for simpler diffing too.
| * | Hide the expected hash on fetch outputFred Hebert2016-05-251-1/+5
| | |
| * | Validate checksums expected vs obtainedFred Hebert2016-05-242-7/+16
| | |
| * | Fetch hashes from index prior to fetchingFred Hebert2016-05-241-1/+8
| | |
| * | Support package hashes in structure and lockfileFred Hebert2016-05-246-26/+67
| | | | | | | | | | | | | | | | | | | | | | | | | | | - the internal representation for package locks moves from `{Name, {pkg, PkgName, Vsn}, Lvl}` to `{Name, {pkg, PkgName, Vsn, Hash}, Lvl}` - the internal representation for packages moves from `{pkg, PkgName, Vsn}` to `{pkg, PkgName, Vsn, Hash}` - the hash can be `undefined`, meaning no check will be done - no checking is done yet.
* | | Merge pull request #1242 from jonathn/unset-debugFred Hebert2016-06-181-2/+2
|\ \ \ | | | | | | | | Let DEBUG="" and QUIET="" mean disable the option
| * | | Let DEBUG="" and QUIET="" mean disable the optionJon2016-06-181-2/+2
| | | | | | | | | | | | | | | | | | | | Setting DEBUG/QUIET environment variable to the empty string now acts the same as unsetting it. Unsetting is not always easy/possible.
* | | | go back to semver post-releaseFred Hebert2016-06-181-1/+1
| | | |
* | | | Bump to 3.2.0Fred Hebert2016-06-181-1/+1
| | | |
* | | | Fix unicode rendering of deps tree (issue #1140)Jon2016-06-181-1/+1
|/ / /
* | | ignore return value of `rebar_utils:reread_config` in shell provideralisdair sullivan2016-06-121-1/+2
| | |
* | | normalize include dirs to absolute paths during compilationalisdair sullivan2016-06-121-3/+6
| | | | | | | | | | | | | | | | | | | | | | | | changed include files were not properly picked up by `erlc_compiler` in cases where they were in directories relative to the application source and not the current working dir of rebar3 fixes #1199
* | | Merge pull request #1232 from talentdeficit/REBAR-1184Fred Hebert2016-06-111-0/+7
|\ \ \ | | | | | | | | REBAR-1184 always recompile if `ERL_COMPILER_OPTIONS` env var is set
| * | | REBAR-1184 always recompile if `ERL_COMPILER_OPTIONS` env var is setalisdair sullivan2016-06-111-0/+7
| | | | | | | | | | | | | | | | partially addresses #1184