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
il y a 10 ans
Fred Hebert
398204b13e
Add support to boot apps from releases in shell
Precedence still goes to shell_apps.
il y a 10 ans
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
il y a 10 ans
Fred Hebert
c79eedf2db
Display experimental warning
The feature may still be modified in the future.
il y a 10 ans
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.
il y a 10 ans
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.
il y a 10 ans
Fred Hebert
51e822e54c
Add a shell agent
The shell agent allows to run rebar3 commands and autoload compiled
modules when that is done.
il y a 10 ans
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.
il y a 10 ans
Fred Hebert
b4786b804c
Merge pull request #471 from tsloughter/master
fall back to .app.src file if .app file fails to parse
il y a 10 ans
Tristan Sloughter
e45c67b023
add additional comments
il y a 10 ans
Tristan Sloughter
f772dcee2e
fix storing of pkg and src deps in app_info
il y a 10 ans
Tristan Sloughter
37ac2b7833
read in app information after fetch so we have the deps
il y a 10 ans
Tristan Sloughter
958213def7
fall back to .app.src file if .app file fails to parse
il y a 10 ans
Fred Hebert
5f577e2ab1
Merge pull request #470 from tsloughter/master
print and format error message for bad .app files and all bad configs
il y a 10 ans
Tristan Sloughter
476a80c33e
format file read error in otp_app module
il y a 10 ans
Tristan Sloughter
be79d41093
have .app.src take precedence over .app file
il y a 10 ans
Tristan Sloughter
8ad6939939
improve error message fo rmissing app or app.src file
il y a 10 ans
Tristan Sloughter
8528204431
print and format error message for bad .app files and all bad configs
il y a 10 ans
Tristan Sloughter
b7acb56f47
Merge pull request #469 from kovyl2404/show-stacktrace
Show stacktrace to errors caught in rebar3 module.
il y a 10 ans
Viacheslav Kovalev
c2c1079ba2
Show stacktrace to errors caught in rebar3 module.
il y a 10 ans
Fred Hebert
53552d3f77
Merge pull request #466 from tsloughter/clean_hooks
only run clean hooks once
il y a 10 ans
Tristan Sloughter
42339f62f3
only run clean hooks once
il y a 10 ans
Fred Hebert
69ae48e8f1
Merge pull request #458 from tsloughter/run_plugin_hooks
run hooks when building plugins
il y a 10 ans
Tristan Sloughter
3827363288
Merge pull request #465 from tsloughter/global_providers
don't lose global plugin providers
il y a 10 ans
Tristan Sloughter
fdc1267f67
start httpc in run/1 so it is available to download global plugins
il y a 10 ans
Tristan Sloughter
0bd49634ce
don't lose global plugin providers
il y a 10 ans
Tristan Sloughter
e65ad8c2ca
run hooks when building plugins
il y a 10 ans
Tristan Sloughter
62c9c66182
Merge pull request #456 from kovyl2404/provider-hooks-namespaces-fix
Properly setup namespace for dependency provider hooks
il y a 10 ans
Fred Hebert
510f4596ce
Merge pull request #464 from tsloughter/completions
make deps task listed in help and update zsh/bash completions
il y a 10 ans
Fred Hebert
f8c29be458
Merge pull request #463 from tsloughter/windows
add Windows build badge
il y a 10 ans
Tristan Sloughter
76893ca4b9
make deps task listed in help and update zsh/bash completions
il y a 10 ans
Tristan Sloughter
6144ee67a7
add Windows build badge
il y a 10 ans
Viacheslav Kovalev
49d977c2b8
Initialize namespace in rebar_state with default value.
il y a 10 ans
Fred Hebert
1c6aafeb84
Merge pull request #453 from tsloughter/needs_update
Update deps if their checkout doesn't match lock entry
il y a 10 ans
Tristan Sloughter
9cfef9c011
only update, when not in explicit upgrade, locks if out of date
il y a 10 ans
Tristan Sloughter
dc3afe96c6
update stable_lock test from Fred's branch
il y a 10 ans
Fred Hebert
166d5a9d09
Add tests for lock forwarding
Lock forwarding is what happens when the file on disk are on a different
version from what is specified in the lock file. Files on disk should be
updated to respect what's in the lock file.
A negative test has been added so that lock files that are outdated vis.
the underlying git and packages but match files on disk do not get
forwarded. This job is left to the `upgrade' command.
il y a 10 ans
Tristan Sloughter
35166b5f1a
parsing deps of a dep should be done at the dep's level + 1
il y a 10 ans
Tristan Sloughter
b34cc49924
always upgrade if needs_update is true
il y a 10 ans
Fred Hebert
d91c37ed5c
Merge pull request #443 from kovyl2404/singleapp-project-duplicated-hook
Run hooks for single application only once.
il y a 10 ans
Viacheslav V. Kovalev
efd2445c74
Properly reset hooks for single-app project
il y a 10 ans
Tristan Sloughter
ab1d264557
Merge pull request #457 from talentdeficit/extra_src_dirs_ct
don't add `{extra_src_dirs, ["test"]}` to `test` profile
il y a 10 ans
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
il y a 10 ans
Tristan Sloughter
3237069567
Merge pull request #455 from kovyl2404/init-command-parsed-args
Properly initialize command parsed args in rebar state
il y a 10 ans
Tristan Sloughter
41f31f608d
Merge pull request #451 from talentdeficit/all_src_dirs
methods for retrieving `src_dirs` and `extra_src_dirs`
il y a 10 ans
Viacheslav V. Kovalev
549aaf770f
Properly initialize command parsed args in rebar state
il y a 10 ans
Fred Hebert
ff071a8df1
Merge pull request #454 from tsloughter/readme_source
update readme building instructions to prefer source
il y a 10 ans
Tristan Sloughter
7dce68264b
update readme building instructions to prefer source
il y a 10 ans
Tristan Sloughter
8c6af888b2
Merge pull request #442 from tsloughter/tests_replace_paths
purge loaded code when it conflicts with project apps in tests
il y a 10 ans
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
il y a 10 ans