From 2985c7bed515bd1664313d696f45fe50b4574640 Mon Sep 17 00:00:00 2001 From: Fred Hebert Date: Tue, 16 Dec 2014 14:43:38 +0000 Subject: Adding pkg deps tests and refactorings - Adding tests for package deps - Adding conflict/override warnings for package deps - Adding cycle detection for packages - Adding cycle detection for mixed packages+source - Fixing internal dependency format of package resources when converted to rebar_app_info - normalizing level-order prioritization to be based on lexicographical sort of app names rather than traversal order (which is undefined for package deps) - Fixing tests for source deps for deep cycle detection - Fixing bugs with source deps - Relaxed version format checks for test utils A lot of fixes are combined in there because I didn't want to commit non-passing code, and many bugs were found when adding the second batch of tests as part of the original effort. --- test/mock_git_resource.erl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'test/mock_git_resource.erl') diff --git a/test/mock_git_resource.erl b/test/mock_git_resource.erl index d867a28..00f0a03 100644 --- a/test/mock_git_resource.erl +++ b/test/mock_git_resource.erl @@ -105,7 +105,7 @@ mock_download(Opts) -> filelib:ensure_dir(Dir), {git, Url, {_, Vsn}} = normalize_git(Git, Overrides, Default), App = app(Url), - AppDeps = proplists:get_value(App, Deps, []), + AppDeps = proplists:get_value({App,Vsn}, Deps, []), rebar_test_utils:create_app( Dir, App, Vsn, [element(1,D) || D <- AppDeps] -- cgit v1.1