-
-
Notifications
You must be signed in to change notification settings - Fork 183
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
bug #988 [AddLines] Fix update process to send changes to RecipeUpdat…
…e vs make them immediately (weaverryan) This PR was squashed before being merged into the 1.x branch. Discussion ---------- [AddLines] Fix update process to send changes to RecipeUpdate vs make them immediately Hi! This was an oversight when I create `AddLinesConfigurator`. During `recipes:update`, the purpose of the `update()` method in each configurator is to record what the "original" contents of a file would look like from the original recipe & what the "new" contents of a file would look like with the new recipe. Then, LATER, the patcher system creates a diff from these. The `AddLinesConfigurator` was going rogue and updating the files immediately, which caused the "patcher" system later to explode because this file was unexpectedly already modified. The changes are less drastic than they look, as code needed to be moved from some public methods -> private methods. Cheers! Commits ------- afd6260 Fixing bug where update changes were made immediately vs reported to RecipeUpdate 7e8967a Avoid exploding on conflict of controllers.json 6592349 Internal: moving most of method to a private method, no changes 436bad9 Moving guts of method to a private method - no real change 94a3e56 Internal: changing private functions to return a string
- Loading branch information
Showing
3 changed files
with
110 additions
and
63 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters