summaryrefslogtreecommitdiff
path: root/src/rebar_app_info.erl
Commit message (Collapse)AuthorAgeFilesLines
* Unicode support in all the placesFred Hebert2017-08-061-27/+27
| | | | | | | | | | | | | | | | | | | | | | | | | | | | 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.
* Fix default .app.src file for rebar_app_infoFred Hebert2017-02-241-7/+6
| | | | | | | The finding of the file was done based on an assumed 'src' path which may not be correct. This patch instead replaces the value with a lookup in configured paths and returns the first that matches to an existing file.
* Type specifications and edocs improvementsFred Hebert2016-11-271-16/+115
| | | | | | Includes improvments and function documentation for all modules (in alphabetical order) up to rebar_core, and may have included more in other modules as I saw fit to dig and understand more of the internals.
* Fix rebar3 dialyzer warningsFred Hebert2016-11-191-3/+3
| | | | Some tricky changes in there but should be okay
* Make lock files future-proofFred Hebert2016-02-161-4/+4
| | | | | | | | | | | | | | | | | | | | | | | | | Changes to how hex or packages may work in the future will necessarily bring changes to the format of lock files. This commit adds an optional framing for future lock files of the form: {Version, LockList}. <Whatever consultable attributes> This format is supported such as the LockList is the current lockfile contents, and will never have more information than it currently does. Attributes can be whatever and are currently undefined. Rebar copies will be able to: - Keep using the core locklist (which avoids breaking the last year or so of community libraries using rebar3) - Warn when it runs an outdated copy in comparison to the lock file - Automatically rewrite lock files in the format it supports - Augment or parse files in a version-specific manner. This changes the usage interface slightly, but is backwards *and* forwards compatible.
* Plugin templates enabledFred Hebert2015-12-191-0/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This lets a plugin define templates to be loaded: $ rebar3 new ... proper (plugin): A basic PropEr suite for an OTP application ... $ rebar3 new help proper proper: plugin template (...) Description: A basic PropEr suite for an OTP application Variables: name="suite" (...) ... → rebar3 new proper fakesuite ===> Writing test/prop_fakesuite.erl In this case, proper is a fake template file I've put by hand in _build/default/plugins/rebar3_proper/priv/<somename>/, meaning it will only work as far as it's called from the project's root. The priority order of plugins is now .config > plugin > built-in, such that someone could ensure plugins do not crush their own private templates, but also that custom or plugin templates do overtake built-in ones. It used to be Built-in > .config only. Templates are searched for recursively in the priv/ directory of plugins.
* fix dialyzer warningsTristan Sloughter2015-09-271-3/+3
|
* handle case that upgraded app no longer has .app.src fileTristan Sloughter2015-09-201-0/+4
|
* hooks/artifacts are always run/resolved from an app unless at top of umbrellaTristan Sloughter2015-09-061-7/+11
|
* move otp version verification to a single app_info functionTristan Sloughter2015-09-011-0/+5
|
* move opts functions to new module rebar_optsTristan Sloughter2015-09-011-4/+4
|
* update use of hooks and plugins with state in app_infoTristan Sloughter2015-08-311-96/+9
|
* build on already created AppInfo instead of having to do copyTristan Sloughter2015-08-311-1/+6
|
* remove state record from app_info recordTristan Sloughter2015-08-311-31/+0
|
* wip: move state into app_infoTristan Sloughter2015-08-311-3/+237
|
* simplify package dep parsing and handlingTristan Sloughter2015-08-251-2/+14
|
* this patch treats pkg and src deps as equals, so level decides winnerTristan Sloughter2015-08-211-1/+12
| | | | | | | | Instead fetching and resolving src deps (which could depend on pkg deps) and then pkg deps this patch combines the two into a single set of iterations by level. The only difference between src and pkg deps in this new install_deps is how their deps list is found -- from the config or lock file for src deps and from the neighbors of the vertex for pkg.
* track parent app of deps and add tree provider to display the relationsTristan Sloughter2015-08-151-0/+10
|
* include app.src.script in app discover and always use if availableTristan Sloughter2015-07-261-0/+19
|
* add config option artifactsTristan Sloughter2015-06-021-2/+3
|
* move handling of undefined app state to functionTristan Sloughter2015-05-221-0/+9
|
* have .app.src take precedence over .app fileTristan Sloughter2015-05-221-7/+15
|
* print and format error message for bad .app files and all bad configsTristan Sloughter2015-05-221-6/+1
|
* only update, when not in explicit upgrade, locks if out of dateTristan Sloughter2015-05-211-15/+26
|
* read in application details into app_info after fetchTristan Sloughter2015-04-241-0/+13
|
* support for 18.0+Tristan Sloughter2015-04-231-1/+1
|
* Merge pull request #283 from fishcakez/dial_warnsFred Hebert2015-03-251-1/+1
|\ | | | | Fix some dialyzer warnings
| * Fix dialyzer warningsJames Fish2015-03-181-1/+1
| |
* | treat _checkouts as deps that are always compiledTristan Sloughter2015-03-211-0/+11
|/
* copy project apps to deps output dir for compilationTristan Sloughter2015-02-281-4/+20
|
* consolidate app validation and exist checksTristan Sloughter2015-02-221-1/+1
|
* replace package management with hex.pmTristan Sloughter2015-02-171-3/+3
|
* fix find_apps when searching for invalid appsTristan Sloughter2015-02-021-4/+4
|
* app_info:valid needs to return a boolean and not throw an exceptionTristan Sloughter2015-01-271-1/+6
|
* replace single profile atom in providers with list of profilesTristan Sloughter2015-01-111-9/+9
|
* overrides working except for transitive dep inheritance with lock fileTristan Sloughter2014-12-301-0/+11
|
* rewrite profilesTristan Sloughter2014-12-161-0/+11
|
* add applications field to app_info to track all deps of an applicationTristan Sloughter2014-11-191-0/+11
|
* wip: upgrade pkg depsTristan Sloughter2014-11-021-1/+1
|
* dialyzer fixesTristan Sloughter2014-10-181-11/+6
|
* fixed up a few unknown typesTristan Sloughter2014-09-211-11/+11
|
* down to last 2 dialyzer errorsTristan Sloughter2014-09-211-3/+3
|
* more dialyzer fun. no likey opaque typesTristan Sloughter2014-09-211-2/+2
|
* slowly widdling away at dialyzer errorsTristan Sloughter2014-09-201-5/+4
|
* wip: updating handling of src deps to include level in lockTristan Sloughter2014-09-201-0/+9
|
* fix bug compiling app with no .app.srcTristan Sloughter2014-09-021-5/+5
|
* fix fetch and buildTristan Sloughter2014-09-021-4/+7
|
* only build invalid (not built) source deps and project appsTristan Sloughter2014-09-011-2/+11
|
* add first testTristan Sloughter2014-09-011-2/+25
|
* remove more code that can be brought back later if neededTristan Sloughter2014-08-301-1/+17
|