Skip to content

No default and nil as default aren't the same #49

@janpieper

Description

@janpieper

Maybe I am wrong, but this doesn't feel to be the truth:

* `{:system, :integer, "ENV_NAME"}` - same as `{:system, :integer, "ENV_NAME", nil}`;

For me, I get an ArgumentError when using {:system, :integer, "ENV_NAME"}:

** (Mix) Could not start application example: exited in: Example.Application.start(:normal, [])
    ** (EXIT) an exception was raised:
        ** (ArgumentError) can't fetch value for key `Example.Config` of application `:example`, can not resolve key ENV_NAME value via adapter Elixir.Confex.Adapters.SystemEnvironment

But it works fine when using {:system, :integer, "ENV_NAME", nil}. So, it is not the same.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions