Skip to content

Commit d318eaa

Browse files
authored
deprecate archiver (#288)
motivation: move archiver to SwiftPM changes: mark archiver utilities and tests as deprecated
1 parent b7667f3 commit d318eaa

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

Sources/TSCUtility/Archiver.swift

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@ import TSCBasic
1212
import Dispatch
1313

1414
/// The `Archiver` protocol abstracts away the different operations surrounding archives.
15+
// FIXME: deprecate 2/2022, remove once clients transitioned
16+
@available(*, deprecated, message: "moved to SwiftPM")
1517
public protocol Archiver {
1618

1719
/// A set of extensions the current archiver supports.
@@ -31,6 +33,8 @@ public protocol Archiver {
3133
}
3234

3335
/// An `Archiver` that handles ZIP archives using the command-line `zip` and `unzip` tools.
36+
// FIXME: deprecate 2/2022, remove once clients transitioned
37+
@available(*, deprecated, message: "moved to SwiftPM")
3438
public struct ZipArchiver: Archiver {
3539
public var supportedExtensions: Set<String> { ["zip"] }
3640

Tests/TSCUtilityTests/ArchiverTests.swift

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@ import TSCBasic
1313
import TSCUtility
1414
import TSCTestSupport
1515

16+
// FIXME: deprecate 2/2022, remove once clients transitioned
17+
@available(*, deprecated, message: "moved to SwiftPM")
1618
class ArchiverTests: XCTestCase {
1719
// MARK: - ZipArchiver Tests
1820

0 commit comments

Comments
 (0)