Closed
Description
Symfony version(s) affected
7.1.1
Description
While upgrading from 7.0 to 7.1, my app started saying no routes exist.
I was doing
RUN bin/console cache:warmup --no-interaction -vvv
in my Dockerfile, cache folder doesn't exist before the command runs.
How to reproduce
rm -rf var/cache
bin/console cache:warmup --no-interaction -vvv
ls var/cache/prod/url_* # no files
Possible Solution
Have warmup behave exactly like clear would if it's running without a prior cache being present.
Alternatively, if this is impossible, have warmup throw it if notices there's no prior cache present because this is way too subtle of a change.
Additional Context
#53450 intended to fix this, but was closed.