@@ -84,7 +84,16 @@ export class Buddy {
84
84
? this . groupUpdatesByConfig ( updates )
85
85
: groupUpdates ( updates )
86
86
87
- const duration = Date . now ( ) - startTime
87
+ // Debug logging for group composition
88
+ console . log ( `🐛 DEBUG: Created ${ groups . length } update groups:` )
89
+ groups . forEach ( group => {
90
+ console . log ( `🐛 Group: "${ group . name } " (${ group . updateType } ) - ${ group . updates . length } updates` )
91
+ group . updates . forEach ( update => {
92
+ console . log ( `🐛 - ${ update . name } : ${ update . currentVersion } -> ${ update . newVersion } (${ update . file } )` )
93
+ } )
94
+ } )
95
+
96
+ const scanDuration = Date . now ( ) - startTime
88
97
89
98
const result : UpdateScanResult = {
90
99
totalPackages,
@@ -194,16 +203,6 @@ export class Buddy {
194
203
// Update package.json with new versions
195
204
const packageJsonUpdates = await this . generateAllFileUpdates ( group . updates )
196
205
197
- // Debug logging to understand what files are being processed
198
- console . log ( `🐛 DEBUG: Processing group "${ group . name } " with ${ group . updates . length } updates:` )
199
- group . updates . forEach ( update => {
200
- console . log ( `🐛 - ${ update . name } : ${ update . currentVersion } -> ${ update . newVersion } (${ update . file } , ${ update . updateType } )` )
201
- } )
202
- console . log ( `🐛 DEBUG: Generated ${ packageJsonUpdates . length } file updates:` )
203
- packageJsonUpdates . forEach ( fileUpdate => {
204
- console . log ( `🐛 - File: ${ fileUpdate . path } ` )
205
- } )
206
-
207
206
// Commit changes
208
207
await gitProvider . commitChanges ( branchName , group . title , packageJsonUpdates )
209
208
@@ -460,6 +459,7 @@ export class Buddy {
460
459
if ( dependencyFileUpdates . length > 0 ) {
461
460
try {
462
461
const { generateDependencyFileUpdates } = await import ( './utils/dependency-file-parser' )
462
+ // Pass only the dependency file updates to avoid cross-contamination
463
463
const depFileUpdates = await generateDependencyFileUpdates ( dependencyFileUpdates )
464
464
fileUpdates . push ( ...depFileUpdates )
465
465
}
@@ -477,6 +477,7 @@ export class Buddy {
477
477
if ( composerUpdates . length > 0 ) {
478
478
try {
479
479
const { generateComposerUpdates } = await import ( './utils/composer-parser' )
480
+ // Pass only the composer updates for this specific group to prevent cross-contamination
480
481
const compUpdates = await generateComposerUpdates ( composerUpdates )
481
482
fileUpdates . push ( ...compUpdates )
482
483
}
@@ -494,6 +495,7 @@ export class Buddy {
494
495
if ( githubActionsUpdates . length > 0 ) {
495
496
try {
496
497
const { generateGitHubActionsUpdates } = await import ( './utils/github-actions-parser' )
498
+ // Pass only the GitHub Actions updates for this specific group
497
499
const ghActionsUpdates = await generateGitHubActionsUpdates ( githubActionsUpdates )
498
500
fileUpdates . push ( ...ghActionsUpdates )
499
501
}
0 commit comments