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 SwiftyMarkdown, reference 1.2.4 (dde451), with Swift 6.0 for macOS (SPM) on 2 Nov 2024 10:28:44 UTC.

Swift 6 data race errors: 7

Build Command

env DEVELOPER_DIR=/Applications/Xcode-16.1.0.app xcrun swift build --arch arm64 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete

Build Log

========================================
RunAll
========================================
Builder version: 4.56.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/simonfairbairn/SwiftyMarkdown.git
Reference: 1.2.4
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/simonfairbairn/SwiftyMarkdown
 * tag               1.2.4      -> FETCH_HEAD
HEAD is now at dde451a Merge branch 'release/1.2.4'
Cloned https://github.com/simonfairbairn/SwiftyMarkdown.git
Revision (git rev-parse @):
dde451ab4ed9b77b328e21baa471fdfa0cf61369
SUCCESS checkout https://github.com/simonfairbairn/SwiftyMarkdown.git at 1.2.4
========================================
ResolveProductDependencies
========================================
Resolving dependencies ...
{
  "identity": ".resolve-product-dependencies",
  "name": "resolve-dependencies",
  "url": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies",
  "version": "unspecified",
  "path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies",
  "dependencies": [
    {
      "identity": "swiftymarkdown",
      "name": "SwiftyMarkdown",
      "url": "https://github.com/simonfairbairn/SwiftyMarkdown.git",
      "version": "unspecified",
      "path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/SwiftyMarkdown",
      "dependencies": [
      ]
    }
  ]
}
Fetching https://github.com/simonfairbairn/SwiftyMarkdown.git
[1/2121] Fetching swiftymarkdown
Fetched https://github.com/simonfairbairn/SwiftyMarkdown.git from cache (1.72s)
Creating working copy for https://github.com/simonfairbairn/SwiftyMarkdown.git
Working copy of https://github.com/simonfairbairn/SwiftyMarkdown.git resolved at 1.2.4 (dde451a)
warning: '.resolve-product-dependencies': dependency 'swiftymarkdown' is not used by any target
Found 0 product dependencies
========================================
Build
========================================
Selected platform:         macosSpm
Swift version:             6.0
Building package at path:  $PWD
https://github.com/simonfairbairn/SwiftyMarkdown.git
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-16.1.0.app xcrun swift build --arch arm64 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete
Building for debugging...
[0/2] Write sources
[1/2] Write swift-version--7754E27361AE5C74.txt
[3/12] Compiling SwiftyMarkdown SwiftyLineProcessor.swift
/Users/admin/builder/spi-builder-workspace/Sources/SwiftyMarkdown/SwiftyLineProcessor.swift:13:21: warning: static property 'subsystem' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 11 |
 12 | extension OSLog {
 13 | 	private static var subsystem = "SwiftyLineProcessor"
    |                     |- warning: static property 'subsystem' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |                     |- note: convert 'subsystem' to a 'let' constant to make 'Sendable' shared state immutable
    |                     |- note: annotate 'subsystem' 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
 14 | 	static let swiftyLineProcessorPerformance = OSLog(subsystem: subsystem, category: "Swifty Line Processor Performance")
 15 | }
[4/12] Compiling SwiftyMarkdown PerfomanceLog.swift
[5/12] Emitting module SwiftyMarkdown
/Users/admin/builder/spi-builder-workspace/Sources/SwiftyMarkdown/SwiftyLineProcessor.swift:13:21: warning: static property 'subsystem' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 11 |
 12 | extension OSLog {
 13 | 	private static var subsystem = "SwiftyLineProcessor"
    |                     |- warning: static property 'subsystem' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |                     |- note: convert 'subsystem' to a 'let' constant to make 'Sendable' shared state immutable
    |                     |- note: annotate 'subsystem' 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
 14 | 	static let swiftyLineProcessorPerformance = OSLog(subsystem: subsystem, category: "Swifty Line Processor Performance")
 15 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftyMarkdown/SwiftyMarkdown.swift:16:21: warning: static property 'subsystem' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 14 |
 15 | extension OSLog {
 16 | 	private static var subsystem = "SwiftyMarkdown"
    |                     |- warning: static property 'subsystem' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |                     |- note: convert 'subsystem' to a 'let' constant to make 'Sendable' shared state immutable
    |                     |- note: annotate 'subsystem' 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
 17 | 	static let swiftyMarkdownPerformance = OSLog(subsystem: subsystem, category: "Swifty Markdown Performance")
 18 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftyMarkdown/SwiftyMarkdown.swift:154:20: warning: static property 'frontMatterRules' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
152 | @objc open class SwiftyMarkdown: NSObject {
153 |
154 | 	static public var frontMatterRules = [
    |                    |- warning: static property 'frontMatterRules' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |                    |- note: convert 'frontMatterRules' to a 'let' constant to make 'Sendable' shared state immutable
    |                    |- note: annotate 'frontMatterRules' 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
155 | 		FrontMatterRule(openTag: "---", closeTag: "---", keyValueSeparator: ":")
156 | 	]
/Users/admin/builder/spi-builder-workspace/Sources/SwiftyMarkdown/SwiftyMarkdown.swift:158:20: warning: static property 'lineRules' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
156 | 	]
157 |
158 | 	static public var lineRules = [
    |                    |- warning: static property 'lineRules' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |                    |- note: convert 'lineRules' to a 'let' constant to make 'Sendable' shared state immutable
    |                    |- note: annotate 'lineRules' 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
159 | 		LineRule(token: "=", type: MarkdownLineStyle.previousH1, removeFrom: .entireLine, changeAppliesTo: .previous),
160 | 		LineRule(token: "-", type: MarkdownLineStyle.previousH2, removeFrom: .entireLine, changeAppliesTo: .previous),
/Users/admin/builder/spi-builder-workspace/Sources/SwiftyMarkdown/SwiftyMarkdown.swift:181:20: warning: static property 'characterRules' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
179 | 	]
180 |
181 | 	static public var characterRules = [
    |                    |- warning: static property 'characterRules' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |                    |- note: convert 'characterRules' to a 'let' constant to make 'Sendable' shared state immutable
    |                    |- note: annotate 'characterRules' 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
182 | 		CharacterRule(primaryTag: CharacterRuleTag(tag: "![", type: .open), otherTags: [
183 | 				CharacterRuleTag(tag: "]", type: .close),
/Users/admin/builder/spi-builder-workspace/Sources/SwiftyMarkdown/SwiftyScanner.swift:19:21: warning: static property 'subsystem' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 17 |
 18 | extension OSLog {
 19 | 	private static var subsystem = "SwiftyScanner"
    |                     |- warning: static property 'subsystem' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |                     |- note: convert 'subsystem' to a 'let' constant to make 'Sendable' shared state immutable
    |                     |- note: annotate 'subsystem' 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
 20 | 	static let swiftyScanner = OSLog(subsystem: subsystem, category: "Swifty Scanner Scanner")
 21 | 	static let swiftyScannerPerformance = OSLog(subsystem: subsystem, category: "Swifty Scanner Scanner Peformance")
/Users/admin/builder/spi-builder-workspace/Sources/SwiftyMarkdown/SwiftyTokeniser.swift:12:21: warning: static property 'subsystem' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 10 |
 11 | extension OSLog {
 12 | 	private static var subsystem = "SwiftyTokeniser"
    |                     |- warning: static property 'subsystem' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |                     |- note: convert 'subsystem' to a 'let' constant to make 'Sendable' shared state immutable
    |                     |- note: annotate 'subsystem' 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
 13 | 	static let tokenising = OSLog(subsystem: subsystem, category: "Tokenising")
 14 | 	static let styling = OSLog(subsystem: subsystem, category: "Styling")
[6/12] Compiling SwiftyMarkdown String+SwiftyMarkdown.swift
[7/12] Compiling SwiftyMarkdown CharacterRule.swift
[8/13] Compiling SwiftyMarkdown SwiftyMarkdown+iOS.swift
[9/13] Compiling SwiftyMarkdown SwiftyScanner.swift
/Users/admin/builder/spi-builder-workspace/Sources/SwiftyMarkdown/SwiftyScanner.swift:19:21: warning: static property 'subsystem' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 17 |
 18 | extension OSLog {
 19 | 	private static var subsystem = "SwiftyScanner"
    |                     |- warning: static property 'subsystem' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |                     |- note: convert 'subsystem' to a 'let' constant to make 'Sendable' shared state immutable
    |                     |- note: annotate 'subsystem' 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
 20 | 	static let swiftyScanner = OSLog(subsystem: subsystem, category: "Swifty Scanner Scanner")
 21 | 	static let swiftyScannerPerformance = OSLog(subsystem: subsystem, category: "Swifty Scanner Scanner Peformance")
[10/13] Compiling SwiftyMarkdown Token.swift
[11/13] Compiling SwiftyMarkdown SwiftyTokeniser.swift
/Users/admin/builder/spi-builder-workspace/Sources/SwiftyMarkdown/SwiftyTokeniser.swift:12:21: warning: static property 'subsystem' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 10 |
 11 | extension OSLog {
 12 | 	private static var subsystem = "SwiftyTokeniser"
    |                     |- warning: static property 'subsystem' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |                     |- note: convert 'subsystem' to a 'let' constant to make 'Sendable' shared state immutable
    |                     |- note: annotate 'subsystem' 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
 13 | 	static let tokenising = OSLog(subsystem: subsystem, category: "Tokenising")
 14 | 	static let styling = OSLog(subsystem: subsystem, category: "Styling")
[12/13] Compiling SwiftyMarkdown SwiftyMarkdown+macOS.swift
[13/13] Compiling SwiftyMarkdown SwiftyMarkdown.swift
/Users/admin/builder/spi-builder-workspace/Sources/SwiftyMarkdown/SwiftyMarkdown.swift:16:21: warning: static property 'subsystem' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 14 |
 15 | extension OSLog {
 16 | 	private static var subsystem = "SwiftyMarkdown"
    |                     |- warning: static property 'subsystem' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |                     |- note: convert 'subsystem' to a 'let' constant to make 'Sendable' shared state immutable
    |                     |- note: annotate 'subsystem' 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
 17 | 	static let swiftyMarkdownPerformance = OSLog(subsystem: subsystem, category: "Swifty Markdown Performance")
 18 | }
/Users/admin/builder/spi-builder-workspace/Sources/SwiftyMarkdown/SwiftyMarkdown.swift:154:20: warning: static property 'frontMatterRules' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
152 | @objc open class SwiftyMarkdown: NSObject {
153 |
154 | 	static public var frontMatterRules = [
    |                    |- warning: static property 'frontMatterRules' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |                    |- note: convert 'frontMatterRules' to a 'let' constant to make 'Sendable' shared state immutable
    |                    |- note: annotate 'frontMatterRules' 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
155 | 		FrontMatterRule(openTag: "---", closeTag: "---", keyValueSeparator: ":")
156 | 	]
/Users/admin/builder/spi-builder-workspace/Sources/SwiftyMarkdown/SwiftyMarkdown.swift:158:20: warning: static property 'lineRules' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
156 | 	]
157 |
158 | 	static public var lineRules = [
    |                    |- warning: static property 'lineRules' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |                    |- note: convert 'lineRules' to a 'let' constant to make 'Sendable' shared state immutable
    |                    |- note: annotate 'lineRules' 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
159 | 		LineRule(token: "=", type: MarkdownLineStyle.previousH1, removeFrom: .entireLine, changeAppliesTo: .previous),
160 | 		LineRule(token: "-", type: MarkdownLineStyle.previousH2, removeFrom: .entireLine, changeAppliesTo: .previous),
/Users/admin/builder/spi-builder-workspace/Sources/SwiftyMarkdown/SwiftyMarkdown.swift:181:20: warning: static property 'characterRules' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
179 | 	]
180 |
181 | 	static public var characterRules = [
    |                    |- warning: static property 'characterRules' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |                    |- note: convert 'characterRules' to a 'let' constant to make 'Sendable' shared state immutable
    |                    |- note: annotate 'characterRules' 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
182 | 		CharacterRule(primaryTag: CharacterRuleTag(tag: "![", type: .open), otherTags: [
183 | 				CharacterRuleTag(tag: "]", type: .close),
Build complete! (17.28s)
Build complete.
{
  "dependencies" : [
  ],
  "manifest_display_name" : "SwiftyMarkdown",
  "name" : "SwiftyMarkdown",
  "path" : "/Users/admin/builder/spi-builder-workspace",
  "platforms" : [
    {
      "name" : "ios",
      "version" : "11.0"
    },
    {
      "name" : "tvos",
      "version" : "11.0"
    },
    {
      "name" : "macos",
      "version" : "10.12"
    },
    {
      "name" : "watchos",
      "version" : "4.0"
    }
  ],
  "products" : [
    {
      "name" : "SwiftyMarkdown",
      "targets" : [
        "SwiftyMarkdown"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "SwiftyMarkdownTests",
      "module_type" : "SwiftTarget",
      "name" : "SwiftyMarkdownTests",
      "path" : "Tests/SwiftyMarkdownTests",
      "sources" : [
        "SwiftyMarkdownAttributedStringTests.swift",
        "SwiftyMarkdownCharacterTests.swift",
        "SwiftyMarkdownLineTests.swift",
        "SwiftyMarkdownLinkTests.swift",
        "SwiftyMarkdownPerformanceTests.swift",
        "XCTest+SwiftyMarkdown.swift"
      ],
      "target_dependencies" : [
        "SwiftyMarkdown"
      ],
      "type" : "test"
    },
    {
      "c99name" : "SwiftyMarkdown",
      "module_type" : "SwiftTarget",
      "name" : "SwiftyMarkdown",
      "path" : "Sources/SwiftyMarkdown",
      "product_memberships" : [
        "SwiftyMarkdown"
      ],
      "sources" : [
        "CharacterRule.swift",
        "PerfomanceLog.swift",
        "String+SwiftyMarkdown.swift",
        "SwiftyLineProcessor.swift",
        "SwiftyMarkdown+iOS.swift",
        "SwiftyMarkdown+macOS.swift",
        "SwiftyMarkdown.swift",
        "SwiftyScanner.swift",
        "SwiftyTokeniser.swift",
        "Token.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.1"
}
Done.