summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* 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.
* Reinstated testGarrett Smith2016-05-021-0/+1
|
* Option to format compiler sourcesGarrett Smith2016-05-024-11/+87
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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.
* 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-303-5/+45
|\ \ | | | | | | Allows overwrite default cache dir using REBAR_CACHE_DIR
| * | Read env var REBAR_CACHE_DIR on rebar3 only onceFrancisco Rojas2016-04-063-12/+13
| | | | | | | | | | | | | | | Instead of reading every time that rebar_dir:global_cache_dir/1 is called
| * | use priv_dir in rebar_dir testFrancisco Rojas2016-03-171-2/+2
| | |
| * | Add spec for global_cache_dirFrancisco Rojas2016-03-171-0/+1
| | |
| * | Allows overwrite default cache dir using REBAR_CACHE_DIRFrancisco Rojas2016-03-152-4/+42
| | | | | | | | | | | | | | | Allows overwrite the default cache directory using the environment variable REBAR_CACHE_DIR.
* | | Merge pull request #1158 from ferd/fix-remote-shell-loggerTristan Sloughter2016-04-301-1/+3
|\ \ \ | | | | | | | | Fixes logging from remote shells in rebar3 shell
| * | | Fixes logging from remote shells in rebar3 shellFred Hebert2016-04-131-1/+3
| | | | | | | | | | | | | | | | | | | | Somehow swapping the tty handler once more fixes everything. I guess we were missing a step somehow.
* | | | Merge pull request #1159 from waisbrot/edoc-hookFred Hebert2016-04-281-1/+7
|\ \ \ \ | | | | | | | | | | Add a provider hook for edoc
| * | | | Add a provider hook for edocNathaniel Waisbrot2016-04-131-1/+7
| |/ / / | | | | | | | | | | | | Allows `pre_hooks` and `post_hooks` to fire for the `edoc` provider.
* | | | Merge pull request #1169 from ericmj/emj-hex-repoTristan Sloughter2016-04-212-2/+2
|\ \ \ \ | | | | | | | | | | Change to new hex.pm repo URL
| * | | | Change to new hex.pm repo URLEric Meadows-Jönsson2016-04-212-2/+2
|/ / / /
* | | | Merge pull request #1167 from tsloughter/relx_3.19Fred Hebert2016-04-212-2/+2
|\ \ \ \ | |/ / / |/| | | upgrade relx to 3.19.0
| * | | upgrade relx to 3.19.0Tristan Sloughter2016-04-212-2/+2
|/ / /
* | | Merge pull request #1155 from tsloughter/up_relx_ecFred Hebert2016-04-122-4/+4
|\ \ \ | | | | | | | | upgrade relx and erlware_commons
| * | | upgrade relx and erlware_commonsTristan Sloughter2016-04-122-4/+4
| | | |
* | | | Merge pull request #1152 from soranoba/feature/test-distnodeFred Hebert2016-04-072-9/+34
|\ \ \ \ | | | | | | | | | | supported dist_node in ct and eunit
| * | | | Add sname, name, setcookie option in eunit, ctsoranoba2016-04-072-9/+24
| | | | |
| * | | | supported dist_node in ct and eunitsoranoba2016-04-072-0/+10
| | | | |
* | | | | Merge pull request #1151 from filmor/recursive-sys-configFred Hebert2016-04-071-5/+12
|\ \ \ \ \ | |_|/ / / |/| | | | Recursively load configurations in shell
| * | | | Recursively load configurations in shell.Benedikt Reinartz2016-04-071-5/+12
|/ / / / | | | | | | | | | | | | | | | | The sys.config loading in the shell command did not implement recursion and thus processed the file different from a `erl -config cfg/path`.
* | | | Turn back to git-based semver for post-releaseFred Hebert2016-04-041-1/+1
|/ / /
* | | Tag to 3.1.0Fred Hebert2016-04-042-2/+2
| | |
* | | Merge pull request #1147 from ferd/blacklist-shell-reloadsTristan Sloughter2016-04-041-5/+12
|\ \ \ | | | | | | | | Blacklist apps to reload
| * | | Blacklist apps to reloadFred Hebert2016-04-041-5/+12
|/ / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | When an app contains one of the modules we can't afford to get upgraded without breakage (i.e. erlware_commons, providers, getopt), skip reloading that application from the rebar3 agent, such that it can keep on working in subsequent calls. Blacklisted: - erlware_commons (broke on ec_cmd_log) - providers (core to functionality) - cf (useful to not explode on colors) - cth_readable (only used for CT suites, but incompatibilities may break whole runs)
* | | Merge pull request #1138 from egobrain/patch-2Tristan Sloughter2016-04-041-1/+1
|\ \ \ | | | | | | | | Fixed git version bug
| * | | Fixed git version bugYakov2016-04-041-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | I've tried to compile project with git in .app.src vsn Project was tagged as 1.0.0, but resulting .app vsn becomes 1.0.0+build.6.reff0aec24 ```git lg * f0aec24 - (80 минут назад) Fixed ct — Kozlov Yakov (HEAD -> master, tag: 1.0.0, origin/master) ... 5 commits before ``` ``` $ git log --oneline --no-walk --tags --decorate f0aec24 (HEAD -> master, tag: 1.0.0, origin/master) Fixed ct ``` I've found that `HEAD -> master` doest match pattern in [rebar_git_resource](https://github.com/erlang/rebar3/blob/master/src/rebar_git_resource.erl#L204)
* | | | Merge pull request #1144 from talentdeficit/ct_opts_passthruFred Hebert2016-04-011-2/+4
|\ \ \ \ | | | | | | | | | | allow all `ct_opts` arguments to be passed through to `ct:run_test/1`
| * | | | allow all `ct_opts` arguments to be passed through to `ct:run_test/1`alisdair sullivan2016-04-011-2/+4
| | | | |
* | | | | Merge pull request #1132 from ferd/expand-distFred Hebert2016-04-013-27/+165
|\ \ \ \ \ | |/ / / / |/| | | | Extract dist config handling, support {dist_node, ...}
| * | | | rename dist to dist_nodeFred Hebert2016-04-012-10/+10
| | | | |
| * | | | Extract dist config handling, support {dist, ...}Fred Hebert2016-03-213-27/+165
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This commit moves the handling of distribution config and starting out of rebar_prv_shell and into rebar_dist_utils. The module is able to handle standard config options and boot a distributed node mode. This could be used in plugins (once it is exposed) and other providers like CT. Configuration is also expanded so that options like: {dist, [{sname, atom()}, {name, atom()}, {setcookie, term()}]} can be used and will be handled as a default. The config handler supports similar terms from the command line being parsed in if the calling provider supports them. A test suite is added for configuration handling.
* | | | | Merge pull request #1141 from tsloughter/masterFred Hebert2016-03-281-1/+1
|\ \ \ \ \ | |_|/ / / |/| | | | change travis config to only upload escripts for tags (stable releases)
| * | | | change travis config to only upload escripts for tags (stable releases)Tristan Sloughter2016-03-281-1/+1
| | | | |
* | | | | Merge pull request #1131 from leoliu/masterFred Hebert2016-03-221-2/+1
|\ \ \ \ \ | |_|/ / / |/| | | | Cosmetic change: remove last comma-first style
| * | | | Cosmetic change: remove last comma-first styleLeo Liu2016-03-211-2/+1
|/ / / /
* | | | Merge pull request #1128 from fenollp/rebrandingFred Hebert2016-03-194-8/+8
|\ \ \ \ | | | | | | | | | | rebranding: update links rebar/rebar3 -> erlang/rebar3
| * | | | rebranding: update links rebar/rebar3 -> erlang/rebar3Pierre Fenoll2016-03-194-9/+9
| | |/ / | |/| |
* | | | Merge pull request #1129 from psyeugenic/egil/fix-readme-buildFred Hebert2016-03-191-1/+1
|\ \ \ \ | | | | | | | | | | Fix Travis build status image in readme
| * | | | Fix Travis build status image in readmeBjörn-Egil Dahlberg2016-03-191-1/+1
|/ / / /
* | | | Merge pull request #1125 from ferd/fix-paths-outputTristan Sloughter2016-03-191-2/+6
|\ \ \ \ | | | | | | | | | | Support all deps & locks in rebar3 path
| * | | | Support all deps & locks in rebar3 pathFred Hebert2016-03-191-2/+6
| |/ / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | By default, the dependency only handled versioned packages and top-level source dependencies, and locks were being ignored. This patch makes it so locks and package deps are being considered, generating full-blown path lists. Should fix #1117
* | | | Merge pull request #1126 from ferd/single-entry-pkgsTristan Sloughter2016-03-191-11/+21
|\ \ \ \ | | | | | | | | | | Allow 'rebar3 pkgs <app>' to return only that app
| * | | | Allow 'rebar3 pkgs <app>' to return only that appFred Hebert2016-03-191-11/+21
| |/ / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | Unsure if this should be a final supported format or if we should support other ways to match instead. This is a demo to solve the issue hilighted in https://github.com/erlang/rebar3/pull/1072
* | | | Merge pull request #1124 from ferd/improve-intermittent-shell-issuesTristan Sloughter2016-03-191-2/+16
|\ \ \ \ | |/ / / |/| | | Fix bugs/race conditions in shell