{"id":20303915,"url":"https://github.com/billstclair/rebar3-app-dependency","last_synced_at":"2026-05-07T23:11:29.359Z","repository":{"id":66592631,"uuid":"43925825","full_name":"billstclair/rebar3-app-dependency","owner":"billstclair","description":"A demonstration of how inter-application depedencies affect rebar3's compile order","archived":false,"fork":false,"pushed_at":"2015-10-09T07:48:55.000Z","size":832,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-03-02T19:43:06.160Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Erlang","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/billstclair.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-10-09T01:29:23.000Z","updated_at":"2017-02-16T07:57:06.000Z","dependencies_parsed_at":"2023-03-09T10:45:26.856Z","dependency_job_id":null,"html_url":"https://github.com/billstclair/rebar3-app-dependency","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/billstclair%2Frebar3-app-dependency","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/billstclair%2Frebar3-app-dependency/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/billstclair%2Frebar3-app-dependency/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/billstclair%2Frebar3-app-dependency/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/billstclair","download_url":"https://codeload.github.com/billstclair/rebar3-app-dependency/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241801259,"owners_count":20022390,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-14T16:41:39.835Z","updated_at":"2026-05-07T23:11:24.339Z","avatar_url":"https://github.com/billstclair.png","language":"Erlang","funding_links":[],"categories":[],"sub_categories":[],"readme":"rebar3-app-dependency\n=====\n\nThis directory has two sub-directories, each of which is a trivial\nErlang application with four sub-applications. I made it to illustrate\nhow the order of compilation for\n[rebar3](https://github.com/rebar/rebar3) depends on dependencies in\nthe .app.src files, but _not_ on their order in any application that\ndepends on them.\n\n`rebar3-app-test` has the following `.app.src` file:\n\n```\n{application, 'rebar3-app-test',\n [...\n   {applications,\n   [kernel,\n    stdlib,\n    app21, app13, app42, app34\n   ]},\n ]}.\n```\n\nThe four sub-apps each include only `kernel` and `stdlib` in their\n`applications` list. The build looks like this:\n\n```\n$ cd .../rebar3-app-test\n$ ./rebar3 compile\n===\u003e Verifying dependencies...\n===\u003e Compiling app42\n===\u003e Compiling app34\n===\u003e Compiling app21\n===\u003e Compiling app13\n===\u003e Compiling rebar3-app-test\n```\n\nNote that the compile order does _not_ match the order in the\n`.app.src` file.\n\n`rebar-related-app-test` has the following `.app.src` file:\n\n```\n{application, 'rebar3-related-app-test',\n [...\n  {applications,\n   [kernel,\n    stdlib\n   ]},\n ]}.\n```\n\nIts four sub-applications depend on each other in a chain, where\n`a-\u003eb` means that `a` has `b` in the `applications` list in its\n`.app.src` file:\n\n```\napp34 -\u003e app13 -\u003e app42 -\u003e app21\n```\n\nThe build looks like this\n\n```\n$ cd .../rebar3-related-app-test\n$ ./rebar3 compile\n===\u003e Verifying dependencies...\n===\u003e Compiling app21\n===\u003e Compiling app42\n===\u003e Compiling rebar3-related-app-test\n===\u003e Compiling app13\n===\u003e Compiling app34\n```\n\nNote that the dependencies changed the order of compilation of the\nsub-applications, but since the `rebar3-related-app-test` application\ndepends on none of the sub-applications, it is compiled in a random\nplace relative to them.\n\n`tristan` said on `#rebar` that this is as designed.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbillstclair%2Frebar3-app-dependency","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbillstclair%2Frebar3-app-dependency","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbillstclair%2Frebar3-app-dependency/lists"}