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 SwiftPowerAssert, reference 0.12.0 (2fa10d), with Swift 6.0 for macOS (SPM) on 1 Nov 2024 03:20:13 UTC.

Swift 6 data race errors: 1

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/kishikawakatsumi/swift-power-assert.git
Reference: 0.12.0
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/kishikawakatsumi/swift-power-assert
 * tag               0.12.0     -> FETCH_HEAD
HEAD is now at 2fa10dc Merge pull request #257 from kishikawakatsumi/refactor2
Cloned https://github.com/kishikawakatsumi/swift-power-assert.git
Revision (git rev-parse @):
2fa10dcbbff807fad73b4e2469b43300a50e9bbc
SUCCESS checkout https://github.com/kishikawakatsumi/swift-power-assert.git at 0.12.0
Fetching https://github.com/apple/swift-syntax.git
[1/66388] Fetching swift-syntax
Fetched https://github.com/apple/swift-syntax.git from cache (4.31s)
Computing version for https://github.com/apple/swift-syntax.git
Computed https://github.com/apple/swift-syntax.git at 509.0.0-swift-DEVELOPMENT-SNAPSHOT-2023-08-07-a (3.44s)
Creating working copy for https://github.com/apple/swift-syntax.git
Working copy of https://github.com/apple/swift-syntax.git resolved at 509.0.0-swift-DEVELOPMENT-SNAPSHOT-2023-08-07-a
========================================
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": "swift-power-assert",
      "name": "SwiftPowerAssert",
      "url": "https://github.com/kishikawakatsumi/swift-power-assert.git",
      "version": "unspecified",
      "path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/swift-power-assert",
      "dependencies": [
        {
          "identity": "swift-syntax",
          "name": "swift-syntax",
          "url": "https://github.com/apple/swift-syntax.git",
          "version": "509.1.1",
          "path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/swift-syntax",
          "dependencies": [
          ]
        }
      ]
    }
  ]
}
Fetching https://github.com/kishikawakatsumi/swift-power-assert.git
[1/5079] Fetching swift-power-assert
Fetched https://github.com/kishikawakatsumi/swift-power-assert.git from cache (1.30s)
Fetching https://github.com/apple/swift-syntax.git from cache
Fetched https://github.com/apple/swift-syntax.git from cache (0.83s)
Computing version for https://github.com/apple/swift-syntax.git
Computed https://github.com/apple/swift-syntax.git at 509.1.1 (0.75s)
Creating working copy for https://github.com/apple/swift-syntax.git
Working copy of https://github.com/apple/swift-syntax.git resolved at 509.1.1
Creating working copy for https://github.com/kishikawakatsumi/swift-power-assert.git
Working copy of https://github.com/kishikawakatsumi/swift-power-assert.git resolved at 0.12.0 (2fa10dc)
warning: '.resolve-product-dependencies': dependency 'swift-power-assert' is not used by any target
Found 1 product dependencies
  - swift-syntax
========================================
Build
========================================
Selected platform:         macosSpm
Swift version:             6.0
Building package at path:  $PWD
https://github.com/kishikawakatsumi/swift-power-assert.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/18] Write sources
[15/18] Write swift-version--7754E27361AE5C74.txt
[17/70] Compiling SwiftSyntax RawSyntaxTokenView.swift
[18/70] Compiling SwiftSyntax SourceLength.swift
[19/70] Compiling SwiftSyntax SourceLocation.swift
[20/70] Compiling SwiftSyntax SourcePresence.swift
[21/70] Compiling SwiftSyntax SwiftSyntaxCompatibility.swift
[22/75] Compiling SwiftSyntax Syntax.swift
[23/75] Compiling SwiftSyntax SyntaxArena.swift
[24/75] Compiling SwiftSyntax SyntaxChildren.swift
[25/75] Compiling SwiftSyntax SyntaxCollection.swift
[26/75] Compiling SwiftSyntax SyntaxData.swift
[27/75] Compiling StringWidth CodePointWidth.swift
[28/75] Compiling StringWidth StringWidth.swift
[29/75] Emitting module StringWidth
[30/75] Compiling StringWidth CodePointWidth.swift
[31/75] Emitting module StringWidth
[32/75] Compiling StringWidth StringWidth.swift
[33/75] Compiling SwiftSyntax SyntaxAnyVisitor.swift
[34/75] Compiling SwiftSyntax SyntaxBaseNodes.swift
[35/75] Compiling SwiftSyntax SyntaxCollections.swift
[36/75] Compiling SwiftSyntax SyntaxEnum.swift
[37/75] Compiling SwiftSyntax SyntaxKind.swift
[38/75] Emitting module SwiftSyntax
[39/75] Compiling SwiftSyntax Utils.swift
[40/75] Compiling SwiftSyntax ChildNameForKeyPath.swift
[41/75] Compiling SwiftSyntax Keyword.swift
[42/75] Compiling SwiftSyntax RenamedChildrenCompatibility.swift
[43/75] Compiling SwiftSyntax RenamedNodesCompatibility.swift
[44/75] Compiling SwiftSyntax AbsolutePosition.swift
[45/75] Compiling SwiftSyntax Assert.swift
[46/75] Compiling SwiftSyntax BumpPtrAllocator.swift
[47/75] Compiling SwiftSyntax CommonAncestor.swift
[48/75] Compiling SwiftSyntax Convenience.swift
[49/75] Compiling SwiftSyntax SyntaxText.swift
[50/75] Compiling SwiftSyntax SyntaxTreeViewMode.swift
[51/75] Compiling SwiftSyntax TokenDiagnostic.swift
[52/75] Compiling SwiftSyntax TokenSyntax.swift
[53/75] Compiling SwiftSyntax Trivia.swift
[54/75] Compiling SwiftSyntax Tokens.swift
[55/75] Compiling SwiftSyntax TriviaPieces.swift
[56/75] Compiling SwiftSyntax RawSyntaxNodes.swift
[57/75] Compiling SwiftSyntax RawSyntaxValidation.swift
[58/75] Compiling SwiftSyntax SyntaxDeclNodes.swift
[59/75] Compiling SwiftSyntax MemoryLayout.swift
[60/75] Compiling SwiftSyntax MissingNodeInitializers.swift
[61/75] Compiling SwiftSyntax RawSyntax.swift
[62/75] Compiling SwiftSyntax RawSyntaxLayoutView.swift
[63/75] Compiling SwiftSyntax RawSyntaxNodeProtocol.swift
[64/75] Compiling SwiftSyntax SyntaxRewriter.swift
[65/75] Compiling SwiftSyntax SyntaxTraits.swift
[66/75] Compiling SwiftSyntax SyntaxTransform.swift
[67/75] Compiling SwiftSyntax SyntaxVisitor.swift
[68/75] Compiling SwiftSyntax TokenKind.swift
[69/75] Compiling SwiftSyntax SyntaxExprNodes.swift
[70/75] Compiling SwiftSyntax SyntaxNodes.swift
[71/75] Compiling SwiftSyntax SyntaxPatternNodes.swift
[72/75] Compiling SwiftSyntax SyntaxStmtNodes.swift
[73/75] Compiling SwiftSyntax SyntaxTypeNodes.swift
[74/126] Compiling SwiftBasicFormat Trivia+FormatExtensions.swift
[75/126] Compiling SwiftBasicFormat SyntaxProtocol+Formatted.swift
[76/126] Compiling SwiftBasicFormat Syntax+Extensions.swift
[77/126] Compiling SwiftDiagnostics FixIt.swift
[78/126] Compiling SwiftDiagnostics GroupedDiagnostics.swift
[79/126] Compiling SwiftDiagnostics Note.swift
[80/126] Compiling SwiftDiagnostics Message.swift
[81/126] Compiling SwiftDiagnostics Diagnostic.swift
[82/126] Compiling SwiftDiagnostics Convenience.swift
[83/126] Emitting module SwiftDiagnostics
[84/126] Compiling SwiftDiagnostics DiagnosticsFormatter.swift
[85/126] Emitting module SwiftBasicFormat
[86/126] Compiling SwiftBasicFormat BasicFormat.swift
[87/126] Compiling SwiftParser UnicodeScalarExtensions.swift
[88/126] Compiling SwiftParser Lookahead.swift
[89/126] Compiling SwiftParser LoopProgressCondition.swift
[90/126] Compiling SwiftParser Modifiers.swift
[91/130] Compiling SwiftParser Lexeme.swift
[92/130] Compiling SwiftParser LexemeSequence.swift
[93/130] Compiling SwiftParser Lexer.swift
[94/130] Compiling SwiftParser RegexLiteralLexer.swift
[95/130] Compiling SwiftParser Names.swift
[96/130] Compiling SwiftParser Nominals.swift
[97/130] Compiling SwiftParser Parameters.swift
[98/130] Compiling SwiftParser ParseSourceFile.swift
[99/130] Compiling SwiftParser Statements.swift
[100/130] Compiling SwiftParser StringLiteralRepresentedLiteralValue.swift
[101/130] Compiling SwiftParser StringLiterals.swift
[102/130] Compiling SwiftParser SwiftParserCompatibility.swift
[103/130] Compiling SwiftParser Parser.swift
[104/130] Compiling SwiftParser Patterns.swift
[105/130] Compiling SwiftParser Recovery.swift
[106/130] Compiling SwiftParser Specifiers.swift
[107/130] Compiling SwiftParser TokenSpecSet.swift
[108/130] Compiling SwiftParser TopLevel.swift
[109/130] Compiling SwiftParser TriviaParser.swift
[110/130] Compiling SwiftParser Types.swift
[111/130] Compiling SwiftParser SyntaxUtils.swift
[112/130] Compiling SwiftParser TokenConsumer.swift
[113/130] Compiling SwiftParser TokenPrecedence.swift
[114/130] Compiling SwiftParser TokenSpec.swift
[115/130] Compiling SwiftParser IsLexerClassified.swift
[116/130] Compiling SwiftParser LayoutNodes+Parsable.swift
[117/130] Compiling SwiftParser Parser+TokenSpecSet.swift
[118/130] Compiling SwiftParser TokenSpecStaticMembers.swift
[119/130] Compiling SwiftParser Attributes.swift
[120/130] Compiling SwiftParser Availability.swift
[121/130] Compiling SwiftParser CharacterInfo.swift
[122/130] Compiling SwiftParser CollectionNodes+Parsable.swift
[123/130] Compiling SwiftParser Declarations.swift
[124/130] Emitting module SwiftParser
[125/130] Compiling SwiftParser Directives.swift
[126/130] Compiling SwiftParser Expressions.swift
[127/130] Compiling SwiftParser IncrementalParseTransition.swift
[128/130] Compiling SwiftParser Cursor.swift
[129/153] Compiling SwiftParserDiagnostics SyntaxKindNameForDiagnostics.swift
[130/154] Compiling SwiftOperators OperatorTable.swift
[131/154] Compiling SwiftOperators PrecedenceGroup.swift
[132/155] Compiling SwiftParserDiagnostics TokenNameForDiagnostics.swift
[133/155] Compiling SwiftOperators SyntaxSynthesis.swift
[134/155] Compiling SwiftParserDiagnostics PresenceUtils.swift
[135/155] Compiling SwiftOperators PrecedenceGraph.swift
[136/155] Compiling SwiftOperators OperatorTable+Semantics.swift
[137/155] Compiling SwiftOperators OperatorTable+Defaults.swift
[138/155] Compiling SwiftOperators Operator.swift
[139/155] Compiling SwiftOperators OperatorError.swift
[140/155] Compiling SwiftOperators OperatorError+Diagnostics.swift
[141/155] Emitting module SwiftOperators
[142/155] Compiling SwiftOperators OperatorTable+Folding.swift
[143/155] Compiling SwiftParserDiagnostics Utils.swift
[144/155] Compiling SwiftParserDiagnostics ChildNameForDiagnostics.swift
[145/155] Compiling SwiftParserDiagnostics SyntaxExtensions.swift
[146/155] Compiling SwiftParserDiagnostics ParserDiagnosticMessages.swift
[147/155] Compiling SwiftParserDiagnostics MissingNodesError.swift
[148/155] Compiling SwiftParserDiagnostics MissingTokenError.swift
[149/155] Compiling SwiftParserDiagnostics DiagnosticExtensions.swift
[150/155] Compiling SwiftParserDiagnostics LexerDiagnosticMessages.swift
[151/155] Emitting module SwiftParserDiagnostics
[152/155] Compiling SwiftParserDiagnostics MultiLineStringLiteralDiagnosticsGenerator.swift
[153/155] Compiling SwiftParserDiagnostics ParseDiagnosticsGenerator.swift
[154/169] Compiling SwiftSyntaxBuilder ResultBuilderExtensions.swift
[155/169] Compiling SwiftSyntaxBuilder SwiftSyntaxBuilderCompatibility.swift
[156/170] Compiling SwiftSyntaxBuilder SyntaxExpressibleByStringInterpolationConformances.swift
[157/170] Compiling SwiftSyntaxBuilder RenamedChildrenBuilderCompatibility.swift
[158/170] Compiling SwiftSyntaxBuilder BuildableCollectionNodes.swift
[159/170] Compiling SwiftSyntaxBuilder WithTrailingCommaSyntax+EnsuringTrailingComma.swift
[160/170] Compiling SwiftSyntaxBuilder BuildableNodes.swift
[161/170] Compiling SwiftSyntaxBuilder SyntaxParsable+ExpressibleByStringInterpolation.swift
[162/170] Compiling SwiftSyntaxBuilder ValidatingSyntaxNodes.swift
[163/170] Compiling SwiftSyntaxBuilder Syntax+StringInterpolation.swift
[164/170] Compiling SwiftSyntaxBuilder SyntaxNodeWithBody.swift
[165/170] Compiling SwiftSyntaxBuilder ConvenienceInitializers.swift
[166/170] Compiling SwiftSyntaxBuilder Indenter.swift
[167/170] Emitting module SwiftSyntaxBuilder
[168/170] Compiling SwiftSyntaxBuilder ResultBuilders.swift
[169/184] Compiling SwiftSyntaxMacros Macro.swift
[170/185] Compiling SwiftSyntaxMacros MemberMacro.swift
[171/185] Compiling SwiftSyntaxMacros Macro+Format.swift
[172/185] Compiling SwiftSyntaxMacros FreestandingMacro.swift
[173/185] Compiling SwiftSyntaxMacros MemberAttributeMacro.swift
[174/185] Compiling SwiftSyntaxMacros CodeItemMacro.swift
[175/185] Compiling SwiftSyntaxMacros DeclarationMacro.swift
[176/185] Compiling SwiftSyntaxMacros ExpressionMacro.swift
[177/185] Compiling SwiftSyntaxMacros ExtensionMacro.swift
[178/185] Emitting module SwiftSyntaxMacros
[179/185] Compiling SwiftSyntaxMacros AbstractSourceLocation.swift
[180/185] Compiling SwiftSyntaxMacros MacroExpansionContext.swift
[181/185] Compiling SwiftSyntaxMacros AccessorMacro.swift
[182/185] Compiling SwiftSyntaxMacros AttachedMacro.swift
[183/185] Compiling SwiftSyntaxMacros PeerMacro.swift
[184/193] Compiling SwiftSyntaxMacroExpansion MacroExpansionDiagnosticMessages.swift
[185/193] Compiling SwiftSyntaxMacroExpansion BasicMacroExpansionContext.swift
[186/193] Emitting module SwiftSyntaxMacroExpansion
[187/193] Compiling SwiftSyntaxMacroExpansion IndentationUtils.swift
[188/193] Compiling SwiftSyntaxMacroExpansion MacroReplacement.swift
[189/193] Compiling SwiftSyntaxMacroExpansion MacroSystem.swift
[190/193] Compiling SwiftSyntaxMacroExpansion FunctionParameterUtils.swift
[191/193] Compiling SwiftSyntaxMacroExpansion MacroExpansion.swift
[192/200] Compiling SwiftCompilerPluginMessageHandling PluginMessageCompatibility.swift
[193/200] Compiling SwiftCompilerPluginMessageHandling PluginMacroExpansionContext.swift
[194/200] Compiling SwiftCompilerPluginMessageHandling Macros.swift
[195/200] Emitting module SwiftCompilerPluginMessageHandling
[196/200] Compiling SwiftCompilerPluginMessageHandling Diagnostics.swift
[197/200] Compiling SwiftCompilerPluginMessageHandling CompilerPluginMessageHandler.swift
[198/200] Compiling SwiftCompilerPluginMessageHandling PluginMessages.swift
[199/202] Emitting module SwiftCompilerPlugin
[200/202] Compiling SwiftCompilerPlugin CompilerPlugin.swift
[201/207] Compiling PowerAssertPlugin SingleLineFormatter.swift
[202/207] Compiling PowerAssertPlugin PowerAssertPlugin.swift
[203/207] Emitting module PowerAssertPlugin
/Users/admin/builder/spi-builder-workspace/Sources/PowerAssertPlugin/PowerAssertMacro.swift:5:21: warning: static property 'formatMode' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 3 |
 4 | public struct PowerAssertMacro: ExpressionMacro {
 5 |   public static var formatMode: FormatMode = .disabled
   |                     |- warning: static property 'formatMode' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
   |                     |- note: convert 'formatMode' to a 'let' constant to make 'Sendable' shared state immutable
   |                     |- note: annotate 'formatMode' 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
 6 |
 7 |   public static func expansion(
[204/207] Compiling PowerAssertPlugin PowerAssertMacro.swift
/Users/admin/builder/spi-builder-workspace/Sources/PowerAssertPlugin/PowerAssertMacro.swift:5:21: warning: static property 'formatMode' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 3 |
 4 | public struct PowerAssertMacro: ExpressionMacro {
 5 |   public static var formatMode: FormatMode = .disabled
   |                     |- warning: static property 'formatMode' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
   |                     |- note: convert 'formatMode' to a 'let' constant to make 'Sendable' shared state immutable
   |                     |- note: annotate 'formatMode' 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
 6 |
 7 |   public static func expansion(
[205/207] Compiling PowerAssertPlugin PowerAssertRewriter.swift
[205/207] Write Objects.LinkFileList
[206/207] Linking PowerAssertPlugin-tool
[208/212] Compiling PowerAssert Macros.swift
[209/212] Compiling PowerAssert PowerAssert.swift
[210/212] Compiling PowerAssert Diff.swift
[211/212] Emitting module PowerAssert
[212/212] Compiling PowerAssert Console.swift
Build complete! (60.53s)
Build complete.
{
  "dependencies" : [
    {
      "identity" : "swift-syntax",
      "requirement" : {
        "range" : [
          {
            "lower_bound" : "509.0.0-swift-DEVELOPMENT-SNAPSHOT-2023-08-07-a",
            "upper_bound" : "510.0.0"
          }
        ]
      },
      "type" : "sourceControl",
      "url" : "https://github.com/apple/swift-syntax.git"
    }
  ],
  "manifest_display_name" : "SwiftPowerAssert",
  "name" : "SwiftPowerAssert",
  "path" : "/Users/admin/builder/spi-builder-workspace",
  "platforms" : [
    {
      "name" : "macos",
      "version" : "10.15"
    },
    {
      "name" : "ios",
      "version" : "13.0"
    },
    {
      "name" : "tvos",
      "version" : "13.0"
    },
    {
      "name" : "watchos",
      "version" : "6.0"
    },
    {
      "name" : "maccatalyst",
      "version" : "13.0"
    }
  ],
  "products" : [
    {
      "name" : "PowerAssert",
      "targets" : [
        "PowerAssert"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    },
    {
      "name" : "PowerAssertPlugin",
      "targets" : [
        "PowerAssertPlugin"
      ],
      "type" : {
        "macro" : null
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "StringWidth",
      "module_type" : "SwiftTarget",
      "name" : "StringWidth",
      "path" : "Sources/StringWidth",
      "product_memberships" : [
        "PowerAssert",
        "PowerAssertPlugin"
      ],
      "sources" : [
        "CodePointWidth.swift",
        "StringWidth.swift"
      ],
      "type" : "library"
    },
    {
      "c99name" : "PowerAssertTests",
      "module_type" : "SwiftTarget",
      "name" : "PowerAssertTests",
      "path" : "Tests",
      "product_dependencies" : [
        "SwiftSyntaxMacrosTestSupport"
      ],
      "sources" : [
        "AssertTests.swift",
        "ConsoleTests.swift",
        "DiffTests.swift",
        "EmojiPresentationTests.swift",
        "ExprSyntaxTests.swift",
        "Fixtures.swift",
        "Helpers.swift",
        "LineDiffTests.swift",
        "MacroExpansionTests.swift",
        "OutputStyleTests.swift",
        "StringWidthTests.swift",
        "WordDiffTests.swift"
      ],
      "target_dependencies" : [
        "PowerAssertPlugin",
        "PowerAssert"
      ],
      "type" : "test"
    },
    {
      "c99name" : "PowerAssertPlugin",
      "module_type" : "SwiftTarget",
      "name" : "PowerAssertPlugin",
      "path" : "Sources/PowerAssertPlugin",
      "product_dependencies" : [
        "SwiftSyntaxMacros",
        "SwiftCompilerPlugin"
      ],
      "product_memberships" : [
        "PowerAssert",
        "PowerAssertPlugin"
      ],
      "sources" : [
        "PowerAssertMacro.swift",
        "PowerAssertPlugin.swift",
        "PowerAssertRewriter.swift",
        "SingleLineFormatter.swift"
      ],
      "target_dependencies" : [
        "StringWidth"
      ],
      "type" : "macro"
    },
    {
      "c99name" : "PowerAssert",
      "module_type" : "SwiftTarget",
      "name" : "PowerAssert",
      "path" : "Sources/PowerAssert",
      "product_memberships" : [
        "PowerAssert"
      ],
      "sources" : [
        "Console.swift",
        "Diff.swift",
        "Macros.swift",
        "PowerAssert.swift"
      ],
      "target_dependencies" : [
        "PowerAssertPlugin",
        "StringWidth"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.9"
}
Done.