@@ -98,24 +98,13 @@ extension Docc.ProcessArchive {
9898 let initialDocCArchiveAPIs : [ URL ] = try findAllSymbolLinks ( initialPath: initialDocCArchivePath)
9999 let newDocCArchiveAPIs : [ URL ] = try findAllSymbolLinks ( initialPath: newerDocCArchivePath)
100100
101- print ( " \n Initial DocC Archive: " )
102- printAllSymbols ( symbols: initialDocCArchiveAPIs)
103-
104- print ( " \n New DocC Archive: " )
105- printAllSymbols ( symbols: newDocCArchiveAPIs)
106-
107101 let initialSet = Set ( initialDocCArchiveAPIs. map { $0 } )
108102 let newSet = Set ( newDocCArchiveAPIs. map { $0 } )
109103
110104 // Compute additions and removals to both sets
111105 let additionsToNewSet = newSet. subtracting ( initialSet)
112106 let removedFromOldSet = initialSet. subtracting ( newSet)
113107
114- print ( " \n Additions to New DocC Archive: " )
115- printAllSymbols ( symbols: Array ( additionsToNewSet) )
116- print ( " \n Removals from Initial DocC Archive: " )
117- printAllSymbols ( symbols: Array ( removedFromOldSet) )
118-
119108 // Map identifier urls in differences to external urls
120109 let additionsExternalURLs = Set ( additionsToNewSet. map { findExternalLink ( identifierURL: $0) } )
121110 let removalsExternalURLs = Set ( removedFromOldSet. map { findExternalLink ( identifierURL: $0) } )
@@ -145,7 +134,9 @@ extension Docc.ProcessArchive {
145134 for fileNameAndContent in Docc . ProcessArchive. DiffDocCArchive. changeLogTemplateFileContent ( frameworkName: frameworkName, initialDocCArchiveVersion: initialDocCArchiveVersion, newerDocCArchiveVersion: newerDocCArchiveVersion, additionLinks: additionLinks, removalLinks: removalLinks) {
146135 let fileName = fileNameAndContent. key
147136 let content = fileNameAndContent. value
148- try FileManager . default. createFile ( at: initialDocCArchivePath. deletingLastPathComponent ( ) . appendingPathComponent ( fileName) , contents: Data ( content. utf8) )
137+ let filePath = initialDocCArchivePath. deletingLastPathComponent ( ) . appendingPathComponent ( fileName)
138+ try FileManager . default. createFile ( at: filePath, contents: Data ( content. utf8) )
139+ print ( " \n Output file path: \( filePath) " )
149140 }
150141 }
151142
0 commit comments