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 master (2f209d), with Swift 6.0 for Linux on 1 Nov 2024 02:10:10 UTC.

Swift 6 data race errors: 1

Build Command

bash -c docker run --pull=always --rm -v "checkouts-4606859-2":/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: master
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
 * branch            master     -> FETCH_HEAD
 * [new branch]      master     -> origin/master
HEAD is now at 2f209d1 Merge pull request #7 from mrlynn/master
Cloned https://github.com/hypertalk/CommandCougar.git
Revision (git rev-parse @):
2f209d174f07f9c19e80413d53e952a67b4c40eb
SUCCESS checkout https://github.com/hypertalk/CommandCougar.git at master
========================================
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-4606859-2":/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 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)
[4/13] 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)
[5/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",
[6/14] Compiling CommandCougar Parameter.swift
[7/14] Compiling CommandCougar OptionEvaluation.swift
[8/14] Compiling CommandCougar ParameterEvaluation.swift
[9/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 })
[10/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 })
[11/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",
[12/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",
[13/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",
[14/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 | 	}
Build complete! (17.49s)
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.