Skip to content

Fix recipes:update when add-lines targets a file that the recipe also copies - #1133

Merged
nicolas-grekas merged 1 commit into
2.xfrom
addlines-update
Oct 29, 2026
Merged

nicolas-grekas merged 1 commit into
2.xfrom
addlines-update

Conversation

@nicolas-grekas

Copy link
Copy Markdown
Member
Q A
Bug fix? yes
New feature? no
Deprecations? no
Issues -
License MIT

Found while testing the next release. Updating the phpunit/phpunit recipe from 10.0 to 11.1 never changed phpunit.dist.xml, because add-lines replaced what copy-from-recipe computed for this file with its current contents. add-lines now adds its lines on top of the contents computed by the other configurators, and uses the current file only when there are none.

@nicolas-grekas
nicolas-grekas merged commit 431d079 into 2.x Oct 29, 2026
5 of 6 checks passed
@nicolas-grekas
nicolas-grekas deleted the addlines-update branch October 29, 2026 17:23
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.

1 participant