Skip to content

Mix.Project.in_project/4 always produces recompilation warnings #7741

@AndrewDryga

Description

@AndrewDryga

Environment

elixir -v
Erlang/OTP 20 [erts-9.3.1] [source] [64-bit] [smp:8:8] [ds:8:8:10] [async-threads:10] [hipe] [kernel-poll:false] [dtrace]

Elixir 1.7.0-dev (73201ca) (compiled with Erlang/OTP 20)

Current behavior

This code would always produce warnings (It's run from within the umbrella app):

Mix.Project.in_project application_name, "apps/#{application_name}", fn _module ->
  Mix.Project.config()[:version] |> Version.parse!() |> IO.puts()
end
warning: redefining module Work.MyApp.Mixfile (current version defined in memory)
  /Users/andrew/Projects/work/talk/apps/myapp/mix.exs:1

0.1.0

Expected behavior

No warnings produced:

0.1.0

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions