Skip to content

Resolve directories for copy from recipe in update case #950

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

Open
wants to merge 2 commits into
base: 1.x
Choose a base branch
from

Conversation

shyim
Copy link
Contributor

@shyim shyim commented Sep 26, 2022

The update case of CopyFromRecipeConfigurator does not respect the folders in the config.
https://symfony.com/doc/current/setup/flex.html#customizing-flex-paths

@shyim shyim force-pushed the fix-copy-from-recipe-aliases branch from dfd3445 to 7392a69 Compare September 26, 2022 14:00
@stof
Copy link
Member

stof commented Apr 8, 2025

This should add tests covering this behavior (in CopyFromRecipeConfiguratorTest) to prevent regressions.

@shyim shyim force-pushed the fix-copy-from-recipe-aliases branch 3 times, most recently from 42c2aa3 to cdf1300 Compare April 10, 2025 07:52
@shyim shyim force-pushed the fix-copy-from-recipe-aliases branch from cdf1300 to 8ba864e Compare April 10, 2025 08:00
@shyim
Copy link
Contributor Author

shyim commented Apr 10, 2025

the 7.4 fails because of packagist woofoo with composer 1

$recipeUpdate,
[
'root/' => '',
'symfony8config/' => '%CONFIG_DIR%/',
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Having the recipe using symfony8config and mapping it to the usual config dir named config is not at all the use case that you want to solve (it is exactly the opposite use case). I suggest making the test cover the intended use case instead, as that's the use case for which we want to prevent regressions.

Copy link
Contributor Author

@shyim shyim Apr 10, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I wanted to test, when the path is empty or you mapped to it %SOME-VAR%

I can remove it if you want. mapping config to %CONFIG_DIR% makes no difference

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.

3 participants