summaryrefslogtreecommitdiff
path: root/src/rebar_otp_app.erl
Commit message (Collapse)AuthorAgeFilesLines
* revert ebin_modules to include all beams minus extra_src (#1955)Tristan Sloughter2018-11-241-9/+24
|
* fix to include beams built from src files in subdirs in modules listTristan Sloughter2018-11-231-1/+1
|
* compiler behaviour (#1893)Tristan Sloughter2018-10-051-26/+12
| | | | | | | | | | | | | | | | * 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
* support for hex v2, multiple repository fetching, private organizations (#1884)Tristan Sloughter2018-09-131-9/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * update to hex_core for hex-v2 repo support (#1865) * update to hex_core for hex-v2 repo support This patch adds only single repo hex-v2 support through hex_core. Packages no longer filtered out by buildtool metadata and the package index is updated per-package instead of fetched as one large ets dump. * tell travis to also build hex_core branch * support list of repos for hex packages (#1866) * support list of repos for hex packages repos are defined under the hex key in rebar configs. They can be defined at the top level of a project or globally, but not in profiles and the repos configured in dependencies are also ignored. Searching for packages involves first checking for a match in the local repo index cache, in the order repos are defined. If not found each repo is checked through the hex api for any known versions of the package and the first repo with a version that fits the constraint is used. * add {repos, replace, []} for overriding the global & default repos * add hex auth handling for repos (#1874) auth token are kept in a hex.config file that is modified by the rebar3 hex plugin. Repo names that have a : separating a parent and child are considered organizations. The parent repo's auth will be included with the child. So an organization named hexpm:rebar3_test will include any hexpm auth tokens found in the rebar3_test organization's configuration. * move packages to top level of of hexpm cache dir (#1876) * move packages to top level of of hexpm cache dir * append organization name to parent's repo_url when parsing repos * only eval config scripts and apply overrides once per app (#1879) * only eval config scripts and apply overrides once per app * move new resource behaviour to rebar_resource_v2 and keep v1 * cleanup use of rebar_resource module and unused functions * cleanup error messages and unused code * when discovering apps support mix packages as unbuilt apps (#1882) * use hex_core tarball unpacking support in pkg resource (#1883) * use hex_core tarball unpacking support in pkg resource * ignore etag if package doesn't exist and delete if checksum fails * add back tests for bad package checksums * improve bad registry checksum error message
* Avoid guessing on utf8 decoding of app filesFred Hebert2017-10-131-1/+1
| | | | | | | | | Rather than trying one method and then the other, allow the caller to specify the encoding of the expected file. All other schemes are risky and won't work well. Rollback the function's default interface to the binary format in case any plugin used it for non-unicode content, preserving backwards compat.
* Add a description in compiled app file if undefFred Hebert2017-10-041-1/+13
| | | | | Same default value as used in relx and other environments, but as reported in #979 some tools don't like having no description available.
* Unicode support in all the placesFred Hebert2017-08-061-4/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | This is done through 3 main change groups: - replacing `~s` by `~ts` in format strings, so that strings that contain unicode are properly printed rather than crashing - adding the `unicode` argument to all function of the `re` module to ensure transformations on strings containing unicode data are valid instead of crashing (see issue #1302) - replacing `ec_cnv:to_binary/1` and `ec_cnv:to_list/1` with matching functions in `rebar_utils`. The last point has been done, rather than modifying and updating erlware commons, because binary and list conversions can be a contentious subject. For example, if what is being handled is actually bytes from a given binary stream, then forcing a byte-oriented interpretation of the data can corrupt it. As such, it does not appear safe to modify erlware commons' conversion functions since it may not be safe for all its users. Instead, rebar3 reimplements a subset of them (only converting atoms and chardata, ignoring numbers) with the explicit purpose of handling unicode string data. Tests were left as unchanged as possible. This may impact the ability to run rebar3's own suites in a unicode path, but respects a principle of least change for such a large patch.
* handle case that upgraded app no longer has .app.src fileTristan Sloughter2015-09-201-12/+7
|
* wip: move state into app_infoTristan Sloughter2015-08-311-8/+8
|
* include app.src.script in app discover and always use if availableTristan Sloughter2015-07-261-5/+12
|
* check format of config file and print the bad section in the errorTristan Sloughter2015-06-181-1/+1
|
* format file read error in otp_app moduleTristan Sloughter2015-05-221-1/+1
|
* improve error message fo rmissing app or app.src fileTristan Sloughter2015-05-221-5/+5
|
* methods for retrieving `src_dirs` and `extra_src_dirs`alisdair sullivan2015-05-191-3/+2
| | | | | | note that now ALL `src_dirs` across included profiles are compiled. previously only the last included profile's `src_dirs` were used
* generalize the "test" special dir into an {extra_src_dirs, [...]} optionalisdair sullivan2015-05-161-5/+16
| | | | | | 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
* Use resource handlers to deal with deps/semverFred Hebert2015-05-051-3/+4
|
* real bootstrappingTristan Sloughter2015-04-221-1/+0
|
* track and cleanup code paths for different contextsTristan Sloughter2015-04-211-4/+0
|
* symlink extra test dirs and compile from there instead of fromalisdair sullivan2015-03-081-1/+1
| | | | root project
* switch from loading modules to read compile info to using `beam_lib`alisdair sullivan2015-03-051-15/+7
| | | | fixes #216 and #220
* change from post-purging modules after checking their module info toalisdair sullivan2015-03-031-4/+8
| | | | pre-purging before checking to facilitate long do chains
* exclude beams compiled from source in `test` from the .app filealisdair sullivan2015-03-021-4/+22
|
* output proper error message for missing app fileTristan Sloughter2015-02-281-3/+10
|
* copy project apps to deps output dir for compilationTristan Sloughter2015-02-281-5/+7
|
* consolidate app validation and exist checksTristan Sloughter2015-02-221-38/+48
|
* update project app list with new appinfo records after buildTristan Sloughter2015-02-191-0/+1
|
* use processed app file for validationTristan Sloughter2015-01-261-1/+1
|
* refactor rebar_otp_app for smaller/cleaner functionsTristan Sloughter2015-01-261-26/+33
|
* clean up and better error messages when validating appsTristan Sloughter2015-01-241-87/+44
|
* handle throw by relxTristan Sloughter2014-11-081-9/+9
|
* remove more code that can be brought back later if neededTristan Sloughter2014-08-301-1/+1
|
* start of moving to splitting state from config parsingTristan Sloughter2014-08-171-3/+2
|
* add rebar update providerTristan Sloughter2014-08-161-2/+3
|
* replace logging with ec_cmd_log from erlware_commonsTristan Sloughter2014-08-161-1/+1
|
* large refactoringTristan Sloughter2014-08-161-21/+23
| | | | | | | | Removed separate compilers Resolves apps to build Finds avail deps before pulling/building Includes relx Simplifies build commands
* Merge pull request #37 from nox/force-registeredDave Smith2013-06-161-1/+14
|\ | | | | Ensure we always have a `registered` value in `.app` files
| * Ensure we always have a `registered` value in `.app` filesAnthony Ramine2012-12-071-1/+14
| | | | | | | | | | `systools:make_relup/4` fails with `{missing_param, registered}` without a `registered` value.
* | Implement 'rebar help CMD1 CMD2' and extend common 'rebar help' msgTuncer Ayaz2012-12-311-1/+19
|/ | | | | * allow plugins to print help message for implemented commands * append core rebar.config options to common 'rebar help' message
* Do not rewrite .app file if it didn't changeLev Walkin2012-08-081-1/+1
|
* Fix R13B03 build (Reported-by: Sergey Nartimov)Tuncer Ayaz2012-07-281-4/+4
|
* Remove shared stateTuncer Ayaz2012-07-131-17/+17
|
* Remove ?FAIL in favor of ?ABORTDave Smith2012-06-081-4/+4
|
* Fix logging (reported-by Sergey Yelin)Tuncer Ayaz2011-07-041-1/+1
|
* Expand {vsn,git} in app.src to git-describe outputAdam Kocoloski2011-02-171-1/+6
|
* Clean up codeTuncer Ayaz2011-02-061-23/+31
|
* Clean up emacs file local variablesTuncer Ayaz2011-01-311-1/+1
|
* Adding support for app_vars in external fileDave Smith2010-12-201-5/+23
|
* Fix code clarityTuncer Ayaz2010-12-071-3/+3
|
* Stop clean from erroring if there's no .app fileAndrew Thompson2010-10-291-1/+9
| | | | | If rebar tries to clean the .app file (because there's a .app.src file) and it doesn't exist (possibly because of a bad compile), don't fail.
* Dialyzer related cleanupsKostis Sagonas2010-10-101-3/+2
|