Viacheslav Kovalev
49d977c2b8
Initialize namespace in rebar_state with default value.
vor 10 Jahren
Tristan Sloughter
9cfef9c011
only update, when not in explicit upgrade, locks if out of date
vor 10 Jahren
Tristan Sloughter
35166b5f1a
parsing deps of a dep should be done at the dep's level + 1
vor 10 Jahren
Tristan Sloughter
b34cc49924
always upgrade if needs_update is true
vor 10 Jahren
Viacheslav V. Kovalev
efd2445c74
Properly reset hooks for single-app project
vor 10 Jahren
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
vor 10 Jahren
Viacheslav V. Kovalev
549aaf770f
Properly initialize command parsed args in rebar state
vor 10 Jahren
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
vor 10 Jahren
Stefan Grundmann
b9778401c2
io_lib:format/2 will throw badarg when trying to print rebar_resource:resource() as string
vor 10 Jahren
Tristan Sloughter
529025b6fd
purge loaded code when it conflicts with project apps in tests
vor 10 Jahren
Tristan Sloughter
3a201230fe
install plugins from the global config to ~/.cache/plugins
vor 10 Jahren
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
vor 10 Jahren
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
vor 10 Jahren
soranoba
39513a5293
be able to use the specified edoclet in deps
vor 10 Jahren
Stefan Grundmann
24615d8def
fix usage string in rebar_prv_unlock
vor 10 Jahren
Fred Hebert
ca038d39f7
Proper custom pkg index support, some tests
- The rebar package index files have been moved off the default path and
will require a new `rebar3 update`
- Caching of downloaded packages automatically takes place in a path
relative to the CDN used
- The cache path is not shared with hex as we now write and modify data
in there arbitrarily
- Basic tests plus the working set for more of them is included
vor 10 Jahren
Tristan Sloughter
86fbaaeb08
add bad_download error
vor 10 Jahren
Tristan Sloughter
1643f4a1fc
wrap fetch errors in rebar_fetch PRV_ERROR
vor 10 Jahren
Tristan Sloughter
1fe93136c4
throw errors returned by resource:download/3
vor 10 Jahren
Fred Hebert
56c925b75b
Ad-hoc attempt at restructuring pkg cache
vor 10 Jahren
Tristan Sloughter
b636822d73
check md5sum of package against that sent by s3
vor 10 Jahren
Tristan Sloughter
f30e5063ca
don't print skip message if dep is locked for pkgs as well
vor 10 Jahren
Tristan Sloughter
819d0fb06f
verify checksums of hex packages
vor 10 Jahren
Tristan Sloughter
7905a9f19c
store hex package downloads in shared cache dir
vor 10 Jahren
alisdair sullivan
e4f9fbfc9d
when compiling ct dirs base compiler input dir on project root
rather than profile root
fixes #415
vor 10 Jahren
Tristan Sloughter
fa95321774
remove uses of 'case catch'
vor 10 Jahren
Fred Hebert
f5527de4e1
Further restricting skipped deps warnings
vor 10 Jahren
Tristan Sloughter
fd4b5f5f2f
improve log messages on upgrades
vor 10 Jahren
Tristan Sloughter
a6f33258e2
fix failure on missing OTP_VERSION file #403
vor 10 Jahren
Tristan Sloughter
c612b0e1fd
check registry for missing package that may exist for mix
vor 10 Jahren
alisdair sullivan
9c544217ba
delete all symlinks when copying from project files to `_build` tree
to prevent any data from being overwritten
fixes #395
vor 10 Jahren
Tristan Sloughter
a41fbf6cfe
add processing_base_dir to rebar_api
vor 10 Jahren
Tristan Sloughter
498ec5d3ae
add all plugins, not those just built, to path
vor 10 Jahren
Tristan Sloughter
c5aee4b375
ignore pkgs that can't build with rebar or make
vor 10 Jahren
Tristan Sloughter
d53d3b56be
update mustache to v0.3.0 and relx to 2.0.0
vor 10 Jahren
Tristan Sloughter
4e5bc6056f
update mustache to v0.3.0 and relx to 2.0.0
vor 10 Jahren
derwinlu
3edede54e7
fix rebar_git_resource
* fix shell commands relying on non windows shell commands
* fix shell commands using wrong quotes
* implement native wc -l
vor 10 Jahren
Nathaniel Waisbrot
5cc7c76a8a
try to read a config file when running `rebar shell`
Adds a `--config` flag to the shell command to specify a config file.
If the flag is not specified, attempts to read the sys_config
defined for relx.
vor 10 Jahren
Tristan Sloughter
0fb32e173f
use mustache as a dep
vor 10 Jahren
Umberto Corponi
291e0de2fe
Manage syntax error in app.src files.
- Solve "Uncaught error" failure in case of syntax error in app.src file.
- Print helpful information on the location of the syntax error.
vor 10 Jahren
Tristan Sloughter
275bdd6c04
fix integer to binary conversion for pre17 releases
vor 10 Jahren
Tristan Sloughter
d8509f7842
fix types for pre-17 releases
vor 10 Jahren
Tristan Sloughter
ec600a5b85
add license
vor 10 Jahren
Tristan Sloughter
a364e16ed7
switch mustache imlementation to https://github.com/soranoba/mustache
vor 10 Jahren
Tristan Sloughter
a6bd9be2a2
fix }}} bug in mustache
vor 10 Jahren
Fred Hebert
8642e923c6
Bump to alpha-5
Changelog since alpha-4:
- rebar3 now bootstraps itself
- app compile fixes on app info contents and config inheritance
- dropping ErlyDTL and going to Mustache for smaller executable sizes
and faster load time on small CPUs
- dropping `erlydtl compile` command, ErlyDTL task moved to a plugin
- default dependencies are always fetched in the right place and don't
need to be copied across profile runs
- escriptize fixes
- `unlock` command added
- resolving/avoiding clashes when a rebar3 dep and an application
dependency conflict together
- profile deduplication (`rebar3 as test,test,prod,test eunit` returns
the profile/directories for `prod+test`)
- `upgrade` command bugfixes to recognize promotion of transient deps to
top-level deps
- support template when rebar3 is run as an embedded library
- some optimizations
- parse transform support is better in erl_opts
- fixes to package handling
- fixes to `rebar3 deps`
vor 10 Jahren
Fred Hebert
4dd3eb5aef
Use resource handlers to deal with deps/semver
vor 10 Jahren
Tristan Sloughter
aa7a272aae
set resources to empty list if non in app env
vor 10 Jahren
Tristan Sloughter
bfd08c129d
set resources of state in state initialize functions
vor 10 Jahren
Tristan Sloughter
ce74589a56
handle missing package in registry by skipping
vor 10 Jahren