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

Modules get deactivated due recent composer changes (1.8.166) #4496

Closed
sofl88 opened this issue Jan 21, 2025 · 3 comments
Closed

Modules get deactivated due recent composer changes (1.8.166) #4496

sofl88 opened this issue Jan 21, 2025 · 3 comments

Comments

@sofl88
Copy link

sofl88 commented Jan 21, 2025

Hello.

When I run composer install --ignore-platform-reqs, all my Modules get deactivated and the log reveals that it was because of missing Module files/folders. Since there were changes in the composer.json that rename the Modules folder before and after the installments, I think someone was accessing the website in the meantime and then this error occured.

Is there any chance to prevent this?

PHP version: 8.3.14
FreeScout version: 1.8.166
Database: MySQL
Are you using CloudFlare: No
Are you using non-official modules: Yes

Thanks in advance

@freescout-help
Copy link
Collaborator

Here is some more info: nWidart/laravel-modules#2008

@sofl88
Copy link
Author

sofl88 commented Jan 21, 2025

Thanks for the answer.

Wouldn't add the Modules folder to exclude-from-classmap be the trick? I might miss something here but for example adding

"exclude-from-classmap": [
   "Modules/*/Database/Migrations/"
]

prevents the psr-4 messages for migrations only and adding the entire folder, would have the same result as your current approach

"exclude-from-classmap": [
   "Modules/"
]

Thanks in advance

@freescout-help
Copy link
Collaborator

Thanks. Fixed in the master branch and will be published in the next release.

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

2 participants