Skip to content

Fix issue with fetching igniter in downstream apps - #8

Open
bratsche wants to merge 1 commit into
chrisgreg:mainfrom
bratsche:fix-igniter-issue
Open

bratsche wants to merge 1 commit into
chrisgreg:mainfrom
bratsche:fix-igniter-issue

Conversation

@bratsche

Copy link
Copy Markdown

The igniter docs say to include it in mix.exs as:
{:igniter, "~> 0.6", only: [:dev, :test]}

So, when another app pulls in igniter as a dependency in that way and then also pulls in fyi, it will generate an error when fetching deps.

Changing it to optional: true in fyi fixes this issue. But then we get errors running something like:
MIX_ENV=prod mix deps.get && MIX_ENV=prod mix compile

So wrapping Mix.Tasks.Fyi.Install in a Code.ensure_loaded?() check to fix that. Most of the diff is just reformatting due to that.

The igniter docs say to include it in mix.exs as:
   {:igniter, "~> 0.6", only: [:dev, :test]}

So, when another app pulls in igniter as a dependency in that way and then
also pulls in fyi, it will generate an error when fetching deps.

Changing it to optional: true in fyi fixes this issue. But then we get errors
running something like:
    MIX_ENV=prod mix deps.get && MIX_ENV=prod mix compile

So wrapping Mix.Tasks.Fyi.Install in a Code.ensure_loaded?() check to
fix that.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant