{"id":17130705,"url":"https://github.com/jechol/elixir-app-structures","last_synced_at":"2026-01-05T00:49:48.374Z","repository":{"id":104250970,"uuid":"81428147","full_name":"jechol/elixir-app-structures","owner":"jechol","description":"Diff between `supervisor` and `non-supervisor` shows difference between modules w/ and w/o application.","archived":false,"fork":false,"pushed_at":"2023-12-15T20:21:56.000Z","size":13,"stargazers_count":2,"open_issues_count":1,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-23T23:39:15.993Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":null,"has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/jechol.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null}},"created_at":"2017-02-09T08:37:21.000Z","updated_at":"2018-10-31T04:30:54.000Z","dependencies_parsed_at":"2023-07-22T11:00:21.762Z","dependency_job_id":null,"html_url":"https://github.com/jechol/elixir-app-structures","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/jechol%2Felixir-app-structures","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jechol%2Felixir-app-structures/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jechol%2Felixir-app-structures/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jechol%2Felixir-app-structures/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jechol","download_url":"https://codeload.github.com/jechol/elixir-app-structures/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245212176,"owners_count":20578440,"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-10-14T19:13:00.902Z","updated_at":"2026-01-05T00:49:48.349Z","avatar_url":"https://github.com/jechol.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"### 1. non-supervisor vs supervisor\n```shell\n$ git difftool non-supervisor supervisor\n```\n\n### 2. flat\n* `calc` provides `Calc.sum(a, b)` \n* `echo` provides a process registered as `:echo`\n* `my_app` uses `calc` and `echo` to provide `MyApp.echo_sum_of(a, b)`\n```shell\n$ git checkout flat \u0026\u0026 cd my_app\n$ iex -S mix\niex\u003e MyApp.echo_sum_of(10, 20)\n:echo received 30\n```\n\n### 3. flat-conflict-deps\nPretty contrived, but `flat` branch with changes\n* `calc` depends on `decimal 1.2.0`\n* `echo` depends on `decimal 1.3.0`\n```shell\ncalc $ mix deps.get # works\necho $ mix deps.get # works\nmy_app $ mix deps.get # error\n```\n\n### 4. umbrella\n* `my_app` depends on `calc`, `echo`\n* `my_another_app` depends on `my_app`\n```shell\napps/my_another_app $ iex -S mix\niex\u003e MyApp.echo_sum_of(10, 20)\n:echo received 30\n```\n\n### 5. umbrella-dep-in-wrong-place\n* `calc` uses `decimal`, but\n* `decimal` is added in `echo` by mistake.\n\n```shell\napps/calc $ iex -S mix\niex\u003e Calc.sum(10, 20) # error\n```\nNot working on `apps/calc`.\n\n``` shell\n$ iex -S mix\niex\u003e Calc.sum(10, 20) # works\n```\nWorking on root. Broken dependencies are found when another app in umbrella depends on it.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjechol%2Felixir-app-structures","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjechol%2Felixir-app-structures","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjechol%2Felixir-app-structures/lists"}