-
Notifications
You must be signed in to change notification settings - Fork 381
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
Fails to compile if optional plug dependency is missin #644
Comments
@aeons what version of Elixir are you on? @ueberauth/developers have any of you seen this before? I don't think I've ever used Guardian without Plug. I can try to spin up an empty project to test. |
Elixir 1.10. I was trying to get sans_password updated to the newest guardian, and that does not have a dependency on anything except guardian. |
This is indeed a problem
This part is wrapped in Code.ensure_loaded, but I guess it is a problem simular to this Do we want to go that direction or should we just include plug as a dependency? |
@ueberauth/developers ? |
I am having the same issue, I just added the plug as a dependency and solved, but I didn't want to add the |
Fixed by #663 |
I am not sure whether this is an issue for Guardian or for Elixir/mix, but here goes.
If you create an empty project and add
{:guardian, "~> 2.0"}
as a dependency, compilation fails withThe referenced line is here
guardian/lib/guardian/plug/pipeline.ex
Lines 108 to 110 in 62744fb
The text was updated successfully, but these errors were encountered: