Skip to content

Commit

Permalink
Roughly solve the issue of hash being affected by external paths
Browse files Browse the repository at this point in the history
  • Loading branch information
cragod committed Nov 24, 2023
1 parent 37684d7 commit 4d9e2e0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ final class FileContentHasher {

private func hashContext(path: String) throws -> String {
let file = try File.at(path)
return try "\(relativePath(of: file)): \(hash(file))"
return try "\(path): \(hash(file))"
}

private func hash(_ file: IFile) throws -> String {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@ import XcodeProj

extension PBXFileElement {
var fullPath: String? {
try? fullPath(sourceRoot: "Pods")
try? fullPath(sourceRoot: "Pods")?.string
}
}

0 comments on commit 4d9e2e0

Please sign in to comment.