Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions Sources/TSCBasic/Lock.swift
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ public final class FileLock {
/// Create an instance of FileLock at the path specified
///
/// Note: The parent directory path should be a valid directory.
public init(at lockFile: AbsolutePath) {
internal init(at lockFile: AbsolutePath) {
self.lockFile = lockFile
}

Expand Down Expand Up @@ -191,7 +191,7 @@ public final class FileLock {
return try await body()
}

private static func prepareLock(
public static func prepareLock(
fileToLock: AbsolutePath,
at lockFilesDirectory: AbsolutePath? = nil
) throws -> FileLock {
Expand Down
2 changes: 1 addition & 1 deletion Tests/TSCBasicTests/LockTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@

import XCTest

import TSCBasic
@testable import TSCBasic
import TSCTestSupport

class LockTests: XCTestCase {
Expand Down