Setting config variables for escript.install

Summary: When running mix escript.install github me/myrepo, configuration options (either defined in config.exs OR in application.env) are not executed. However, if I locally pull down the code and run mix for the local directory, config.exs is used correctly.

Is this a bug in elixir or am I doing something wrong?

Example code:


config :myapp myflag: 42


def application do
    extra_applications: [:logger],
    env: [myflag: 42]


def main(args) do
  Application.get_env(:myapp, :myflag)
  |> IO.inspect

expected: 42, actual: nil when pulling from github