File tree Expand file tree Collapse file tree 2 files changed +9
-9
lines changed Expand file tree Collapse file tree 2 files changed +9
-9
lines changed Original file line number Diff line number Diff line change @@ -12,9 +12,8 @@ import class Foundation.ProcessInfo
12
12
import TSCBasic
13
13
14
14
extension Version {
15
- /// Try a version from a git tag.
16
- ///
17
- /// - Parameter tag: A version string possibly prepended with "v".
15
+ // FIXME: deprecate 2/2021 (used below), remove once clients transitioned
16
+ @available ( * , deprecated, message: " moved to SwiftPM " )
18
17
init ? ( tag: String ) {
19
18
if tag. first == " v " {
20
19
self . init ( string: String ( tag. dropFirst ( ) ) )
@@ -24,8 +23,9 @@ extension Version {
24
23
}
25
24
}
26
25
27
- public class Git {
28
- /// Compute the version -> tags mapping from a list of input `tags`.
26
+ public enum Git {
27
+ // FIXME: deprecate 2/2021, remove once clients transitioned
28
+ @available ( * , deprecated, message: " moved to SwiftPM " )
29
29
public static func convertTagsToVersionMap( _ tags: [ String ] ) -> [ Version : [ String ] ] {
30
30
// First, check if we need to restrict the tag set to version-specific tags.
31
31
var knownVersions : [ Version : [ String ] ] = [ : ]
Original file line number Diff line number Diff line change 10
10
11
11
@_implementationOnly import TSCclibc
12
12
13
- /// A Swift version number.
14
- ///
15
- /// Note that these are *NOT* semantically versioned numbers.
13
+ // FIXME: deprecate 2/2021, remove once clients transitioned
14
+ @available ( * , deprecated, message: " moved to SwiftPM " )
16
15
public struct SwiftVersion {
17
16
/// The version number.
18
17
public var version : ( major: Int , minor: Int , patch: Int )
@@ -69,7 +68,8 @@ private func getBuildIdentifier() -> String? {
69
68
return buildIdentifier. isEmpty ? nil : buildIdentifier
70
69
}
71
70
72
- /// Version support for the package manager.
71
+ // FIXME: deprecate 2/2021, remove once clients transitioned
72
+ @available ( * , deprecated, message: " moved to SwiftPM " )
73
73
public struct Versioning {
74
74
75
75
/// The current version of the package manager.
You can’t perform that action at this time.
0 commit comments