summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* Updating manpages before 3.7.0Fred Hebert2018-11-221-5/+13
|
* Merge pull request #1938 from erlang/xrl-yrl-recompileFred Hebert2018-11-186-18/+45
|\ | | | | check last modified time on erl files for xrl and yrl files before compiling
| * fix needed_files type specTristan Sloughter2018-11-181-1/+2
| |
| * check last modified time on erl files for xrl and yrl files before compilingTristan Sloughter2018-11-096-18/+44
| |
* | Merge pull request #1942 from aboroska/fix-plugins-listFred Hebert2018-11-171-1/+2
|\ \ | | | | | | Fix plugins list display to include project plugins
| * | Fix plugins list display to include project pluginsAndrás Boroska2018-11-111-1/+2
| | |
* | | Merge pull request #1941 from tothlac/1940Fred Hebert2018-11-173-6/+64
|\ \ \ | | | | | | | | Support alias format {Namespace, Cmd} and {Namespace, Cmd, Args} (#1940)
| * | | Support alias format {Namespace, Cmd} and {Namespace, Cmd, Args} (#1940)tothlac2018-11-173-6/+64
|/ / /
* | | Fix package upgrade (issue #1945) (#1946)András Boroska2018-11-161-2/+1
| | |
* | | Merge pull request #1844 from simonxu72/masterFred Hebert2018-11-131-12/+28
|\ \ \ | |/ / |/| | add git clone --reference path support
| * | merge from upstream/mastersimonxu722018-11-1313-18/+144
| |\ \ | |/ / |/| |
* | | Merge pull request #1939 from getong/fix_install_outputFred Hebert2018-11-091-1/+1
|\ \ \ | |_|/ |/| | fix install output result
| * | fix install output resultgetong2018-11-101-1/+1
|/ /
* | fix compilation of global plugins (#1935)Tristan Sloughter2018-11-081-4/+7
| |
* | Merge pull request #1929 from Raphexion/raphexion/ignore-emacs-temp-filesFred Hebert2018-11-012-0/+2
|\ \ | | | | | | templates/gitignore ignore emacs temp files
| * | templates/gitignore ignore emacs temp filesNiklas Johansson2018-10-312-0/+2
|/ / | | | | | | | | | | | | | | emacs creates temp files that ends with tilde (~). These temp files should never be commited. It is therefore safe to ignore them. Signed-off-by: Niklas Johansson <raphexion@gmail.com>
* | set app's dir before setting app_info deps (#1928)Tristan Sloughter2018-10-291-1/+2
| |
* | Merge pull request #1927 from aboroska/fix-app-templateFred Hebert2018-10-271-1/+1
|\ \ | | | | | | Fix misleading config in app template
| * | Fix misleading config in app templateBoroska András2018-10-271-1/+1
|/ / | | | | | | | | Uncommenting the sys.config shell setting in app template rebar.config works now as expected.
* | Merge pull request #1924 from ferd/allow-shell-breakpointsFred Hebert2018-10-232-2/+79
|\ \ | | | | | | Allow Breakpoints during task runs
| * | Allow Breakpoints during task runsFred Hebert2018-10-222-2/+79
|/ / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This is mostly useful for tests, where a test suite of any kind can be interrupted halfway through so that the user can probe the running system to see what is happening. This is done as follows: 1. the user must call `r3:break()` in a test suite 2. the user runs the task as `r3:async_do(ct)` 3. the test holds up and the user can do whatever 4. the user calls `r3:resume()` and the test proceeds as normal A safeguard is added so that breakpoints are only triggered in the shell in async mode Sample session: $ rebar3 shell ... 1> rebar_agent:async_do(ct). ok ... Running Common Test suites... %%% rebar_alias_SUITE: . === BREAK === 2> % <do some checks> 2> r3:resume(). ok 3> ..... %%% rebar_as_SUITE: ........... %%% rebar_compile_SUITE: ...... ...
* | Merge pull request #1921 from ferd/check-tool-availFred Hebert2018-10-202-0/+38
|\ \ | | | | | | check if git/hg is installed
| * | check if git/hg is installedFred Hebert2018-10-202-0/+38
|/ / | | | | | | | | | | | | | | | | | | This PR is a simpler and mergeable version of #1853 by @shamis, since the provider changed format enough to make merging difficult. Compared to #1853, this also puts the responsibility on each resource to check rather than adding a new optional callback. The process dictionary is use as a warning/check cache.
* | Merge pull request #1920 from ferd/fallback-logFred Hebert2018-10-201-4/+11
|\ \ | | | | | | Fallback when logging isn't initialized
| * | Fallback when logging isn't initializedFred Hebert2018-10-201-4/+11
|/ / | | | | | | | | | | | | | | In some cases, such as when the global rebar.config file contains typoes and invalid terms, the rebar3 executable fails when trying to log the error since it hasn't been set yet, such as in #1792 This patch fixes that by going for a fallback mechanism.
* | Merge pull request #1918 from ferd/fix-hooks-on-windowsFred Hebert2018-10-182-5/+5
|\ \ | | | | | | Fix shell hook expansion on windows
| * | Fix shell hook expansion on windowsFred Hebert2018-10-182-5/+5
|/ / | | | | | | | | | | | | | | | | | | | | Dollar Variable expansion (`$VAR`) was inadvertently disabled for windows variables, although %VARIABLES% already worked. This reduced the portability of hooks in general. Additionally, tests would fail on windows due to bad quoting of paths: the path C:/a/b/c would fail when passed to the command `cmd /q /c C:/a/b/c` because it would interpret /a /b and /c as 3 options. Using quotes makes the tests pass.
| * Merge remote-tracking branch 'upstream/master'simonxu722018-10-1681-1880/+4649
| |\ | |/ |/|
* | Merge pull request #1907 from ferd/refactor-env-pathsFred Hebert2018-10-1516-55/+523
|\ \ | | | | | | Refactor env path handling and fix some bugs related to it
| * | Drop outdated commentsFred Hebert2018-10-141-2/+0
| | |
| * | Optimize path handlingFred Hebert2018-10-117-47/+53
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - Only set paths that need to be put as a priority - Clean up paths before leaving API mode The first point accounted for some performance cost, but the latter one explains the 40% overhead in test runs: since rebar3 calls rebar3 a lot with a bunch of fake apps, and that the new mechanism for path handling by default does not _remove_ paths, it just _orders_ them, we would end up in a situation where as the tests ran, more and more fake paths would get added to the VM. By the time the run was over, all path handling would take longer since more paths needed filtering every time. By resetting paths at the end of an API run, we prevent a given 'project' from polluting another one's runtime and performance once the API successfully returns.
| * | Clean path code, add tests, add clash detectionFred Hebert2018-10-112-9/+75
| | | | | | | | | | | | Some finishing touch to that code
| * | Fix a bug in compiler path handlingFred Hebert2018-10-113-12/+10
| | | | | | | | | | | | Also handle some formatting
| * | Abstracted path managementFred Hebert2018-10-1114-48/+448
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Move path management out of rebar_utils manual code path function handling (which we leave there for backwards compat), and centralize them to allow easier coordination of paths between plugins and deps. On top of path handling, do a check of loaded modules to only purge and reload those that actually need it done in order to prevent all kinds of weird interaction and accidental purge kills. It also allows the possible cohabitation of both at once, with a "in case of conflict pick X" as a policy Changing path handling in providers also highlighted a bunch of bugs in some tests and appears to fix some in other providers, specifically around plugins.
* | | fix resolving versions from vcs (#1915)Tristan Sloughter2018-10-144-8/+21
| | | | | | | | | | | | | | | | | | app_info was turning any vsn into a binary which the vcs_vsn function interprets as being an actual version and not something like <<"git">>. original_vsn shouldn't be converted as it is then not longer "original".
* | | fix finding transitive deps with prerelease versions (#1914)Tristan Sloughter2018-10-144-17/+25
|/ /
* | throw builder error when returned from project build (#1909)Tristan Sloughter2018-10-101-2/+6
| |
* | Merge pull request #1908 from ferd/re-add-erlc-compilerFred Hebert2018-10-071-0/+841
|\ \ | | | | | | Re-add erlc compiler; plugins need it
| * | Re-add erlc compiler; plugins need itFred Hebert2018-10-071-0/+841
|/ / | | | | | | | | However, we add a once-printed deprecation warning for the new interface.
* | fix yrl compiler and add test (#1906)Tristan Sloughter2018-10-062-4/+21
| |
* | remove unused app_compilers app env setting (#1903)Tristan Sloughter2018-10-061-2/+2
| |
* | Back to git-based versioningTristan Sloughter2018-10-051-1/+1
| |
* | Bump to 3.7.0-rc2Tristan Sloughter2018-10-051-1/+1
| |
* | Bump bbmustache and fix templates (#1862)Fred Hebert2018-10-057-18/+23
| | | | | | | | | | | | | | | | | | * bump bbmustache to version 1.6.0 * Use alternative bbmustache brackets in templates This fixes the problems where literal nested tuples (`{{a,b},c}` or `{{a,b}}`) would blow up and spaces needed to be inserted.
* | compiler behaviour (#1893)Tristan Sloughter2018-10-0522-906/+1082
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * add compile type for dynamic project compilation * new rebar_compiler abstraction for running multiple compilers rebar_compiler is a new behaviour that a plugin can implement to be called on any ues of the compile provider to compile source files and keep track of their dependencies. * fix check that modules in .app modules list are from src_dirs * use project_type to find module for building projects * allow plugins to add project builders and compilers
* | upgrade relx and set base_dir in overlay_vars (#1902)Tristan Sloughter2018-10-053-4/+5
| |
* | warn if the matched package is retired, skip prerelease (#1897)Tristan Sloughter2018-10-017-64/+134
| | | | | | | | | | | | | | retired packages are now used the same as any other but a warning will be printed when it is resolved. prerelease versions are skipped unless explicitly given as the version in the constraint or lock file.
* | Merge pull request #1890 from phmx/fix_sample_configFred Hebert2018-09-231-3/+3
|\ \ | | | | | | Fix sample config punctuation.
| * | Fix sample config punctuation.Maxim Philippov2018-09-221-3/+3
|/ /
* | properly support top level app erl_opts from REBAR_CONFIG os var (#1889)Tristan Sloughter2018-09-218-61/+157
| | | | | | | | | | | | When REBAR_CONFIG was set it would not effect the top level app's configuration because app_discover was rereading the top level rebar.config which ignored REBAR_CONFIG. Instead this patch has it use the existing configuration from REBAR_CONFIG.