{"action":"created","issue":{"url":"https://api.github.com/repos/kipcole9/money/issues/82","repository_url":"https://api.github.com/repos/kipcole9/money","labels_url":"https://api.github.com/repos/kipcole9/money/issues/82/labels{/name}","comments_url":"https://api.github.com/repos/kipcole9/money/issues/82/comments","events_url":"https://api.github.com/repos/kipcole9/money/issues/82/events","html_url":"https://github.com/kipcole9/money/issues/82","id":370365869,"node_id":"MDU6SXNzdWUzNzAzNjU4Njk=","number":82,"title":"Application is not loaded for prod release w/ Distillery 2.0","user":{"login":"A-Legg","id":6379700,"node_id":"MDQ6VXNlcjYzNzk3MDA=","avatar_url":"https://avatars3.githubusercontent.com/u/6379700?v=4","gravatar_id":"","url":"https://api.github.com/users/A-Legg","html_url":"https://github.com/A-Legg","followers_url":"https://api.github.com/users/A-Legg/followers","following_url":"https://api.github.com/users/A-Legg/following{/other_user}","gists_url":"https://api.github.com/users/A-Legg/gists{/gist_id}","starred_url":"https://api.github.com/users/A-Legg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/A-Legg/subscriptions","organizations_url":"https://api.github.com/users/A-Legg/orgs","repos_url":"https://api.github.com/users/A-Legg/repos","events_url":"https://api.github.com/users/A-Legg/events{/privacy}","received_events_url":"https://api.github.com/users/A-Legg/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":6,"created_at":"2018-10-15T22:18:18Z","updated_at":"2018-11-26T17:42:26Z","closed_at":null,"author_association":"NONE","body":"Thanks so much for all of your hard work on these libraries!\r\n\r\nWhile attempting to build a production release via distillery it appears the application is not loaded as I am getting the following error: \r\n```\r\nRecompiling 15 modules from [:ex_cldr, :ex_cldr_currencies, :ex_cldr_numbers, :ex_money]\r\nGenerating Cldr for 2 locales named [\"en\", \"root\"] with a default locale named \"en\"\r\n==> Assembling release..\r\n==> Building release foo:0.0.1 using environment prod\r\n==> Release failed: function nil.name/0 is undefined\r\n    nil.name()\r\n    (distillery) lib/mix/lib/releases/models/release.ex:532: Mix.Releases.Release.do_add_app/4\r\n    (distillery) lib/mix/lib/releases/models/release.ex:547: Mix.Releases.Release.do_add_children/4\r\n    (distillery) lib/mix/lib/releases/models/release.ex:507: Mix.Releases.Release.add_apps/3\r\n    (distillery) lib/mix/lib/releases/models/release.ex:476: Mix.Releases.Release.apps/1\r\n    (distillery) lib/mix/lib/releases/models/release.ex:330: Mix.Releases.Release.apply_configuration/3\r\n    (distillery) lib/mix/lib/releases/assembler.ex:28: Mix.Releases.Assembler.pre_assemble/1\r\n    (distillery) lib/mix/lib/releases/assembler.ex:46: Mix.Releases.Assembler.assemble/1\r\n```\r\nIt is failing on https://github.com/bitwalker/distillery/blob/master/lib/mix/lib/releases/models/app.ex#L48\r\nwhich is the case when the application isn't loaded. From the Application module docs:\r\n```\r\n @spec spec(app(), key()) :: value() | nil\r\n\r\nReturns the value for key in app's specification.\r\n\r\nSee spec/1 for the supported keys. If the given specification parameter does\r\nnot exist, this function will raise. Returns nil if the application is not\r\nloaded.\r\n```\r\n\r\nI've got the cldr dep being compiled last: `compilers: [:phoenix, :gettext] ++ Mix.compilers() ++ [:cldr]`  and everything works in development and test environments. Additionally, I've attempted to include `ex_money` and its cldr dps in the applications list without success. \r\n\r\nAny ideas as to what could be the cause?"},"comment":{"url":"https://api.github.com/repos/kipcole9/money/issues/comments/441730178","html_url":"https://github.com/kipcole9/money/issues/82#issuecomment-441730178","issue_url":"https://api.github.com/repos/kipcole9/money/issues/82","id":441730178,"node_id":"MDEyOklzc3VlQ29tbWVudDQ0MTczMDE3OA==","user":{"login":"kipcole9","id":15895,"node_id":"MDQ6VXNlcjE1ODk1","avatar_url":"https://avatars2.githubusercontent.com/u/15895?v=4","gravatar_id":"","url":"https://api.github.com/users/kipcole9","html_url":"https://github.com/kipcole9","followers_url":"https://api.github.com/users/kipcole9/followers","following_url":"https://api.github.com/users/kipcole9/following{/other_user}","gists_url":"https://api.github.com/users/kipcole9/gists{/gist_id}","starred_url":"https://api.github.com/users/kipcole9/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kipcole9/subscriptions","organizations_url":"https://api.github.com/users/kipcole9/orgs","repos_url":"https://api.github.com/users/kipcole9/repos","events_url":"https://api.github.com/users/kipcole9/events{/privacy}","received_events_url":"https://api.github.com/users/kipcole9/received_events","type":"User","site_admin":false},"created_at":"2018-11-26T17:42:26Z","updated_at":"2018-11-26T17:42:26Z","author_association":"OWNER","body":"I have recently released a new release of [ex_money](https://hex.pm/packages/ex_money/3.0.0) which uses a new version of [ex_cldr](https://hex.pm/packages/ex_cldr/2.0.4) which I think will make release management more predictable.  I'd be interested to see if this release fixes this issue.  Basically the structure of the underlying `ex_cldr` aligns much better with how `Gettext`, `Ecto` and `Phoenix` generate code into a user-defined backend module which is a much cleaner architecture."}}
{"actor":{"display_login":"kipcole9"}}