-
-
Notifications
You must be signed in to change notification settings - Fork 9.6k
[FrameworkBundler] Fix cache:clear with buildDir #39360
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
Conversation
5b7dcc1
to
e8e3aab
Compare
FYI test in red because test in FWB requires fix Kernel form this same PR (that's why in changed composer.json to 5.2.1) |
(the tests on Windows might need some love.) |
Fixed with my must favorite trick. Doing nothing... ^^ In fact, previous failure were very strange: I guess appveyor had FS issue |
(rebase needed) |
|
||
class NoBuildDirKernel extends TestAppKernel |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could you have a look @chalasr ? Previous code can't work, because kernel.build_dir
is now needed to build the container (and now needed to initialize the cache:clear
command).
I refactored the code t build a container and then remove the parameter from the dumped container.
Hey Guys, just wanted to let you know that this PR resolves our blocker in Ibexa DXP preventing us from upgrading to Symfony 5.2. Thanks 👍 |
Thanks for fixing this bug @jderusse. |
Thanks @jderusse ❤️ ❤️ |
Thanks @jderusse 🎉 |
By the end of the month, usually. |
@derrabus we are launching new Ibexa DXP 3.3.0 on December 30th. We are eager to use Symfony 5.2 as all our tests are passing with this fix. Could you make a Symfony 5.2.1 release before December 30th? |
I'm pretty confident that 5.2.1 happens before Dec 30th. 😃 But please test against 5.2-dev in the meantime to make sure the changes work for you. |
Thank you @jderusse! |
First of all, thanks for the fix - I've encountered this problems in the project created with CLI binary few days ago and had to downgrade to 5.1 to continue working on it. Personally I think that fixes like this one should be considered as hotfixes and released as soon as possible. Symfony 5.2.0 was released 16 days ago and is really unstable because of problems with cache (at least in |
keep calm and run |
Thank you @fabpot for earlier release 👍 |
Since #36515 there are 2 caches dir
cacheDir
andbuildDir
. For BC reason both points to the same folders, but when app don't use the same folder, many thing are broken:This PR fixes several issues introduces by the above PR:
App_KernelDevDebugContainerDeprecations.log
,App_KernelDevDebugContainer.xml
)Compiler.log
is written in build_dir andDeprecations.log
were written in cache_dir before this PRcache_dir
andbuild_dir
are not identical.