Skip to content

--no-optional-deps loads optional application once it's compiled #14856

@LostKobrakai

Description

@LostKobrakai

Elixir and Erlang/OTP versions

Erlang/OTP 28 [erts-16.1] [source] [64-bit] [smp:14:14] [ds:14:14:10] [async-threads:1] [jit]

Elixir 1.19.1 (compiled with Erlang/OTP 28)

Operating system

Mac OS X

Current behavior

  • mix new name
  • Add {:adbc, ">= 0.0.0", optional: true}
  • mix deps.get
  • mix deps.compile
  • Add Application.loaded_applications() |> dbg() in the module body of the project module
  • mix compile --no-optional-deps

:adbc is listed as loaded

Expected behavior

Given the flag is documented to not compile nor load optional applications I would expect :adbc to not be loaded.

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