summaryrefslogtreecommitdiff
path: root/src
Commit message (Collapse)AuthorAgeFilesLines
* 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
* | | Merge pull request #1227 from ferd/compiler-source-formatFred Hebert2016-06-113-13/+67
|\ \ \ | | | | | | | | Compiler source paths in output are now relative
| * | | Fix alternative path printing, default is relativeFred Hebert2016-06-092-38/+39
| | | | | | | | | | | | | | | | | | | | | | | | | | | | This required moving the reporting functions to rebar_base_compiler but since this was already done for error_tuple, this seems to make sense. Paths are also reformatted for warnings in erlc files.
| * | | Rename 'unchanged' option to 'build'Fred Hebert2016-06-061-4/+4
| | | | | | | | | | | | | | | | | | | | This will allow us to eventually change the default type without it looking ridiculous.
| * | | Option to format compiler sourcesGarrett Smith2016-05-023-9/+62
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | By default rebar3 displays compiler sources as absolute paths in their original location, which is under the build dir. This change introduces an option 'compiler_source_format' to format sources in two alternative ways: relative absolute When either 'relative' or 'absolute' are specified, the file is resolved to its original location when it is a link. When 'relative' is specified, the path is displayed relative to the current working directory. When 'absolute' is specified, the path is absolute. The default value is 'unchaged' which leaves the compiler source unchanged. This is arguably too flexible as I suspect most people would opt for 'relative' all the time - it's the most compact representation of the file and is sufficient to find the source given cwd. The change however is meant to introduce the change gradually, preserving existing behavior and giving users a choice for formats. In time perhaps the default can be changed to 'relative' - but still allowing users to revert to the other two options ('absolutel' and 'unchanged') as needed.
* | | | add support for passing a sys_config to common testTristan Sloughter2016-06-114-30/+56
| |/ / |/| |
* | | Support ENV config for proxy valuesFred Hebert2016-06-111-1/+5
| | | | | | | | | | | | | | | - The configured stuff in rebar3 takes precedence over the ENV - The env is then chosen
* | | Merge pull request #1080 from project-fifo/crashdumpFred Hebert2016-06-104-3/+19
|\ \ \ | | | | | | | | Write rebar3.crashdump on errors
| * | | Make sure not to dump in api modeHeinz N. Gies2016-04-164-5/+18
| | | |
| * | | Write rebar3.crashdump on errorsHeinz N. Gies2016-04-162-3/+6
| | | |
* | | | Merge pull request #1164 from snaiper80/fix_cover_compile_erroralisdair sullivan2016-06-061-1/+4
|\ \ \ \ | | | | | | | | | | Fix compile error case when cover compilation
| * | | | Fix compile error case when cover compilationLee GiTack2016-04-181-1/+4
| |/ / / | | | | | | | | | | | | | | | | | | | | | | | | Dependent libs is required for some module when cover compiling. So all dependencies should be available on code path. This fixes #1148 issue.
* | | | Merge pull request #1219 from ferd/umbrella-upgradeFred Hebert2016-06-061-1/+23
|\ \ \ \ | | | | | | | | | | Bugfix for upgrading deps of umbrella apps
| * | | | Rework patch to work without accidentFred Hebert2016-06-061-5/+21
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The previous iteration of the patch worked somewhat by accident. After digging in and figuring out why the two dep sources are the way they are, the patch is now properly working with a well-documented explanatiion inline.
| * | | | Account for umbrella apps' deps in upgradesFred Hebert2016-06-041-1/+7
| | | | |
* | | | | Handle control sequences in formatted errorsPéter Gömöri2016-06-061-2/+2
|/ / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Formatted errors can accidentally contain substrings which are control sequences for io:format/2. This is a naive attempt to handle such cases. One example is running xref on the following module (assuming module m does not exist) ``` -module(handle_error). -export([f/0]). f() -> m:'bobby~stables'(). ``` ``` $ rebar3 xref ===> Verifying dependencies... ===> Compiling myapp ===> Running cross reference analysis... escript: exception error: bad argument in function io:format/3 called as io:format(<0.23.0>, "\e[0;31m===> \e[1mWarning: handle_error:f/0 is unused export (Xref)\nWarning: handle_error:f/0 calls undefined function m:bobby~stables/0 (Xref)\n\n\e[0m\e[0m", []) in call from rebar3:handle_error/1 (/Users/gomoripeti/git/rebar3/_build/default/lib/rebar/src/rebar3.erl, line 279) ```
* | | | Merge pull request #1211 from erlang/ignore-raw-deps-specFred Hebert2016-06-032-1/+24
|\ \ \ \ | | | | | | | | | | Don't die when source deps with [raw] are used
| * | | | Don't die when source deps with [raw] are usedFred Hebert2016-05-272-1/+24
| | |_|/ | |/| | | | | | | | | | | | | | This adds support for their format both on the first read and when looking for modifications to dependencies.
* | | | Debug log updateStuart Thackray2016-05-271-1/+1
|/ / /
* | | filter available package versions individually by buildtoolsTristan Sloughter2016-05-221-6/+6
| | |
* | | Fix path command to consider {deps_dir, "deps"} in rebar.configzsoci2016-05-181-4/+4
| | |
* | | #1185 fix windows git working directoryPost hawk2016-05-181-2/+9
| | | | | | | | | fix issue #1185 git working directory issues due to command line options in Windows
* | | Merge pull request #1194 from tsloughter/provider_hook_pathsTristan Sloughter2016-05-161-12/+16
|\ \ \ | | | | | | | | don't needlessly update the code path twice if no hooks to run
| * | | don't needlessly update the code path twice if no hooks to runTristan Sloughter2016-05-161-12/+16
| | | |
* | | | don't generated coverage for `extra_src_dirs`alisdair sullivan2016-05-151-17/+2
|/ / / | | | | | | | | | closes #1057 and #1179
* | | Fix shell node startupCarlos Gonzalez2016-05-091-0/+4
| |/ |/|
* | Merge pull request #1056 from lpgauth/xref_ignoresFred Hebert2016-04-301-10/+12
|\ \ | | | | | | Add support for xref_ignores
| * | Add support for xref_ignoresLouis-Philippe Gauthier2016-02-121-10/+12
| | |
* | | Merge pull request #1121 from frojasg/feature/config-rebar-dir-using-env-varTristan Sloughter2016-04-302-3/+11
|\ \ \ | | | | | | | | Allows overwrite default cache dir using REBAR_CACHE_DIR