Tristan Sloughter
33e0612a75
run pre and post hooks for release and tar providers
10 年前
Tristan Sloughter
b9b4e12600
keep all_deps list in state created for building deps
10 年前
Fred Hebert
3ed0c5feff
fix bareness issues
- Crashes in providers lib when no providers in a namespace are bare
- Making sure bareness matches semantics; i.e. a bare provider is
visible, a non-bare provider is hidden.
10 年前
Andras Boroska
5f423e46d9
Fix badarg exception when setting group_leader for a dead pid
When setting up a shell some time elapses between listing the pids and setting
the group_leader. If the process exited during that time then
erlang:group_leader/2 will crash with badarg.
10 年前
alisdair sullivan
d2b62ea1f2
allow `src_dirs` and `extra_src_dirs` at the root of the rebar config
10 年前
Fred Hebert
c87f2a2c73
Optionally allow node names to the rebar3 shell.
Helps with integration efforts, but unfortunately can't support the
'-sname' and '-name' options, only '--sname' and '--name'.
10 年前
Fred Hebert
30847ec661
Fix config loading in shell
Config files from the command line would expect the wrong format:
{app1, [...]}.
{app2, [...]}.
Instead of the correct sys.config format:
[{app1, [...]},
{app2, [...]}]
Not supported yet: the recursive file references documented in
http://www.erlang.org/doc/man/config.html
10 年前
Tristan Sloughter
6c6940f860
add comment explaining installing each plugin individually
10 年前
Fred Hebert
398204b13e
Add support to boot apps from releases in shell
Precedence still goes to shell_apps.
10 年前
Fred Hebert
2e7eb8f410
Get prebooted apps to acknowledge sys.config
Change the order from load-config -> start-apps to load-apps ->
load-config -> start-apps
10 年前
Fred Hebert
c79eedf2db
Display experimental warning
The feature may still be modified in the future.
10 年前
Tristan Sloughter
7d33dbf6aa
store plugin providers in app_info's state for deps
10 年前
Fred Hebert
707cddbce7
Fix upgrade of atom-only packages
they would always be left unfound otherwise.
10 年前
Fred Hebert
3de325aa49
Rebar agent reloads the config file on every run
This allows proper checking of new configurations, deps, or plugins, and
makes sure they are detected during an active shell session.
10 年前
Fred Hebert
2fabfe1ee8
'do' returns its final state.
While 'do' skips state updates between subcommands so that:
rebar3 do a, b == (rebar3 a && rebar3 b)
The final state of 'b' does not need to be discarded and might in fact
be useful to get when dealing with Rebar3 as an API.
This can be done without breaking the equality relation already
established.
10 年前
Tristan Sloughter
20f4562c6d
fix for plugin installation and code paths
10 年前
Tristan Sloughter
8687ddc14a
reverse relx config so profile settings are used properly
10 年前
Fred Hebert
51e822e54c
Add a shell agent
The shell agent allows to run rebar3 commands and autoload compiled
modules when that is done.
10 年前
Jean Parpaillon
7ff23a63dc
Add rebar.config 'excluded_apps' key.
Listed applications are simply ignored.
Allows for configuration time sub-application building.
10 年前
Fred Hebert
fb160ebf71
Adding app auto-boot to rebar shell
- moved path addition, config loading and app boot to before the shell
is available
- apps successfully booting are in an INFO message, failed to boot into
an ERROR message
- A warning is printed when apps are booted informing to please use
releases for actual deployment, and is omitted otherwise.
- Some minor refactorings otherwise.
10 年前
Tristan Sloughter
8a50331898
move handling of undefined app state to function
10 年前
Tristan Sloughter
e45c67b023
add additional comments
10 年前
Tristan Sloughter
f772dcee2e
fix storing of pkg and src deps in app_info
10 年前
Tristan Sloughter
37ac2b7833
read in app information after fetch so we have the deps
10 年前
Tristan Sloughter
958213def7
fall back to .app.src file if .app file fails to parse
10 年前
Tristan Sloughter
476a80c33e
format file read error in otp_app module
10 年前
Tristan Sloughter
be79d41093
have .app.src take precedence over .app file
10 年前
Tristan Sloughter
8ad6939939
improve error message fo rmissing app or app.src file
10 年前
Tristan Sloughter
8528204431
print and format error message for bad .app files and all bad configs
10 年前
Viacheslav Kovalev
c2c1079ba2
Show stacktrace to errors caught in rebar3 module.
10 年前
Tristan Sloughter
42339f62f3
only run clean hooks once
10 年前
Tristan Sloughter
fdc1267f67
start httpc in run/1 so it is available to download global plugins
10 年前
Tristan Sloughter
0bd49634ce
don't lose global plugin providers
10 年前
Tristan Sloughter
e65ad8c2ca
run hooks when building plugins
10 年前
Tristan Sloughter
76893ca4b9
make deps task listed in help and update zsh/bash completions
10 年前
Viacheslav Kovalev
49d977c2b8
Initialize namespace in rebar_state with default value.
10 年前
Tristan Sloughter
9cfef9c011
only update, when not in explicit upgrade, locks if out of date
10 年前
Tristan Sloughter
35166b5f1a
parsing deps of a dep should be done at the dep's level + 1
10 年前
Tristan Sloughter
b34cc49924
always upgrade if needs_update is true
10 年前
Viacheslav V. Kovalev
efd2445c74
Properly reset hooks for single-app project
10 年前
alisdair sullivan
b06a6ecadd
don't add `{extra_src_dirs, ["test"]}` to `test` profile
adding it results in ct test suites being compiled before they're
properly copied so changes made to suites between runs are not
reflected if a run fails before test dirs are copied
10 年前
Viacheslav V. Kovalev
549aaf770f
Properly initialize command parsed args in rebar state
10 年前
alisdair sullivan
d05103a4a8
methods for retrieving `src_dirs` and `extra_src_dirs`
note that now ALL `src_dirs` across included profiles are
compiled. previously only the last included profile's `src_dirs`
were used
10 年前
Stefan Grundmann
b9778401c2
io_lib:format/2 will throw badarg when trying to print rebar_resource:resource() as string
10 年前
Tristan Sloughter
529025b6fd
purge loaded code when it conflicts with project apps in tests
10 年前
Tristan Sloughter
3a201230fe
install plugins from the global config to ~/.cache/plugins
10 年前
alisdair sullivan
04f63ff53c
remove use of `code:load_abs/1` in favor of `beam_lib:chunks/2` to
avoid repeated loading and unloading of modules
10 年前
alisdair sullivan
c534deafc5
generalize the "test" special dir into an {extra_src_dirs, [...]} option
like `src_dirs`, `extra_src_dirs` are directories to be copied to
the `_build` dir and compiled. unlike `src_dirs` they are not added
to the .app specification
10 年前
soranoba
39513a5293
be able to use the specified edoclet in deps
10 年前
Stefan Grundmann
24615d8def
fix usage string in rebar_prv_unlock
10 年前