{"action":"created","issue":{"url":"https://api.github.com/repos/rebar/rebar3/issues/631","labels_url":"https://api.github.com/repos/rebar/rebar3/issues/631/labels{/name}","comments_url":"https://api.github.com/repos/rebar/rebar3/issues/631/comments","events_url":"https://api.github.com/repos/rebar/rebar3/issues/631/events","html_url":"https://github.com/rebar/rebar3/issues/631","id":96440892,"number":631,"title":"versioning by branch doesn't support atoms","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":1,"created_at":"2015-07-21T23:44:01Z","updated_at":"2015-07-25T02:52:44Z","closed_at":null,"body":"rebar2 allowed terms like this:\r\n```erlang\r\n{rankmatcher, \".*\", {git, \"https://github.com/Licenser/rankmatcher.git\", {branch, master}}}\r\n```\r\n\r\nthis crashes rebar3 with\r\n```erlang\r\n===> Fetching rankmatcher ({git,\r\n                                      \"https://github.com/Licenser/rankmatcher.git\",\r\n                                      {branch,master}})\r\n===> rebar_fetch exception error badarg [{re,replace,\r\n                                                 [master,\"([ ()?`!$])\",\r\n                                                  \"\\\\\\\\&\",\r\n                                                  [global,{return,list}]],\r\n                                                 [{file,\"re.erl\"},{line,355}]},\r\n                                                {rebar_git_resource,download,\r\n                                                 3,\r\n                                                 [{file,\r\n                                                   \"/Users/heinz/Projects/Other/rebar3/_build/default/lib/rebar/src/rebar_git_resource.erl\"},\r\n                                                  {line,99}]},\r\n                                                {rebar_fetch,\r\n                                                 download_source_,3,\r\n                                                 [{file,\r\n                                                   \"/Users/heinz/Projects/Other/rebar3/_build/default/lib/rebar/src/rebar_fetch.erl\"},\r\n                                                  {line,45}]},\r\n                                                {rebar_fetch,download_source,\r\n                                                 3,\r\n                                                 [{file,\r\n                                                   \"/Users/heinz/Projects/Other/rebar3/_build/default/lib/rebar/src/rebar_fetch.erl\"},\r\n                                                  {line,29}]},\r\n                                                {rebar_prv_install_deps,\r\n                                                 fetch_app,3,\r\n                                                 [{file,\r\n                                                   \"/Users/heinz/Projects/Other/rebar3/_build/default/lib/rebar/src/rebar_prv_install_deps.erl\"},\r\n                                                  {line,565}]},\r\n                                                {rebar_prv_install_deps,\r\n                                                 maybe_fetch,5,\r\n                                                 [{file,\r\n                                                   \"/Users/heinz/Projects/Other/rebar3/_build/default/lib/rebar/src/rebar_prv_install_deps.erl\"},\r\n                                                  {line,412}]},\r\n                                                {rebar_prv_install_deps,\r\n                                                 update_unseen_src_dep,10,\r\n                                                 [{file,\r\n                                                   \"/Users/heinz/Projects/Other/rebar3/_build/default/lib/rebar/src/rebar_prv_install_deps.erl\"},\r\n                                                  {line,343}]},\r\n                                                {lists,foldl,3,\r\n                                                 [{file,\"lists.erl\"},\r\n                                                  {line,1261}]}]\r\n===> Failed to fetch and copy dep: {git,\"https://github.com/Licenser/rankmatcher.git\",\r\n                                   {branch,master}}\r\n```\r\n\r\nchanging it to \r\n```erlang\r\n{rankmatcher, \".*\", {git, \"https://github.com/Licenser/rankmatcher.git\", {branch, \"master\"}}}\r\n```\r\n\r\nsolves this but it will make a lot of rebar2 projects incompatible when not modified."},"comment":{"url":"https://api.github.com/repos/rebar/rebar3/issues/comments/124791469","html_url":"https://github.com/rebar/rebar3/issues/631#issuecomment-124791469","issue_url":"https://api.github.com/repos/rebar/rebar3/issues/631","id":124791469,"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},"created_at":"2015-07-25T02:52:44Z","updated_at":"2015-07-25T02:52:44Z","body":"If this happens in a dependency this leads to a silent failure. :("}}