{"action":"opened","issue":{"url":"https://api.github.com/repos/rebar/rebar3/issues/1069","repository_url":"https://api.github.com/repos/rebar/rebar3","labels_url":"https://api.github.com/repos/rebar/rebar3/issues/1069/labels{/name}","comments_url":"https://api.github.com/repos/rebar/rebar3/issues/1069/comments","events_url":"https://api.github.com/repos/rebar/rebar3/issues/1069/events","html_url":"https://github.com/rebar/rebar3/issues/1069","id":134969543,"number":1069,"title":"packages with versioned dependencies fail to fetch","user":{"login":"Licenser","id":119093,"avatar_url":"https://avatars.githubusercontent.com/u/119093?v=3","gravatar_id":"","url":"https://api.github.com/users/Licenser","html_url":"https://github.com/Licenser","followers_url":"https://api.github.com/users/Licenser/followers","following_url":"https://api.github.com/users/Licenser/following{/other_user}","gists_url":"https://api.github.com/users/Licenser/gists{/gist_id}","starred_url":"https://api.github.com/users/Licenser/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Licenser/subscriptions","organizations_url":"https://api.github.com/users/Licenser/orgs","repos_url":"https://api.github.com/users/Licenser/repos","events_url":"https://api.github.com/users/Licenser/events{/privacy}","received_events_url":"https://api.github.com/users/Licenser/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2016-02-19T20:45:05Z","updated_at":"2016-02-19T20:45:05Z","closed_at":null,"body":"When a package depends on a other package with a 'loose' version like `> 0.0.0` it causes rebar to fail fetching this dependency.\r\n\r\nAs an example, depending on `parse_trans` causes rebar3 compile to fail with the following error:\r\n```\r\n===> Package not found in registry: edown-> 0.0.0.\r\n```\r\n\r\nAfter some investigation it turns out the problem is `parse_trans` depending on `edown > 0.0.0` with is a (probably) valid hex dependency but not a valid rebar3 dependency. Rebar takes the version of this as `> 0.0.0` and as a result doesn't find the package.\r\n\r\n```erlang\r\n{<<\"app\">>,<<\"parse_trans\">>}.\r\n{<<\"build_tools\">>,[<<\"rebar\">>,<<\"rebar\">>]}.\r\n{<<\"description\">>,<<\"Parse transform utilities for Erlang.\">>}.\r\n{<<\"files\">>,\r\n [<<\"include/codegen.hrl\">>,<<\"include/exprecs.hrl\">>,<<\"src/ct_expand.erl\">>,\r\n  <<\"src/exprecs.erl\">>,<<\"src/parse_trans.app.src\">>,\r\n  <<\"src/parse_trans.erl\">>,<<\"src/parse_trans_codegen.erl\">>,\r\n  <<\"src/parse_trans_mod.erl\">>,<<\"src/parse_trans_pp.erl\">>,<<\"rebar\">>,\r\n  <<\"rebar.config\">>]}.\r\n{<<\"licenses\">>,[<<\"EPL\">>]}.\r\n{<<\"links\">>,[{<<\"GitHub\">>,<<\"https://github.com/uwiger/parse_trans\">>}]}.\r\n{<<\"maintainers\">>,[<<\"Ulf Wiger\">>]}.\r\n{<<\"name\">>,<<\"parse_trans\">>}.\r\n{<<\"requirements\">>,\r\n [{<<\"edown\">>,\r\n   [{<<\"app\">>,<<\"edown\">>},\r\n    {<<\"optional\">>,false},\r\n    {<<\"requirement\">>,<<\"> 0.0.0\">>}]}]}.\r\n{<<\"version\">>,<<\"2.9.0\">>}.\r\n```"}}