Closed javiereguiluz closed 10 months ago
@weaverryan maybe?
Let's close this issue. It's such an obvious problem that if other people suffered it, we would have received feedback about it. It was probably a weird temporary issue on my side. Thanks!
Found the source of this problem here: https://github.com/symfony/flex/blob/bec213c39511eda66663baa2ee7440c65f89c695/src/Configurator/ComposerScriptsConfigurator.php#L52
$jsonPath = ltrim(str_replace($recipeUpdate->getRootDir(), '', $json->getPath()), '/\\');
if root dir is ".", then "./composer.json" becomes "composerjson"
I'm upgrading a project to Symfony 7 and when trying to update the
symfony/asset-mapper
recipe, I see this error:The problem is here:
Instead of
composer.json
, it's trying to update thecomposerjson
file.And this is the diff file generated: