Skip to content

Commit 01dbed9

Browse files
committed
[xcodegen] NFC: Rename resolvingSymlinks -> realPath
1 parent 9a0a831 commit 01dbed9

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

utils/swift-xcodegen/Sources/SwiftXcodeGen/Path/AbsolutePath.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ public extension AbsolutePath {
5252
(try? FileManager.default.destinationOfSymbolicLink(atPath: rawPath)) != nil
5353
}
5454

55-
var resolvingSymlinks: Self {
55+
var realPath: Self {
5656
guard let resolved = realpath(rawPath, nil) else { return self }
5757
defer {
5858
free(resolved)

utils/swift-xcodegen/Sources/swift-xcodegen/SwiftXcodegen.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ struct SwiftXcodegen: AsyncParsableCommand, Sendable {
8484

8585
// Check to see if we have a separate runnable build dir.
8686
let runnableBuildDirPath =
87-
self.runnableBuildDir?.absoluteInWorkingDir.resolvingSymlinks
87+
self.runnableBuildDir?.absoluteInWorkingDir.realPath
8888
let runnableBuildDir = try runnableBuildDirPath.map {
8989
try NinjaBuildDir(at: $0, projectRootDir: ninja.projectRootDir)
9090
.buildDir(for: .swift)
@@ -332,7 +332,7 @@ struct SwiftXcodegen: AsyncParsableCommand, Sendable {
332332
}
333333

334334
func generate() async throws {
335-
let buildDirPath = buildDir.absoluteInWorkingDir.resolvingSymlinks
335+
let buildDirPath = buildDir.absoluteInWorkingDir.realPath
336336
log.info("Generating project for '\(buildDirPath)'...")
337337

338338
let projectRootDir = self.projectRootDir?.absoluteInWorkingDir

0 commit comments

Comments
 (0)