Skip to content

Commit 742e3a3

Browse files
committed
PackageFingerprint: make some of the private API more public
This extends the visibility of some of the private implementation to the package level to allow use for testing without `@testable` imports.
1 parent d8cb41e commit 742e3a3

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Sources/PackageFingerprint/FilePackageFingerprintStorage.swift

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ import struct TSCUtility.Version
2020

2121
public struct FilePackageFingerprintStorage: PackageFingerprintStorage {
2222
let fileSystem: FileSystem
23-
let directoryPath: Basics.AbsolutePath
23+
package let directoryPath: Basics.AbsolutePath
2424

2525
private let encoder: JSONEncoder
2626
private let decoder: JSONDecoder
@@ -350,13 +350,13 @@ protocol FingerprintReference {
350350
}
351351

352352
extension PackageIdentity: FingerprintReference {
353-
var fingerprintsFilename: String {
353+
package var fingerprintsFilename: String {
354354
"\(self.description).json"
355355
}
356356
}
357357

358358
extension PackageReference: FingerprintReference {
359-
var fingerprintsFilename: String {
359+
package var fingerprintsFilename: String {
360360
get throws {
361361
guard case .remoteSourceControl(let sourceControlURL) = self.kind else {
362362
throw StringError("Package kind [\(self.kind)] does not support fingerprints")

0 commit comments

Comments
 (0)