Skip to content

Commit

Permalink
This commit reverts logic in cacheKey calculation introduced in #1163
Browse files Browse the repository at this point in the history
… (#1200)
  • Loading branch information
art-divin authored Sep 11, 2023
1 parent 55ef3b6 commit c584be5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion SourcerySwift/Sources/SwiftTemplate.swift
Original file line number Diff line number Diff line change
Expand Up @@ -291,7 +291,7 @@ open class SwiftTemplate {
var contents = code

// For every included file, make sure that the path and modification date are included in the key
let files = (includedFiles + buildDir.allPaths).map({ $0.absolute() }).sorted(by: { $0.string < $1.string })
let files = includedFiles.map({ $0.absolute() }).sorted(by: { $0.string < $1.string })
for file in files {
let hash = (try? file.read().sha256().base64EncodedString()) ?? ""
contents += "\n// \(file.string)-\(hash)"
Expand Down

0 comments on commit c584be5

Please sign in to comment.