Skip to content

Commit d67baa2

Browse files
authored
TSCBasic: deprecate AbsolutePath.appending(_:) (#299)
This deprecates the `AbsolutePath.appending(_:)` overload for constructing an `AbsolutePath` by appending a `RelativePath`. Users should prefer `AbsolutePath(_:relativeTo:)`. Addresses feedback from swiftlang/swift-package-manager#4237
1 parent 367fa68 commit d67baa2

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

Sources/TSCBasic/Path.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -166,6 +166,7 @@ public struct AbsolutePath: Hashable {
166166
}
167167

168168
/// Returns the absolute path with the relative path applied.
169+
@available(*, deprecated, renamed: "AbsolutePath(_:relativeTo:)")
169170
public func appending(_ subpath: RelativePath) -> AbsolutePath {
170171
return AbsolutePath(self, subpath)
171172
}

0 commit comments

Comments
 (0)