Skip to content

Xref loading {:autoload, false} modules across BEAMs #4900

@mobileoverlord

Description

@mobileoverlord

While this commit:
6ccab88
Fixed warning from within the same beam There seem to still be an issue when checking refs across beams. I have created a sample umbrella which illustrates the issue
https://github.com/mobileoverlord/auto_load

mix compile from the top of the umbrella

Environment

  • Elixir version (elixir -v): v1.3(master) / 19.0
  • Operating system: macOS 10.11.5

Current behavior

mix/xref will load modules marked with @compile {:autoload, false} when checking across apps/beams

Expected behavior

mix should not attempt to load these modules during the compile time

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