-
Notifications
You must be signed in to change notification settings - Fork 6
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
Bug: CompileError lib/useful.ex:24: Plug.Upload.__struct__/0 is undefined 🔥 #52
Comments
I thought a good starting point for trying to understand this is to search for But sadly it was not insightful. 💭 |
The version of So I'm replacing: Line 48 in 35278cf
with: {:plug, "~> 1.14"} And will alias the |
Patch Package published to https://hex.pm/packages/useful/1.12.1 📦 PR: #53 |
PR: `Plug.Upload` Struct Fix issue #52
Closing, as #53 was merged. |
As noted by @LuchoTurtle in dwyl/mvp#406 and now confirmed in our other projects that use the
Useful
package: https://github.com/dwyl/gogs/actions/runs/5863993387/job/15898337199#step:8:51We either need to add
Plug
as dependency, not just:dev
and:test
the way it is now:https://github.com/dwyl/useful/blame/35278cfb0c697cab555becfcc27ccf46731e61ee/mix.exs#L47-L48
OR we need to define our own "dummy" Struct.
But since the
Useful
package is used in at least oneElixir
project that isn't aPhoenix
App,I think we won't have any other choice but to make
Plug
a dependency. 💭Let's see how we can do this efficiently. 👌
The text was updated successfully, but these errors were encountered: