Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Merge pull request #1596 from ferd/local-apps-override-deps | Fred Hebert | 2017-08-09 | 1 | -6/+20 |
|\ | | | | | Allow top-level apps to take precedence over deps | ||||
| * | Allow top-level apps to take precedence over deps | Fred Hebert | 2017-08-05 | 1 | -6/+20 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The use case has been described in issue #1478 where a local application can exist while being declared as a dependency as well. This allows, for example, to work on a release where all applications may require to be published independently, or to provide some form of 'vendoring' with a local app. The fix is done by decoupling the dependency source resolution form the dependency parsing. The reason for this being that the discovery phase needs to parse apps for their top-level deps, and dep installation needs to resolve the packages with accuracy. In the current implementation, both code paths call to the same function. This patch splits up the precise discovery and makes it happen *only* when installing dependencies, and only if a top-level app does not already define the application needing resolving. One weakness of this fix is that it necessarily breaks cycle detection in dependencies that involve a root application depending on itself since its own version as a dep will not be expanded. There appears to be no possible way to prevent this, but should be rare enough to be worth the tradeoff for the common case. | ||||
* | | Unicode support in all the places | Fred Hebert | 2017-08-06 | 1 | -13/+13 |
|/ | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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. | ||||
* | Merge pull request #1391 from ferd/doc-and-types | Fred Hebert | 2016-12-23 | 1 | -1/+8 |
|\ | | | | | Type specifications and edocs improvements | ||||
| * | Type specifications and edocs improvements | Fred Hebert | 2016-11-27 | 1 | -1/+8 |
| | | | | | | | | | | | | 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. | ||||
* | | Replace unprocessed ~n linebreaks | Fred Hebert | 2016-11-28 | 1 | -2/+2 |
|/ | | | | Fixes #1392 | ||||
* | Hide the expected hash on fetch output | Fred Hebert | 2016-05-25 | 1 | -1/+5 |
| | |||||
* | break up do/1 function in install_deps to make upgrade less confusing | Tristan Sloughter | 2016-02-19 | 1 | -2/+6 |
| | |||||
* | only apply default and prod profile to dependencies | Tristan Sloughter | 2016-01-09 | 1 | -3/+2 |
| | |||||
* | include source the app is being ugpraded to, like with fetching, in info | Tristan Sloughter | 2015-09-20 | 1 | -1/+1 |
| | |||||
* | fix dialyzer warnings | Tristan Sloughter | 2015-09-09 | 1 | -1/+1 |
| | |||||
* | hooks/artifacts are always run/resolved from an app unless at top of umbrella | Tristan Sloughter | 2015-09-06 | 1 | -1/+1 |
| | |||||
* | move otp version verification to a single app_info function | Tristan Sloughter | 2015-09-01 | 1 | -2/+2 |
| | |||||
* | remove overrides element from state record | Tristan Sloughter | 2015-09-01 | 1 | -2/+2 |
| | |||||
* | more cleanup | Tristan Sloughter | 2015-08-31 | 1 | -5/+6 |
| | |||||
* | fixes for overrides of deps | Tristan Sloughter | 2015-08-31 | 1 | -4/+3 |
| | |||||
* | update use of hooks and plugins with state in app_info | Tristan Sloughter | 2015-08-31 | 1 | -3/+3 |
| | |||||
* | build on already created AppInfo instead of having to do copy | Tristan Sloughter | 2015-08-31 | 1 | -33/+10 |
| | |||||
* | remove state record from app_info record | Tristan Sloughter | 2015-08-31 | 1 | -3/+3 |
| | |||||
* | wip: move state into app_info | Tristan Sloughter | 2015-08-31 | 1 | -16/+17 |
| | |||||
* | Merge pull request #748 from tsloughter/pkg_attribute | Fred Hebert | 2015-08-27 | 1 | -16/+10 |
|\ | | | | | support pkg attribute on dep to declare package name different from app name | ||||
| * | simplify package dep parsing and handling | Tristan Sloughter | 2015-08-25 | 1 | -16/+10 |
| | | |||||
| * | support pkg attribute on dep to declare package name different from app name | Tristan Sloughter | 2015-08-23 | 1 | -2/+2 |
| | | |||||
* | | add error message for dependency that doesn't contain single app dir | Tristan Sloughter | 2015-08-23 | 1 | -10/+16 |
|/ | |||||
* | improve error messages for packages by checking its existance before fetching | Tristan Sloughter | 2015-08-23 | 1 | -0/+2 |
| | |||||
* | replace use of dict of packages and registry with single ets table | Tristan Sloughter | 2015-08-21 | 1 | -23/+16 |
| | |||||
* | this patch treats pkg and src deps as equals, so level decides winner | Tristan Sloughter | 2015-08-21 | 1 | -310/+85 |
| | | | | | | | | 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. | ||||
* | fix leaking hex_registry table | pvmart | 2015-08-19 | 1 | -2/+3 |
| | |||||
* | properly update locks for deps and ignore skip messages for locks | Tristan Sloughter | 2015-08-17 | 1 | -29/+16 |
| | |||||
* | remove commented out code | Tristan Sloughter | 2015-08-17 | 1 | -3/+0 |
| | |||||
* | use correct rebar_state for a dep, not the top level state | Tristan Sloughter | 2015-08-16 | 1 | -10/+1 |
| | |||||
* | handle new tests for mix package types (git/pkg) | Tristan Sloughter | 2015-08-16 | 1 | -2/+5 |
| | |||||
* | track the parent of umbrella app dependencies | Tristan Sloughter | 2015-08-16 | 1 | -5/+17 |
| | |||||
* | track parent app of deps and add tree provider to display the relations | Tristan Sloughter | 2015-08-15 | 1 | -48/+63 |
| | |||||
* | install package deps in same level/profile order as src deps | Tristan Sloughter | 2015-08-13 | 1 | -45/+40 |
| | |||||
* | fix dialyzer warnings, except 'no local return' warnings | Tristan Sloughter | 2015-08-08 | 1 | -23/+9 |
| | |||||
* | add tree option to deps command that prints pkg deps tree | Tristan Sloughter | 2015-08-03 | 1 | -2/+2 |
| | |||||
* | keep correct Level for pkg deps of scm deps | Tristan Sloughter | 2015-08-01 | 1 | -8/+9 |
| | |||||
* | Merge pull request #655 from pvmart/master | Tristan Sloughter | 2015-07-26 | 1 | -3/+0 |
|\ | | | | | Fix duplicate function clause in rebar_prv_install_deps:parse_dep/5 | ||||
| * | Fix duplicate function clause in rebar_prv_install_deps:parse_dep/5 | pvmart | 2015-07-26 | 1 | -3/+0 |
| | | |||||
* | | add support for old format otp versions | Tristan Sloughter | 2015-07-25 | 1 | -0/+3 |
|/ | |||||
* | Tidy up "Linking.." messages during compile | Richard Jones | 2015-07-22 | 1 | -5/+17 |
| | | | | | | | | | | | | Linking message will only be printed the first time the link or copy actually happens. Note: rebar_file_utils:symlink_or_copy will now return 'exists' instead of ok, if it did nothing because the link exists. Nothing was checking the return value yet, so seemed reasonable. | ||||
* | do not install profile deps of deps | Tristan Sloughter | 2015-07-18 | 1 | -1/+1 |
| | |||||
* | pass failing upgrade case where levels are increased | Tristan Sloughter | 2015-07-08 | 1 | -29/+16 |
| | |||||
* | Minor refactors | Fred Hebert | 2015-07-02 | 1 | -23/+37 |
| | |||||
* | wip: deps install refactor | Fred Hebert | 2015-07-02 | 1 | -93/+75 |
| | |||||
* | expand plugins for profile after applying profiles | Tristan Sloughter | 2015-06-26 | 1 | -4/+3 |
| | |||||
* | deduplicate parts of package and source dep handling | Tristan Sloughter | 2015-06-21 | 1 | -31/+9 |
| | |||||
* | overrides working for pkg deps | Tristan Sloughter | 2015-06-21 | 1 | -5/+12 |
| | |||||
* | plugins provider | Tristan Sloughter | 2015-06-18 | 1 | -20/+27 |
| |