Seeds: scope compiler_options to seed run, restore in after
Remove global ignore_module_conflict from mix.exs. Set it only in seeds.exs during eval_file and restore via try/after so crashes do not leave the option enabled.
This commit is contained in:
parent
70c3ca82ea
commit
a98d921848
2 changed files with 16 additions and 10 deletions
2
mix.exs
2
mix.exs
|
|
@ -2,8 +2,6 @@ defmodule Mv.MixProject do
|
|||
use Mix.Project
|
||||
|
||||
def project do
|
||||
Code.compiler_options(ignore_module_conflict: true)
|
||||
|
||||
[
|
||||
app: :mv,
|
||||
version: "0.1.0",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue