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
post-install-cmd calls cache:clear and throws ../src/DependencyInjection" does not exist when running composer install #803
Comments
/cc @lyrixx |
I already replied there : 60d0656 |
@grizmio I'm not able to reproduce, because when I install vendor from, as the projet is empty, it can not work:
Can you create a reproducer instead? Thanks |
@lyrixx the error you got in your case is because symfony/flex was skipped due to conflicting with Composer 2. you might need to try it with Composer 1 |
@stof Thanks. I managed to reproduce the issue: The full trace
I found the culprit:
Signature of The change from "false" => "true" (ie ignore error) comes from this commit symfony/symfony@a67abe1#diff-ad1ed76aba6a80df5a48dfa4585adcf3L164 :
But the real changes comes from symfony/symfony@2f65a7a and so symfony/symfony#35772 So the current behavior is to ignore error (3.4, 4.4, 5.x) but since 4.3 is EOL, the commit did not reach this branch. Too bad to me :). More over, 4.2 is also affected I don't know what can I do. Some options :
So, My preferred solutions, sorted by preference : 4️⃣, 3️⃣, 2️⃣, 1️⃣ WDYT? |
4️⃣ looks good to me |
having the same issue, I was running I get this error:
|
I'm installing symfony with "composer install" from composer.json and composer.lock, but with an array if a directory is missing it thows an error at cache:clear in post install
Script @auto-scripts was called via post-install-cmd
If a rollback this change it works like before, if i change the sequence to:
App: resource: '../src/'
exclude:
- '../src/Entity/'
- '../src/Kernel.php'
The text was updated successfully, but these errors were encountered: