-
-
Notifications
You must be signed in to change notification settings - Fork 24
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
Support Contao mono repo #214
Conversation
Shouldn't Composer return the version of a package that is provided by another package? |
I mean that sounds like something that should be fixed in Composer instead? 🤔 |
Why would Composer care about how you build your monorepos? |
It's not about monorepo. It's about the fact that we check for a version of a package, but the package has been replaced by another one. So I would expect to get the version of the replacing package. |
Or maybe there is a way to find the "final" package to check that version? 🤔 |
No idea 🤷♂️ I think the PR looks correct (will still not work with |
The package name of a dev branch will still be |
There will be no version. |
True. I think we can change the check altogether. |
This PR works, because the author of this extension assumes to have either of those packages installed. But if |
The problem is with the file uploads. They have been reworked by @Toflar in Contao 5 and there is no longer |
Yes but the method returns contao-haste/src/Form/Form.php Lines 928 to 939 in 25b2f0e
|
That's exactly the problem: https://github.com/contao/contao/blob/5.x/core-bundle/contao/forms/FormUpload.php The upload field does not have the |
Right, but then we can still remove the version check, can we not? Because: if ($widget instanceof UploadableWidgetInterface) {
return $widget->value;
}
|
Theoretically yes. I think that would be the appropriate fix. @Toflar what do you think? |
If it works, it's the appropriate fix :D |
I have just released it as 5.1.14, thank you @fritzmg ! |
When using the Contao mono repo the following error might occur:
This PR fixes that by allowing to fall back to the mono repo if
contao/core-bundle
is not found.