{"action":"closed","issue":{"url":"https://api.github.com/repos/ninenines/erlang.mk/issues/523","repository_url":"https://api.github.com/repos/ninenines/erlang.mk","labels_url":"https://api.github.com/repos/ninenines/erlang.mk/issues/523/labels{/name}","comments_url":"https://api.github.com/repos/ninenines/erlang.mk/issues/523/comments","events_url":"https://api.github.com/repos/ninenines/erlang.mk/issues/523/events","html_url":"https://github.com/ninenines/erlang.mk/issues/523","id":135166151,"number":523,"title":"BusyBox/Alpine grep -E causes error on app-build target","user":{"login":"JoelPM","id":35893,"avatar_url":"https://avatars.githubusercontent.com/u/35893?v=3","gravatar_id":"","url":"https://api.github.com/users/JoelPM","html_url":"https://github.com/JoelPM","followers_url":"https://api.github.com/users/JoelPM/followers","following_url":"https://api.github.com/users/JoelPM/following{/other_user}","gists_url":"https://api.github.com/users/JoelPM/gists{/gist_id}","starred_url":"https://api.github.com/users/JoelPM/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JoelPM/subscriptions","organizations_url":"https://api.github.com/users/JoelPM/orgs","repos_url":"https://api.github.com/users/JoelPM/repos","events_url":"https://api.github.com/users/JoelPM/events{/privacy}","received_events_url":"https://api.github.com/users/JoelPM/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2016-02-21T06:04:27Z","updated_at":"2016-03-19T10:25:42Z","closed_at":"2016-03-19T10:25:42Z","body":"Attempting to build ranch on Alpine linux results in the following error:\r\n\r\n```\r\ngrep: bad regex '^[^%]*{\\s*modules\\s*,': Invalid contents of {}\r\nEmpty modules entry not found in ranch.app.src. Please consult the erlang.mk README for instructions.\r\nerlang.mk:4898: recipe for target 'ebin/ranch.app' failed\r\n```\r\n\r\nThis appears to be caused by the -E option on https://github.com/ninenines/ranch/blob/master/erlang.mk#L4907\r\n\r\n```\r\nbash-4.3# grep -E '^[^%]*{\\s*modules\\s*,' src/ranch.app.src\r\ngrep: bad regex '^[^%]*{\\s*modules\\s*,': Invalid contents of {}\r\n```\r\n\r\nIf I try the regex in the shell without the extended option it works:\r\n\r\n```\r\nbash-4.3# grep '^[^%]*{\\s*modules\\s*,' src/ranch.app.src\r\n        {modules, []},\r\n```\r\n\r\nFor reference:\r\n```\r\nbash-4.3# grep -v\r\nBusyBox v1.24.1 (2015-12-16 08:00:02 GMT) multi-call binary.\r\n```\r\n\r\nI'm attempting to compile and package an elixir app using the Elixir Docker Image Builder (https://github.com/edib-tool/elixir-docker-image-builder). It is based on Alpine 3.3 which is where the grep binary seems to be coming from.\r\n\r\nThanks,\r\nJoel"}}