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
10 changes: 5 additions & 5 deletions Sources/TSCUtility/Git.swift
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,8 @@ import class Foundation.ProcessInfo
import TSCBasic

extension Version {
/// Try a version from a git tag.
///
/// - Parameter tag: A version string possibly prepended with "v".
// FIXME: deprecate 2/2021 (used below), remove once clients transitioned
@available(*, deprecated, message: "moved to SwiftPM")
init?(tag: String) {
if tag.first == "v" {
self.init(string: String(tag.dropFirst()))
Expand All @@ -24,8 +23,9 @@ extension Version {
}
}

public class Git {
/// Compute the version -> tags mapping from a list of input `tags`.
public enum Git {
// FIXME: deprecate 2/2021, remove once clients transitioned
@available(*, deprecated, message: "moved to SwiftPM")
public static func convertTagsToVersionMap(_ tags: [String]) -> [Version: [String]] {
// First, check if we need to restrict the tag set to version-specific tags.
var knownVersions: [Version: [String]] = [:]
Expand Down
8 changes: 4 additions & 4 deletions Sources/TSCUtility/Versioning.swift
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,8 @@

@_implementationOnly import TSCclibc

/// A Swift version number.
///
/// Note that these are *NOT* semantically versioned numbers.
// FIXME: deprecate 2/2021, remove once clients transitioned
@available(*, deprecated, message: "moved to SwiftPM")
public struct SwiftVersion {
/// The version number.
public var version: (major: Int, minor: Int, patch: Int)
Expand Down Expand Up @@ -69,7 +68,8 @@ private func getBuildIdentifier() -> String? {
return buildIdentifier.isEmpty ? nil : buildIdentifier
}

/// Version support for the package manager.
// FIXME: deprecate 2/2021, remove once clients transitioned
@available(*, deprecated, message: "moved to SwiftPM")
public struct Versioning {

/// The current version of the package manager.
Expand Down