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

Fixing problem where rootDir is ".", which strips all dots from the filename #987

Merged

Conversation

weaverryan
Copy link
Member

Fixes symfony/recipes#1120

In a normal siutation, $rootDir is .. The intention of this code is to strip the "rootDir" from the START of the $file path, so that we are left with only the relative path. The . + str_replace() was too greedy, and was causing things like docker-composeryaml.

The test uses an absolute root dir, and replicating the . would be tricky. But I tested this locally and the fix works.

Cheers!

@fabpot
Copy link
Member

fabpot commented Aug 2, 2023

Thank you @weaverryan.

@fabpot fabpot merged commit 039bb47 into symfony:1.x Aug 2, 2023
@weaverryan weaverryan deleted the recipe-update-docker-compose-filename-dots branch August 2, 2023 13:58
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 this pull request may close these issues.

2 participants