summaryrefslogtreecommitdiff
path: root/test/mock_git_resource.erl
diff options
context:
space:
mode:
authorFred Hebert <mononcqc@ferd.ca>2014-12-16 14:43:38 +0000
committerFred Hebert <mononcqc@ferd.ca>2014-12-16 14:43:38 +0000
commit2985c7bed515bd1664313d696f45fe50b4574640 (patch)
treef41beaa5a87ab7364797e9c74d74681791d2dc57 /test/mock_git_resource.erl
parent449d6baabcebbeb017445430de3c185e147e097b (diff)
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.
Diffstat (limited to 'test/mock_git_resource.erl')
-rw-r--r--test/mock_git_resource.erl2
1 files changed, 1 insertions, 1 deletions
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]