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

ComposerScriptsConfigurator can break "composer.json" filename in patch #1010

Open
klkvsk opened this issue Feb 8, 2024 · 0 comments · May be fixed by #1011
Open

ComposerScriptsConfigurator can break "composer.json" filename in patch #1010

klkvsk opened this issue Feb 8, 2024 · 0 comments · May be fixed by #1011

Comments

@klkvsk
Copy link

klkvsk commented Feb 8, 2024

$jsonPath = ltrim(str_replace($recipeUpdate->getRootDir(), '', $json->getPath()), '/\\');

In case when root dir = ".", it replaces the dot in filename, and then applying the patch is broken with:

NOTE:
  The file composerjson was not updated because it doesn't exist in your app.

Reported in symfony/recipes#1271

@klkvsk klkvsk linked a pull request Feb 8, 2024 that will close this issue
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

Successfully merging a pull request may close this issue.

1 participant