The Swift Package Index logo.Swift Package Index

Track the adoption of Swift 6 strict concurrency checks for data race safety. How many packages are Ready for Swift 6?

Build Information

Successful build of CommandCougar, reference 1.1.1 (33b021), with Swift 6.0 for Linux on 1 Nov 2024 02:10:12 UTC.

Swift 6 data race errors: 1

Build Command

bash -c docker run --pull=always --rm -v "checkouts-4609320-1":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:basic-6.0-latest swift build --triple x86_64-unknown-linux-gnu -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete 2>&1

Build Log

========================================
RunAll
========================================
Builder version: 4.56.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/hypertalk/CommandCougar.git
Reference: 1.1.1
Initialized empty Git repository in /host/spi-builder-workspace/.git/
hint: Using 'master' as the name for the initial branch. This default branch name
hint: is subject to change. To configure the initial branch name to use in all
hint: of your new repositories, which will suppress this warning, call:
hint:
hint: 	git config --global init.defaultBranch <name>
hint:
hint: Names commonly chosen instead of 'master' are 'main', 'trunk' and
hint: 'development'. The just-created branch can be renamed via this command:
hint:
hint: 	git branch -m <name>
From https://github.com/hypertalk/CommandCougar
 * tag               1.1.1      -> FETCH_HEAD
HEAD is now at 33b0211 Merge branch 'regexident-help-option'
Cloned https://github.com/hypertalk/CommandCougar.git
Revision (git rev-parse @):
33b0211120d2a4bd41c683516ec78cecc7c614cc
SUCCESS checkout https://github.com/hypertalk/CommandCougar.git at 1.1.1
========================================
Build
========================================
Selected platform:         linux
Swift version:             6.0
Building package at path:  $PWD
https://github.com/hypertalk/CommandCougar.git
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4609320-1":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:basic-6.0-latest swift build --triple x86_64-unknown-linux-gnu -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete 2>&1
basic-6.0-latest: Pulling from finestructure/spi-images
Digest: sha256:47d26c99ca4f1ac0a332c85fd5b13ff4390e72115219984a57a68fe9d1063a05
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:basic-6.0-latest
Building for debugging...
[0/2] Write sources
[1/2] Write swift-version-24593BA9C3E375BF.txt
[3/13] Compiling CommandCougar Option.swift
/host/spi-builder-workspace/Sources/CommandCougar/Option.swift:33:20: warning: static property 'help' is not concurrency-safe because non-'Sendable' type 'Option' may have shared mutable state; this is an error in the Swift 6 language mode
28 |
29 | /// A struct for describing a option that a command is allowed to take in
30 | public struct Option: FlagIndexable, CustomStringConvertible, Equatable {
   |               `- note: consider making struct 'Option' conform to the 'Sendable' protocol
31 |
32 | 	/// A static help description attached to each command
33 | 	public static let help = Option(
   |                    |- warning: static property 'help' is not concurrency-safe because non-'Sendable' type 'Option' may have shared mutable state; this is an error in the Swift 6 language mode
   |                    |- note: annotate 'help' with '@MainActor' if property should only be accessed from the main actor
   |                    `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
34 | 		flag: .both(short: "h", long: "help"),
35 | 		overview: "The help menu",
[4/13] Compiling CommandCougar Parameter.swift
[5/14] Compiling CommandCougar Extensions.swift
/host/spi-builder-workspace/Sources/CommandCougar/Extensions.swift:31:2: warning: 'internal' modifier is redundant for property declared in an internal extension
29 |
30 | 	/// The string value of self
31 | 	internal var asString: String {
   |  `- warning: 'internal' modifier is redundant for property declared in an internal extension
32 | 		return String(self)
33 | 	}
/host/spi-builder-workspace/Sources/CommandCougar/Extensions.swift:39:2: warning: 'internal' modifier is redundant for property declared in an internal extension
37 |
38 | 	/// The string value of self
39 | 	internal var asString: String {
   |  `- warning: 'internal' modifier is redundant for property declared in an internal extension
40 | 		return String(self)
41 | 	}
/host/spi-builder-workspace/Sources/CommandCougar/Extensions.swift:47:2: warning: 'internal' modifier is redundant for property declared in an internal extension
45 |
46 | 	/// The second element in the Collection
47 | 	internal var second: Self.Iterator.Element? {
   |  `- warning: 'internal' modifier is redundant for property declared in an internal extension
48 | 		var a = self.makeIterator()
49 | 		let _ = a.next()
/host/spi-builder-workspace/Sources/CommandCougar/Extensions.swift:54:2: warning: 'internal' modifier is redundant for property declared in an internal extension
52 |
53 | 	/// The third element in the Collection
54 | 	internal var third: Self.Iterator.Element? {
   |  `- warning: 'internal' modifier is redundant for property declared in an internal extension
55 | 		var a = self.makeIterator()
56 | 		let _ = a.next()
/host/spi-builder-workspace/Sources/CommandCougar/Flag.swift:35:2: warning: 'public' modifier is redundant for enum declared in a public extension
33 | 	/// - long: A long entry would be --verbose
34 | 	/// - both: Both flags are allowed
35 | 	public enum Flag: Equatable, CustomStringConvertible {
   |  `- warning: 'public' modifier is redundant for enum declared in a public extension
36 | 		case short(String)
37 | 		case long(String)
[6/14] Compiling CommandCougar Flag.swift
/host/spi-builder-workspace/Sources/CommandCougar/Extensions.swift:31:2: warning: 'internal' modifier is redundant for property declared in an internal extension
29 |
30 | 	/// The string value of self
31 | 	internal var asString: String {
   |  `- warning: 'internal' modifier is redundant for property declared in an internal extension
32 | 		return String(self)
33 | 	}
/host/spi-builder-workspace/Sources/CommandCougar/Extensions.swift:39:2: warning: 'internal' modifier is redundant for property declared in an internal extension
37 |
38 | 	/// The string value of self
39 | 	internal var asString: String {
   |  `- warning: 'internal' modifier is redundant for property declared in an internal extension
40 | 		return String(self)
41 | 	}
/host/spi-builder-workspace/Sources/CommandCougar/Extensions.swift:47:2: warning: 'internal' modifier is redundant for property declared in an internal extension
45 |
46 | 	/// The second element in the Collection
47 | 	internal var second: Self.Iterator.Element? {
   |  `- warning: 'internal' modifier is redundant for property declared in an internal extension
48 | 		var a = self.makeIterator()
49 | 		let _ = a.next()
/host/spi-builder-workspace/Sources/CommandCougar/Extensions.swift:54:2: warning: 'internal' modifier is redundant for property declared in an internal extension
52 |
53 | 	/// The third element in the Collection
54 | 	internal var third: Self.Iterator.Element? {
   |  `- warning: 'internal' modifier is redundant for property declared in an internal extension
55 | 		var a = self.makeIterator()
56 | 		let _ = a.next()
/host/spi-builder-workspace/Sources/CommandCougar/Flag.swift:35:2: warning: 'public' modifier is redundant for enum declared in a public extension
33 | 	/// - long: A long entry would be --verbose
34 | 	/// - both: Both flags are allowed
35 | 	public enum Flag: Equatable, CustomStringConvertible {
   |  `- warning: 'public' modifier is redundant for enum declared in a public extension
36 | 		case short(String)
37 | 		case long(String)
[7/14] Compiling CommandCougar FlagIndexable.swift
/host/spi-builder-workspace/Sources/CommandCougar/FlagIndexable.swift:42:2: warning: 'public' modifier is redundant for subscript declared in a public extension
40 | 	///
41 | 	/// - Parameter flagName: The flagName
42 | 	public subscript (flagName: String) -> Element? {
   |  `- warning: 'public' modifier is redundant for subscript declared in a public extension
43 | 		get {
44 | 			return first(where: { $0.flag == flagName })
/host/spi-builder-workspace/Sources/CommandCougar/FlagIndexable.swift:60:2: warning: 'public' modifier is redundant for subscript declared in a public extension
58 | 	///
59 | 	/// - Parameter flag: The flag
60 | 	public subscript (flag: Option.Flag) -> Element? {
   |  `- warning: 'public' modifier is redundant for subscript declared in a public extension
61 | 		get {
62 | 			return first(where: { $0.flag == flag })
/host/spi-builder-workspace/Sources/CommandCougar/FlagIndexable.swift:77:2: warning: 'public' modifier is redundant for subscript declared in a public extension
75 | 	///
76 | 	/// - Parameter flag: The flag
77 | 	public subscript (option: FlagIndexable) -> Element? {
   |  `- warning: 'public' modifier is redundant for subscript declared in a public extension
78 | 		get {
79 | 			return first(where: { $0.flag == option.flag })
/host/spi-builder-workspace/Sources/CommandCougar/FlagIndexable.swift:88:2: warning: 'public' modifier is redundant for instance method declared in a public extension
86 | 	/// - Parameter element: The FlagIndexable we are looking for
87 | 	/// - Returns: True if found
88 | 	public func contains(_ element: FlagIndexable) -> Bool {
   |  `- warning: 'public' modifier is redundant for instance method declared in a public extension
89 | 		return contains(where: { $0.flag == element.flag })
90 | 	}
[8/14] Compiling CommandCougar OptionEvaluation.swift
[9/14] Compiling CommandCougar ParameterEvaluation.swift
[10/14] Compiling CommandCougar Command.swift
/host/spi-builder-workspace/Sources/CommandCougar/Option.swift:33:20: warning: static property 'help' is not concurrency-safe because non-'Sendable' type 'Option' may have shared mutable state; this is an error in the Swift 6 language mode
28 |
29 | /// A struct for describing a option that a command is allowed to take in
30 | public struct Option: FlagIndexable, CustomStringConvertible, Equatable {
   |               `- note: consider making struct 'Option' conform to the 'Sendable' protocol
31 |
32 | 	/// A static help description attached to each command
33 | 	public static let help = Option(
   |                    |- warning: static property 'help' is not concurrency-safe because non-'Sendable' type 'Option' may have shared mutable state; this is an error in the Swift 6 language mode
   |                    |- note: annotate 'help' with '@MainActor' if property should only be accessed from the main actor
   |                    `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
34 | 		flag: .both(short: "h", long: "help"),
35 | 		overview: "The help menu",
[11/14] Compiling CommandCougar CommandCougar.swift
/host/spi-builder-workspace/Sources/CommandCougar/Option.swift:33:20: warning: static property 'help' is not concurrency-safe because non-'Sendable' type 'Option' may have shared mutable state; this is an error in the Swift 6 language mode
28 |
29 | /// A struct for describing a option that a command is allowed to take in
30 | public struct Option: FlagIndexable, CustomStringConvertible, Equatable {
   |               `- note: consider making struct 'Option' conform to the 'Sendable' protocol
31 |
32 | 	/// A static help description attached to each command
33 | 	public static let help = Option(
   |                    |- warning: static property 'help' is not concurrency-safe because non-'Sendable' type 'Option' may have shared mutable state; this is an error in the Swift 6 language mode
   |                    |- note: annotate 'help' with '@MainActor' if property should only be accessed from the main actor
   |                    `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
34 | 		flag: .both(short: "h", long: "help"),
35 | 		overview: "The help menu",
[12/14] Emitting module CommandCougar
/host/spi-builder-workspace/Sources/CommandCougar/CommandIndexable.swift:34:2: warning: 'public' modifier is redundant for subscript declared in a public extension
32 |
33 | public extension Array where Element: CommandIndexable {
34 | 	public subscript(commandName: String) -> Element? {
   |  `- warning: 'public' modifier is redundant for subscript declared in a public extension
35 | 		get {
36 | 			return first(where: { $0.name == commandName })
/host/spi-builder-workspace/Sources/CommandCougar/Extensions.swift:31:2: warning: 'internal' modifier is redundant for property declared in an internal extension
29 |
30 | 	/// The string value of self
31 | 	internal var asString: String {
   |  `- warning: 'internal' modifier is redundant for property declared in an internal extension
32 | 		return String(self)
33 | 	}
/host/spi-builder-workspace/Sources/CommandCougar/Extensions.swift:39:2: warning: 'internal' modifier is redundant for property declared in an internal extension
37 |
38 | 	/// The string value of self
39 | 	internal var asString: String {
   |  `- warning: 'internal' modifier is redundant for property declared in an internal extension
40 | 		return String(self)
41 | 	}
/host/spi-builder-workspace/Sources/CommandCougar/Extensions.swift:47:2: warning: 'internal' modifier is redundant for property declared in an internal extension
45 |
46 | 	/// The second element in the Collection
47 | 	internal var second: Self.Iterator.Element? {
   |  `- warning: 'internal' modifier is redundant for property declared in an internal extension
48 | 		var a = self.makeIterator()
49 | 		let _ = a.next()
/host/spi-builder-workspace/Sources/CommandCougar/Extensions.swift:54:2: warning: 'internal' modifier is redundant for property declared in an internal extension
52 |
53 | 	/// The third element in the Collection
54 | 	internal var third: Self.Iterator.Element? {
   |  `- warning: 'internal' modifier is redundant for property declared in an internal extension
55 | 		var a = self.makeIterator()
56 | 		let _ = a.next()
/host/spi-builder-workspace/Sources/CommandCougar/Flag.swift:35:2: warning: 'public' modifier is redundant for enum declared in a public extension
33 | 	/// - long: A long entry would be --verbose
34 | 	/// - both: Both flags are allowed
35 | 	public enum Flag: Equatable, CustomStringConvertible {
   |  `- warning: 'public' modifier is redundant for enum declared in a public extension
36 | 		case short(String)
37 | 		case long(String)
/host/spi-builder-workspace/Sources/CommandCougar/FlagIndexable.swift:42:2: warning: 'public' modifier is redundant for subscript declared in a public extension
40 | 	///
41 | 	/// - Parameter flagName: The flagName
42 | 	public subscript (flagName: String) -> Element? {
   |  `- warning: 'public' modifier is redundant for subscript declared in a public extension
43 | 		get {
44 | 			return first(where: { $0.flag == flagName })
/host/spi-builder-workspace/Sources/CommandCougar/FlagIndexable.swift:60:2: warning: 'public' modifier is redundant for subscript declared in a public extension
58 | 	///
59 | 	/// - Parameter flag: The flag
60 | 	public subscript (flag: Option.Flag) -> Element? {
   |  `- warning: 'public' modifier is redundant for subscript declared in a public extension
61 | 		get {
62 | 			return first(where: { $0.flag == flag })
/host/spi-builder-workspace/Sources/CommandCougar/FlagIndexable.swift:77:2: warning: 'public' modifier is redundant for subscript declared in a public extension
75 | 	///
76 | 	/// - Parameter flag: The flag
77 | 	public subscript (option: FlagIndexable) -> Element? {
   |  `- warning: 'public' modifier is redundant for subscript declared in a public extension
78 | 		get {
79 | 			return first(where: { $0.flag == option.flag })
/host/spi-builder-workspace/Sources/CommandCougar/FlagIndexable.swift:88:2: warning: 'public' modifier is redundant for instance method declared in a public extension
86 | 	/// - Parameter element: The FlagIndexable we are looking for
87 | 	/// - Returns: True if found
88 | 	public func contains(_ element: FlagIndexable) -> Bool {
   |  `- warning: 'public' modifier is redundant for instance method declared in a public extension
89 | 		return contains(where: { $0.flag == element.flag })
90 | 	}
/host/spi-builder-workspace/Sources/CommandCougar/Option.swift:33:20: warning: static property 'help' is not concurrency-safe because non-'Sendable' type 'Option' may have shared mutable state; this is an error in the Swift 6 language mode
28 |
29 | /// A struct for describing a option that a command is allowed to take in
30 | public struct Option: FlagIndexable, CustomStringConvertible, Equatable {
   |               `- note: consider making struct 'Option' conform to the 'Sendable' protocol
31 |
32 | 	/// A static help description attached to each command
33 | 	public static let help = Option(
   |                    |- warning: static property 'help' is not concurrency-safe because non-'Sendable' type 'Option' may have shared mutable state; this is an error in the Swift 6 language mode
   |                    |- note: annotate 'help' with '@MainActor' if property should only be accessed from the main actor
   |                    `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
34 | 		flag: .both(short: "h", long: "help"),
35 | 		overview: "The help menu",
[13/14] Compiling CommandCougar CommandEvaluation.swift
/host/spi-builder-workspace/Sources/CommandCougar/Option.swift:33:20: warning: static property 'help' is not concurrency-safe because non-'Sendable' type 'Option' may have shared mutable state; this is an error in the Swift 6 language mode
28 |
29 | /// A struct for describing a option that a command is allowed to take in
30 | public struct Option: FlagIndexable, CustomStringConvertible, Equatable {
   |               `- note: consider making struct 'Option' conform to the 'Sendable' protocol
31 |
32 | 	/// A static help description attached to each command
33 | 	public static let help = Option(
   |                    |- warning: static property 'help' is not concurrency-safe because non-'Sendable' type 'Option' may have shared mutable state; this is an error in the Swift 6 language mode
   |                    |- note: annotate 'help' with '@MainActor' if property should only be accessed from the main actor
   |                    `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
34 | 		flag: .both(short: "h", long: "help"),
35 | 		overview: "The help menu",
/host/spi-builder-workspace/Sources/CommandCougar/CommandIndexable.swift:34:2: warning: 'public' modifier is redundant for subscript declared in a public extension
32 |
33 | public extension Array where Element: CommandIndexable {
34 | 	public subscript(commandName: String) -> Element? {
   |  `- warning: 'public' modifier is redundant for subscript declared in a public extension
35 | 		get {
36 | 			return first(where: { $0.name == commandName })
[14/14] Compiling CommandCougar CommandIndexable.swift
/host/spi-builder-workspace/Sources/CommandCougar/Option.swift:33:20: warning: static property 'help' is not concurrency-safe because non-'Sendable' type 'Option' may have shared mutable state; this is an error in the Swift 6 language mode
28 |
29 | /// A struct for describing a option that a command is allowed to take in
30 | public struct Option: FlagIndexable, CustomStringConvertible, Equatable {
   |               `- note: consider making struct 'Option' conform to the 'Sendable' protocol
31 |
32 | 	/// A static help description attached to each command
33 | 	public static let help = Option(
   |                    |- warning: static property 'help' is not concurrency-safe because non-'Sendable' type 'Option' may have shared mutable state; this is an error in the Swift 6 language mode
   |                    |- note: annotate 'help' with '@MainActor' if property should only be accessed from the main actor
   |                    `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
34 | 		flag: .both(short: "h", long: "help"),
35 | 		overview: "The help menu",
/host/spi-builder-workspace/Sources/CommandCougar/CommandIndexable.swift:34:2: warning: 'public' modifier is redundant for subscript declared in a public extension
32 |
33 | public extension Array where Element: CommandIndexable {
34 | 	public subscript(commandName: String) -> Element? {
   |  `- warning: 'public' modifier is redundant for subscript declared in a public extension
35 | 		get {
36 | 			return first(where: { $0.name == commandName })
Build complete! (13.22s)
Build complete.
{
  "dependencies" : [
  ],
  "manifest_display_name" : "CommandCougar",
  "name" : "CommandCougar",
  "path" : "/host/spi-builder-workspace",
  "platforms" : [
  ],
  "products" : [
    {
      "name" : "CommandCougar",
      "targets" : [
        "CommandCougar"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "CommandCougarTests",
      "module_type" : "SwiftTarget",
      "name" : "CommandCougarTests",
      "path" : "Tests/CommandCougarTests",
      "sources" : [
        "CommandCougarTests.swift"
      ],
      "target_dependencies" : [
        "CommandCougar"
      ],
      "type" : "test"
    },
    {
      "c99name" : "CommandCougar",
      "module_type" : "SwiftTarget",
      "name" : "CommandCougar",
      "path" : "Sources/CommandCougar",
      "product_memberships" : [
        "CommandCougar"
      ],
      "sources" : [
        "Command.swift",
        "CommandCougar.swift",
        "CommandEvaluation.swift",
        "CommandIndexable.swift",
        "Extensions.swift",
        "Flag.swift",
        "FlagIndexable.swift",
        "Option.swift",
        "OptionEvaluation.swift",
        "Parameter.swift",
        "ParameterEvaluation.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "4.0"
}
basic-6.0-latest: Pulling from finestructure/spi-images
Digest: sha256:47d26c99ca4f1ac0a332c85fd5b13ff4390e72115219984a57a68fe9d1063a05
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:basic-6.0-latest
Done.