summaryrefslogtreecommitdiff
path: root/test/rebar_install_deps_SUITE.erl
Commit message (Collapse)AuthorAgeFilesLines
* only print skip warning if version is different (#1886)Tristan Sloughter2018-09-171-2/+13
|
* support for hex v2, multiple repository fetching, private organizations (#1884)Tristan Sloughter2018-09-131-54/+54
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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
* OTP-21 readiness, Full Unicode supportFred Hebert2017-11-161-4/+4
| | | | | | | | | | | | This replaces all deprecated function usage by alternative ones based on a version switch enacted at compile time, preventing all warnings. This will likely introduce some possible runtime errors in using a Rebar3 compiled on OTP-20 or OTP-21 back in versions 19 and earlier, but we can't really work around that. A bunch of dependencies have been updated to support OTP-21 without warnings as well.
* Support package hashes in structure and lockfileFred Hebert2016-05-241-1/+1
| | | | | | | | | - the internal representation for package locks moves from `{Name, {pkg, PkgName, Vsn}, Lvl}` to `{Name, {pkg, PkgName, Vsn, Hash}, Lvl}` - the internal representation for packages moves from `{pkg, PkgName, Vsn}` to `{pkg, PkgName, Vsn, Hash}` - the hash can be `undefined`, meaning no check will be done - no checking is done yet.
* add back removed testsTristan Sloughter2015-08-211-3/+15
|
* this patch treats pkg and src deps as equals, so level decides winnerTristan Sloughter2015-08-211-24/+4
| | | | | | | | 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.
* handle new tests for mix package types (git/pkg)Tristan Sloughter2015-08-161-38/+15
|
* All dep overrides in packages are blockedFred Hebert2015-08-161-1/+1
| | | | Just rework the error message.
* Review rule about dep prioritiesFred Hebert2015-08-161-2/+3
| | | | | On a single app's dep list, the first noted wins if there's a duplicate between packages and sources, rather than favoring source there anyway.
* Add tests for mixed deps installsFred Hebert2015-08-161-34/+191
| | | | | Requires a rework of other test suites using the same dep-handling mechanism.
* update lock tests to not expect lock for non-default profile runTristan Sloughter2015-08-131-3/+12
|
* wip: deps install refactorFred Hebert2015-07-021-4/+50
|
* Make the test work on more versionsFred Hebert2015-06-261-1/+1
|
* Adding tests for locksFred Hebert2015-06-251-11/+23
|
* Symlink existing default deps when in new profileFred Hebert2015-04-221-0/+14
| | | | Should fix #360
* Default deps always to the default profileFred Hebert2015-04-171-2/+65
| | | | | | | | | | | | | | | | When fetching dependencies for the first time using a profile (`rebar3 as prod release` or `rebar3 ct`), the dependencies get fetched into the non-default profile. This has two consequences: - the files get re-downloaded on follow-up runs - the lock file includes incomplete or too many deps in its list This patch forces dependencies in the default profile to be stored in _build/default/lib even when running under other profiles, then symlinks them to the correct one. This makes it so common dependencies in 'default' be downloaded there and avoids re-downloading them. Should also fix the lock issues.
* Implement deps conflicts as errorsFred Hebert2015-03-151-4/+39
| | | | | | | | The option {deps_error_on_conflict, true} will make it so conflicts in deps being fetched interrupts the operation rather than just display a warning. Defaults to `false'.
* Reuse test code and drop duplicated stuffFred Hebert2015-02-231-52/+4
|
* Initial `deps` commandFred Hebert2015-02-161-0/+221
|
* change name of suiteTristan Sloughter2014-09-011-113/+0
|
* only build invalid (not built) source deps and project appsTristan Sloughter2014-09-011-1/+1
|
* add first testTristan Sloughter2014-09-011-0/+113