Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Compilation fails: cannot import Mix.Ecto.build_repo_priv/1 #51

Open
cyranix opened this issue Feb 23, 2018 · 4 comments
Open

Compilation fails: cannot import Mix.Ecto.build_repo_priv/1 #51

cyranix opened this issue Feb 23, 2018 · 4 comments

Comments

@cyranix
Copy link

cyranix commented Feb 23, 2018

$ mix deps.compile apartmentex
==> apartmentex
Compiling 5 files (.ex)

== Compilation error in file lib/apartmentex/migrations_path_builder.ex ==
** (CompileError) lib/apartmentex/migrations_path_builder.ex:2: cannot import Mix.Ecto.build_repo_priv/1 because it is undefined or private
    (elixir) src/elixir_import.erl:77: :elixir_import.calculate/6
    (elixir) src/elixir_import.erl:18: :elixir_import.import/4
could not compile dependency :apartmentex, "mix compile" failed. You can recompile this dependency with "mix deps.compile apartmentex", update it with "mix deps.update apartmentex" or clean it with "mix deps.clean apartmentex"

Elixir version: 1.6.0

@tripitakit
Copy link

I have the same error, with Elixir 1.6.1

@BenMorganIO
Copy link
Contributor

What version of Ecto are you guys using?

@Dania02525
Copy link
Owner

@cyranix @tripitakit I apologize- the Hex version is a bit behind and seems to be causing this compile error. I tried with the latest Phoenix version 1.3, and elixir 1.6.1 using the git specified dep and it should compile with just a warning about Mariaex. I'll get a new version pushed to hex this weekend.

Try this in your mix.exs

{:apartmentex, git: "https://github.com/Dania02525/apartmentex.git"}

@BenMorganIO
Copy link
Contributor

@Dania02525 would you be able to release a new version with these changes?

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

No branches or pull requests

4 participants