@@ -200,68 +200,6 @@ func validateDependencyConsistency(registry *plugins.PluginRegistry, version sem
200200 return nil
201201}
202202
203- // syncDependencies updates all configured dependency files to match the new version.
204- // Returns nil if dependency checker is not enabled or auto-sync is disabled.
205- // The bumpedPaths parameter contains paths that were already bumped as modules
206- // and should be excluded from the output (they're still synced but not displayed twice).
207- func syncDependencies (registry * plugins.PluginRegistry , version semver.SemVersion , bumpedPaths ... string ) error {
208- dc := registry .GetDependencyChecker ()
209- if dc == nil {
210- return nil
211- }
212-
213- plugin , ok := dc .(* dependencycheck.DependencyCheckerPlugin )
214- if ! ok || ! plugin .IsEnabled () || ! plugin .GetConfig ().AutoSync {
215- return nil
216- }
217-
218- files := plugin .GetConfig ().Files
219- if len (files ) == 0 {
220- return nil
221- }
222-
223- if err := dc .SyncVersions (version .String ()); err != nil {
224- return fmt .Errorf ("failed to sync dependency versions: %w" , err )
225- }
226-
227- // Build set of bumped paths for quick lookup
228- bumpedSet := make (map [string ]bool , len (bumpedPaths ))
229- for _ , p := range bumpedPaths {
230- bumpedSet [p ] = true
231- }
232-
233- // Filter files to only show ones not already bumped as modules
234- var additionalFiles []dependencycheck.FileConfig
235- for _ , file := range files {
236- if ! bumpedSet [file .Path ] {
237- additionalFiles = append (additionalFiles , file )
238- }
239- }
240-
241- // Only print section if there are additional files to show
242- if len (additionalFiles ) > 0 {
243- fmt .Println ("Sync dependencies" )
244- for _ , file := range additionalFiles {
245- name := deriveDependencyName (file .Path )
246- fmt .Printf (" %s %s %s%s\n " , printer .SuccessBadge ("✓" ), name , printer .Faint ("(" + file .Path + ")" ), printer .Faint (": " + version .String ()))
247- }
248- }
249-
250- return nil
251- }
252-
253- // deriveDependencyName extracts a display name from a file path.
254- // For .version files, uses the parent directory name.
255- // For other files (package.json, etc.), uses the filename.
256- func deriveDependencyName (path string ) string {
257- base := filepath .Base (path )
258- if base == ".version" {
259- dir := filepath .Dir (path )
260- return filepath .Base (dir )
261- }
262- return base
263- }
264-
265203// generateChangelogAfterBump generates changelog entries if changelog generator is enabled.
266204// Returns nil if changelog generator is not enabled.
267205func generateChangelogAfterBump (registry * plugins.PluginRegistry , version , _ semver.SemVersion , bumpType string ) error {
0 commit comments