{"action":"created","issue":{"url":"https://api.github.com/repos/rebar/rebar3/issues/535","labels_url":"https://api.github.com/repos/rebar/rebar3/issues/535/labels{/name}","comments_url":"https://api.github.com/repos/rebar/rebar3/issues/535/comments","events_url":"https://api.github.com/repos/rebar/rebar3/issues/535/events","html_url":"https://github.com/rebar/rebar3/issues/535","id":90539318,"number":535,"title":"rebar3 new release does not create three app directories","user":{"login":"wschroeder","id":796842,"avatar_url":"https://avatars.githubusercontent.com/u/796842?v=3","gravatar_id":"","url":"https://api.github.com/users/wschroeder","html_url":"https://github.com/wschroeder","followers_url":"https://api.github.com/users/wschroeder/followers","following_url":"https://api.github.com/users/wschroeder/following{/other_user}","gists_url":"https://api.github.com/users/wschroeder/gists{/gist_id}","starred_url":"https://api.github.com/users/wschroeder/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wschroeder/subscriptions","organizations_url":"https://api.github.com/users/wschroeder/orgs","repos_url":"https://api.github.com/users/wschroeder/repos","events_url":"https://api.github.com/users/wschroeder/events{/privacy}","received_events_url":"https://api.github.com/users/wschroeder/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":10,"created_at":"2015-06-24T01:55:26Z","updated_at":"2015-06-29T13:24:46Z","closed_at":null,"body":"I was trying out a minimal compile:\r\n\r\n```bash\r\n$ rebar3 new release monkey\r\n===> Writing monkey/apps/monkey/src/monkey_app.erl\r\n===> Writing monkey/apps/monkey/src/monkey_sup.erl\r\n===> Writing monkey/apps/monkey/src/monkey.app.src\r\n===> Writing monkey/rebar.config\r\n===> Writing monkey/config/sys.config\r\n===> Writing monkey/config/vm.args\r\n===> Writing monkey/.gitignore\r\n===> Writing monkey/LICENSE\r\n===> Writing monkey/README.md\r\n$ cd monkey\r\n$ rebar3 compile\r\n===> Verifying dependencies...\r\n===> sh(cp -R /home/wschroeder/foo/monkey/apps/monkey/priv \"/home/wschroeder/foo/monkey/_build/default/lib/monkey/priv\")\r\nfailed with return code 1 and the following output:\r\ncp: cannot stat ‘/home/wschroeder/foo/monkey/apps/monkey/priv’: No such file or directory\r\n```\r\n\r\nLooks like three directories are missing from the release and app templates: include, priv, and test.\r\n\r\nI was thinking about submitting a pull request that has this diff (I still need to follow the other contributor instructions, but this is the core patch):\r\n\r\n```diff\r\ndiff --git a/priv/templates/app.template b/priv/templates/app.template\r\nindex d0bebd7..6773281 100644\r\n--- a/priv/templates/app.template\r\n+++ b/priv/templates/app.template\r\n@@ -3,6 +3,9 @@\r\n     {name, \"mylib\", \"Name of the OTP application\"},\r\n     {desc, \"An OTP application\", \"Short description of the app\"}\r\n ]}.\r\n+{dir, \"{{name}}/include\"}.\r\n+{dir, \"{{name}}/priv\"}.\r\n+{dir, \"{{name}}/test\"}.\r\n {template, \"app.erl\", \"{{name}}/src/{{name}}_app.erl\"}.\r\n {template, \"sup.erl\", \"{{name}}/src/{{name}}_sup.erl\"}.\r\n {template, \"otp_app.app.src\", \"{{name}}/src/{{name}}.app.src\"}.\r\ndiff --git a/priv/templates/release.template b/priv/templates/release.template\r\nindex a15d163..d9d4c27 100644\r\n--- a/priv/templates/release.template\r\n+++ b/priv/templates/release.template\r\n@@ -3,6 +3,9 @@\r\n     {name, \"myapp\", \"Name of the OTP release. An app with this name will also be created.\"},\r\n     {desc, \"An OTP application\", \"Short description of the release's main app's purpose\"}\r\n ]}.\r\n+{dir, \"{{name}}/{{apps_dir}}/{{name}}/include\"}.\r\n+{dir, \"{{name}}/{{apps_dir}}/{{name}}/priv\"}.\r\n+{dir, \"{{name}}/{{apps_dir}}/{{name}}/test\"}.\r\n {template, \"app.erl\", \"{{name}}/{{apps_dir}}/{{name}}/src/{{name}}_app.erl\"}.\r\n {template, \"sup.erl\", \"{{name}}/{{apps_dir}}/{{name}}/src/{{name}}_sup.erl\"}.\r\n {template, \"otp_app.app.src\", \"{{name}}/{{apps_dir}}/{{name}}/src/{{name}}.app.src\"}.\r\n```\r\n\r\nIs this the correct approach, or should there at least be a test template in there?  I am an Erlang newbie hobbyist, so I have no opinion or knowledge of correct starting structure.\r\n"},"comment":{"url":"https://api.github.com/repos/rebar/rebar3/issues/comments/116658724","html_url":"https://github.com/rebar/rebar3/issues/535#issuecomment-116658724","issue_url":"https://api.github.com/repos/rebar/rebar3/issues/535","id":116658724,"user":{"login":"kovyl2404","id":3457910,"avatar_url":"https://avatars.githubusercontent.com/u/3457910?v=3","gravatar_id":"","url":"https://api.github.com/users/kovyl2404","html_url":"https://github.com/kovyl2404","followers_url":"https://api.github.com/users/kovyl2404/followers","following_url":"https://api.github.com/users/kovyl2404/following{/other_user}","gists_url":"https://api.github.com/users/kovyl2404/gists{/gist_id}","starred_url":"https://api.github.com/users/kovyl2404/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kovyl2404/subscriptions","organizations_url":"https://api.github.com/users/kovyl2404/orgs","repos_url":"https://api.github.com/users/kovyl2404/repos","events_url":"https://api.github.com/users/kovyl2404/events{/privacy}","received_events_url":"https://api.github.com/users/kovyl2404/received_events","type":"User","site_admin":false},"created_at":"2015-06-29T13:24:46Z","updated_at":"2015-06-29T13:24:46Z","body":"Vboxfs symlinking [mostly doesn't work](https://www.virtualbox.org/ticket/10085). So it sounds like stuff around [symlink_or_copy](https://github.com/rebar/rebar3/blob/master/src/rebar_file_utils.erl#L77) missbihaves. Will try to take a look this week."}}