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 Grain, reference main (4d40ee), with Swift 6.0 for macOS (SPM) on 29 Nov 2024 02:13:47 UTC.

Swift 6 data race errors: 8

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 -Xswiftc -enable-upcoming-feature -Xswiftc StrictConcurrency -Xswiftc -enable-upcoming-feature -Xswiftc DisableOutwardActorInference -Xswiftc -enable-upcoming-feature -Xswiftc GlobalActorIsolatedTypesUsability -Xswiftc -enable-upcoming-feature -Xswiftc InferSendableFromCaptures

Build Log

========================================
RunAll
========================================
Builder version: 4.58.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/muukii/Grain.git
Reference: main
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/muukii/Grain
 * branch            main       -> FETCH_HEAD
 * [new branch]      main       -> origin/main
HEAD is now at 4d40ee4 Object accepts any GrainView (#14)
Cloned https://github.com/muukii/Grain.git
Revision (git rev-parse @):
4d40ee464fab0eb4b121283f4675efd58056a412
SUCCESS checkout https://github.com/muukii/Grain.git at main
Fetching https://github.com/apple/swift-tools-support-core.git
Fetching https://github.com/Alamofire/Alamofire.git
Fetching https://github.com/jpsim/Yams.git
Fetching https://github.com/apple/swift-argument-parser
Fetching https://github.com/apple/swift-system.git
[1/3919] Fetching swift-system
[824/13855] Fetching swift-system, yams
[1805/26250] Fetching swift-system, yams, swift-argument-parser
[2081/32797] Fetching swift-system, yams, swift-argument-parser, swift-tools-support-core
[7903/62814] Fetching swift-system, yams, swift-argument-parser, swift-tools-support-core, alamofire
Fetched https://github.com/apple/swift-system.git from cache (1.87s)
Fetched https://github.com/apple/swift-argument-parser from cache (1.87s)
[24888/46500] Fetching yams, swift-tools-support-core, alamofire
Fetched https://github.com/jpsim/Yams.git from cache (2.90s)
Fetched https://github.com/apple/swift-tools-support-core.git from cache (2.90s)
Fetched https://github.com/Alamofire/Alamofire.git from cache (2.91s)
Computing version for https://github.com/jpsim/Yams.git
Computed https://github.com/jpsim/Yams.git at 5.0.1 (0.58s)
Computing version for https://github.com/Alamofire/Alamofire.git
Computed https://github.com/Alamofire/Alamofire.git at 5.6.2 (0.58s)
Computing version for https://github.com/apple/swift-tools-support-core.git
Computed https://github.com/apple/swift-tools-support-core.git at 0.3.0 (0.62s)
Computing version for https://github.com/apple/swift-argument-parser
Computed https://github.com/apple/swift-argument-parser at 1.1.4 (0.59s)
Computing version for https://github.com/apple/swift-system.git
Computed https://github.com/apple/swift-system.git at 1.1.1 (0.66s)
Creating working copy for https://github.com/jpsim/Yams.git
Working copy of https://github.com/jpsim/Yams.git resolved at 5.0.1
Creating working copy for https://github.com/apple/swift-argument-parser
Working copy of https://github.com/apple/swift-argument-parser resolved at 1.1.4
Creating working copy for https://github.com/Alamofire/Alamofire.git
Working copy of https://github.com/Alamofire/Alamofire.git resolved at 5.6.2
Creating working copy for https://github.com/apple/swift-tools-support-core.git
Working copy of https://github.com/apple/swift-tools-support-core.git resolved at 0.3.0
Creating working copy for https://github.com/apple/swift-system.git
Working copy of https://github.com/apple/swift-system.git resolved at 1.1.1
========================================
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": "grain",
      "name": "Grain",
      "url": "https://github.com/muukii/Grain.git",
      "version": "unspecified",
      "path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/Grain",
      "dependencies": [
        {
          "identity": "swift-argument-parser",
          "name": "swift-argument-parser",
          "url": "https://github.com/apple/swift-argument-parser",
          "version": "1.5.0",
          "path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/swift-argument-parser",
          "dependencies": [
          ]
        },
        {
          "identity": "swift-tools-support-core",
          "name": "swift-tools-support-core",
          "url": "https://github.com/apple/swift-tools-support-core.git",
          "version": "0.7.1",
          "path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/swift-tools-support-core",
          "dependencies": [
          ]
        },
        {
          "identity": "alamofire",
          "name": "Alamofire",
          "url": "https://github.com/Alamofire/Alamofire.git",
          "version": "5.10.2",
          "path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/Alamofire",
          "dependencies": [
          ]
        },
        {
          "identity": "yams",
          "name": "Yams",
          "url": "https://github.com/jpsim/Yams.git",
          "version": "5.1.3",
          "path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/Yams",
          "dependencies": [
          ]
        }
      ]
    }
  ]
}
Fetching https://github.com/muukii/Grain.git
[1/7881] Fetching grain
Fetched https://github.com/muukii/Grain.git from cache (1.18s)
Fetching https://github.com/jpsim/Yams.git from cache
Fetching https://github.com/apple/swift-argument-parser from cache
Fetching https://github.com/apple/swift-tools-support-core.git from cache
Fetching https://github.com/Alamofire/Alamofire.git from cache
Fetched https://github.com/apple/swift-argument-parser from cache (0.57s)
Fetched https://github.com/jpsim/Yams.git from cache (0.68s)
Fetched https://github.com/apple/swift-tools-support-core.git from cache (0.77s)
Fetched https://github.com/Alamofire/Alamofire.git from cache (0.77s)
Computing version for https://github.com/jpsim/Yams.git
Computed https://github.com/jpsim/Yams.git at 5.1.3 (0.57s)
Computing version for https://github.com/Alamofire/Alamofire.git
Computed https://github.com/Alamofire/Alamofire.git at 5.10.2 (0.46s)
Computing version for https://github.com/apple/swift-tools-support-core.git
Computed https://github.com/apple/swift-tools-support-core.git at 0.7.1 (0.63s)
Computing version for https://github.com/apple/swift-argument-parser
Computed https://github.com/apple/swift-argument-parser at 1.5.0 (0.49s)
Creating working copy for https://github.com/jpsim/Yams.git
Working copy of https://github.com/jpsim/Yams.git resolved at 5.1.3
Creating working copy for https://github.com/apple/swift-tools-support-core.git
Working copy of https://github.com/apple/swift-tools-support-core.git resolved at 0.7.1
Creating working copy for https://github.com/muukii/Grain.git
Working copy of https://github.com/muukii/Grain.git resolved at main (4d40ee4)
Creating working copy for https://github.com/apple/swift-argument-parser
Working copy of https://github.com/apple/swift-argument-parser resolved at 1.5.0
Creating working copy for https://github.com/Alamofire/Alamofire.git
Working copy of https://github.com/Alamofire/Alamofire.git resolved at 5.10.2
Found 4 product dependencies
  - swift-argument-parser
  - swift-tools-support-core
  - Alamofire
  - Yams
========================================
Build
========================================
Selected platform:         macosSpm
Swift version:             6.0
Building package at path:  $PWD
https://github.com/muukii/Grain.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 -Xswiftc -enable-upcoming-feature -Xswiftc StrictConcurrency -Xswiftc -enable-upcoming-feature -Xswiftc DisableOutwardActorInference -Xswiftc -enable-upcoming-feature -Xswiftc GlobalActorIsolatedTypesUsability -Xswiftc -enable-upcoming-feature -Xswiftc InferSendableFromCaptures
[1/1] Compiling plugin GenerateManualPlugin
Building for debugging...
[1/27] Write sources
[6/27] Write grain-entitlement.plist
[6/27] Write sources
[9/27] Compiling TSCclibc process.c
[10/27] Compiling CSystem shims.c
[11/27] Write sources
[14/27] Write swift-version--7754E27361AE5C74.txt
[15/27] Compiling TSCclibc libc.c
[16/86] Compiling reader.c
[17/86] Compiling parser.c
[18/86] Compiling emitter.c
[19/86] Compiling scanner.c
[20/86] Compiling api.c
[21/86] Compiling writer.c
[23/101] Emitting module SystemPackage
[24/103] Compiling ArgumentParserToolInfo ToolInfo.swift
[25/103] Emitting module ArgumentParserToolInfo
[26/140] Compiling ArgumentParser ParserError.swift
[27/140] Compiling ArgumentParser SplitArguments.swift
[28/140] Emitting module TSCLibc
[29/140] Compiling TSCLibc libc.swift
[30/140] Compiling ArgumentParser BashCompletionsGenerator.swift
[31/140] Compiling ArgumentParser CompletionsGenerator.swift
[32/140] Compiling ArgumentParser FishCompletionsGenerator.swift
[33/140] Compiling ArgumentParser ZshCompletionsGenerator.swift
[34/143] Compiling ArgumentParser ExpressibleByArgument.swift
[35/143] Compiling ArgumentParser ParsableArguments.swift
[36/143] Compiling ArgumentParser ParsableArgumentsValidation.swift
[37/143] Compiling ArgumentParser ParsableCommand.swift
[38/143] Emitting module ArgumentParser
[39/143] Compiling ArgumentParser SequenceExtensions.swift
[40/143] Compiling ArgumentParser StringExtensions.swift
[41/143] Compiling ArgumentParser Tree.swift
[42/143] Compiling ArgumentParser CommandConfiguration.swift
[43/143] Compiling ArgumentParser EnumerableFlag.swift
[44/143] Compiling ArgumentParser ArgumentDecoder.swift
[45/143] Compiling ArgumentParser ArgumentDefinition.swift
[46/143] Compiling ArgumentParser OptionGroup.swift
[47/143] Compiling ArgumentParser AsyncParsableCommand.swift
[48/143] Compiling ArgumentParser ArgumentSet.swift
[49/143] Compiling ArgumentParser CommandParser.swift
[50/143] Compiling ArgumentParser Errors.swift
[51/143] Compiling ArgumentParser Flag.swift
[52/143] Compiling ArgumentParser NameSpecification.swift
[53/143] Compiling ArgumentParser Argument.swift
[54/143] Compiling ArgumentParser ArgumentHelp.swift
[55/143] Compiling ArgumentParser ArgumentVisibility.swift
[56/143] Compiling ArgumentParser CompletionKind.swift
[57/143] Compiling ArgumentParser UsageGenerator.swift
[58/143] Compiling ArgumentParser CollectionExtensions.swift
[59/143] Compiling ArgumentParser Option.swift
[60/143] Compiling ArgumentParser HelpGenerator.swift
[61/143] Compiling ArgumentParser MessageInfo.swift
[62/143] Emitting module Alamofire
[63/187] Compiling TSCBasic CacheableSequence.swift
[64/187] Compiling TSCBasic FileInfo.swift
[65/188] Compiling TSCBasic ByteString.swift
[66/188] Compiling TSCBasic CStringArray.swift
[67/188] Compiling TSCBasic Await.swift
[68/188] Compiling TSCBasic Base64URL.swift
[69/188] Emitting module Yams
[70/188] Compiling TSCBasic CollectionExtensions.swift
[71/188] Compiling TSCBasic Condition.swift
[72/188] Compiling TSCBasic ProcessSet.swift
[73/188] Compiling TSCBasic Closable.swift
[74/188] Compiling TSCBasic CodableResult.swift
[75/188] Compiling TSCBasic CollectionAlgorithms.swift
[76/188] Compiling TSCBasic ObjectIdentifierProtocol.swift
[77/188] Compiling TSCBasic OrderedDictionary.swift
[78/188] Compiling TSCBasic OrderedSet.swift
[87/188] Compiling TSCBasic HashAlgorithms.swift
[88/188] Compiling TSCBasic JSON.swift
[89/188] Compiling TSCBasic DeltaAlgorithm.swift
[90/188] Compiling TSCBasic DiagnosticsEngine.swift
[91/188] Compiling TSCBasic SynchronizedQueue.swift
[92/188] Compiling TSCBasic TemporaryFile.swift
[93/188] Compiling TSCBasic TerminalController.swift
[94/188] Compiling TSCBasic Path.swift
[95/188] Compiling TSCBasic DictionaryExtensions.swift
[96/188] Compiling TSCBasic DictionaryLiteralExtensions.swift
[97/188] Compiling TSCBasic EditDistance.swift
[98/188] Compiling TSCBasic StringConversions.swift
[99/188] Compiling TSCBasic PathShims.swift
[100/188] Compiling TSCBasic Process.swift
[101/188] Compiling TSCBasic ProcessEnv.swift
[102/188] Compiling TSCBasic OSLog.swift
[117/188] Compiling TSCBasic FileSystem.swift
[118/188] Compiling TSCBasic GraphAlgorithms.swift
[119/188] Compiling Yams YamlError.swift
[120/188] Emitting module TSCBasic
[121/192] Compiling Yams Tag.swift
[122/192] Compiling Yams String+Yams.swift
[123/192] Compiling Yams Resolver.swift
[128/192] Compiling Yams Representer.swift
[129/192] Compiling TSCBasic RegEx.swift
[130/192] Compiling TSCBasic Result.swift
[131/192] Compiling TSCBasic SortedArray.swift
[144/192] Compiling TSCBasic JSONMapper.swift
[145/192] Compiling TSCBasic KeyedPair.swift
[146/192] Compiling TSCBasic LazyCache.swift
[147/192] Compiling TSCBasic Lock.swift
[179/192] Compiling TSCBasic Thread.swift
[180/192] Compiling TSCBasic Tuple.swift
[181/192] Compiling TSCBasic WritableByteStream.swift
[182/192] Compiling TSCBasic misc.swift
[188/229] Compiling TSCUtility Tracing.swift
[189/229] Compiling TSCUtility Triple.swift
[190/229] Compiling TSCUtility URL.swift
[191/229] Compiling TSCUtility Verbosity.swift
[192/233] Compiling TSCUtility Platform.swift
[193/233] Compiling TSCUtility PolymorphicCodable.swift
[194/233] Compiling TSCUtility ProgressAnimation.swift
[195/233] Compiling TSCUtility SQLite.swift
[196/233] Compiling TSCUtility IndexStore.swift
[197/233] Compiling TSCUtility InterruptHandler.swift
[198/233] Compiling TSCUtility JSONMessageStreamingParser.swift
[199/233] Compiling TSCUtility Netrc.swift
[200/233] Compiling TSCUtility OSLog.swift
[201/233] Compiling TSCUtility OrderedZip.swift
[202/233] Compiling TSCUtility PersistenceCache.swift
[203/233] Compiling TSCUtility PkgConfig.swift
[204/233] Compiling TSCUtility Archiver.swift
[205/233] Compiling TSCUtility ArgumentParser.swift
[206/233] Compiling TSCUtility ArgumentParserShellCompletion.swift
[207/233] Compiling TSCUtility Array+Extensions.swift
[208/233] Compiling TSCUtility FSWatch.swift
[209/233] Compiling TSCUtility FloatingPointExtensions.swift
[210/233] Compiling TSCUtility Git.swift
[211/233] Compiling TSCUtility Hex.swift
[212/233] Compiling TSCUtility SerializedDiagnostics.swift
[213/233] Compiling TSCUtility SimplePersistence.swift
[214/233] Compiling TSCUtility StringExtensions.swift
[215/233] Compiling TSCUtility StringMangling.swift
[216/233] Compiling TSCUtility Bits.swift
[217/233] Compiling TSCUtility Bitstream.swift
[218/233] Compiling TSCUtility BitstreamReader.swift
[219/233] Compiling TSCUtility BitstreamWriter.swift
[220/233] Emitting module TSCUtility
[221/233] Compiling TSCUtility BuildFlags.swift
[222/233] Compiling TSCUtility CollectionExtensions.swift
[223/233] Compiling TSCUtility Context.swift
[224/233] Compiling TSCUtility Diagnostics.swift
[225/233] Compiling TSCUtility Version.swift
[226/233] Compiling TSCUtility Versioning.swift
[227/233] Compiling TSCUtility dlopen.swift
[228/233] Compiling TSCUtility misc.swift
[229/237] Compiling GrainDescriptor Logger.swift
[230/237] Compiling GrainDescriptor Source.swift
/Users/admin/builder/spi-builder-workspace/Sources/GrainDescriptor/Source.swift:36:1: warning: conformance of 'Never' to 'Encodable' is only available in macOS 14.0 or newer; this is an error in the Swift 6 language mode
 34 | }
 35 |
 36 | extension Never: GrainView {
    | |- warning: conformance of 'Never' to 'Encodable' is only available in macOS 14.0 or newer; this is an error in the Swift 6 language mode
    | `- note: add @available attribute to enclosing extension
 37 |
 38 |   public var body: GrainEmpty {
[231/237] Emitting module GrainDescriptor
/Users/admin/builder/spi-builder-workspace/Sources/GrainDescriptor/Entrypoint.swift:2:22: warning: using '@_implementationOnly' without enabling library evolution for 'GrainDescriptor' may lead to instability during execution
  1 | import Alamofire
  2 | @_implementationOnly import Darwin.C
    |                      `- warning: using '@_implementationOnly' without enabling library evolution for 'GrainDescriptor' may lead to instability during execution
  3 | import Foundation
  4 | import TSCBasic
/Users/admin/builder/spi-builder-workspace/Sources/GrainDescriptor/Entrypoint.swift:230:12: warning: let 'context' is not concurrency-safe because non-'Sendable' type 'Context' may have shared mutable state; this is an error in the Swift 6 language mode
 94 | }
 95 |
 96 | public struct Context: Codable {
    |               `- note: consider making struct 'Context' conform to the 'Sendable' protocol
 97 |
 98 |   public enum DomainError: Int, Error {
    :
228 | }
229 |
230 | public let context: Context = {
    |            |- warning: let 'context' is not concurrency-safe because non-'Sendable' type 'Context' may have shared mutable state; this is an error in the Swift 6 language mode
    |            |- note: annotate 'context' 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
231 |   if let optIdx = CommandLine.arguments.firstIndex(of: "-context") {
232 |     let encodedContext = CommandLine.arguments[optIdx + 1]
/Users/admin/builder/spi-builder-workspace/Sources/GrainDescriptor/Source.swift:36:1: warning: conformance of 'Never' to 'Encodable' is only available in macOS 14.0 or newer; this is an error in the Swift 6 language mode
 34 | }
 35 |
 36 | extension Never: GrainView {
    | |- warning: conformance of 'Never' to 'Encodable' is only available in macOS 14.0 or newer; this is an error in the Swift 6 language mode
    | `- note: add @available attribute to enclosing extension
 37 |
 38 |   public var body: GrainEmpty {
[232/237] Compiling GrainDescriptor Entrypoint.swift
/Users/admin/builder/spi-builder-workspace/Sources/GrainDescriptor/Entrypoint.swift:2:22: warning: using '@_implementationOnly' without enabling library evolution for 'GrainDescriptor' may lead to instability during execution
  1 | import Alamofire
  2 | @_implementationOnly import Darwin.C
    |                      `- warning: using '@_implementationOnly' without enabling library evolution for 'GrainDescriptor' may lead to instability during execution
  3 | import Foundation
  4 | import TSCBasic
/Users/admin/builder/spi-builder-workspace/Sources/GrainDescriptor/Entrypoint.swift:230:12: warning: let 'context' is not concurrency-safe because non-'Sendable' type 'Context' may have shared mutable state; this is an error in the Swift 6 language mode
 94 | }
 95 |
 96 | public struct Context: Codable {
    |               `- note: consider making struct 'Context' conform to the 'Sendable' protocol
 97 |
 98 |   public enum DomainError: Int, Error {
    :
228 | }
229 |
230 | public let context: Context = {
    |            |- warning: let 'context' is not concurrency-safe because non-'Sendable' type 'Context' may have shared mutable state; this is an error in the Swift 6 language mode
    |            |- note: annotate 'context' 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
231 |   if let optIdx = CommandLine.arguments.firstIndex(of: "-context") {
232 |     let encodedContext = CommandLine.arguments[optIdx + 1]
[232/237] Write Objects.LinkFileList
[234/242] Compiling Grain PlatformVersion.swift
/Users/admin/builder/spi-builder-workspace/Sources/Grain/PlatformVersion.swift:8:21: warning: static property 'unknown' is not concurrency-safe because non-'Sendable' type 'PlatformVersion' may have shared mutable state; this is an error in the Swift 6 language mode
 3 |
 4 | /// Represents a platform version.
 5 | public struct PlatformVersion: Equatable, Hashable, Codable {
   |               `- note: consider making struct 'PlatformVersion' conform to the 'Sendable' protocol
 6 |
 7 |   /// The unknown platform version.
 8 |   public static let unknown: PlatformVersion = .init("0.0.0")
   |                     |- warning: static property 'unknown' is not concurrency-safe because non-'Sendable' type 'PlatformVersion' may have shared mutable state; this is an error in the Swift 6 language mode
   |                     |- note: annotate 'unknown' 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
 9 |
10 |   /// The underlying version storage.
[234/242] Linking libGrainDescriptor.dylib
[236/242] Compiling Grain FileSystem+.swift
[237/242] Compiling Grain Logger.swift
[238/242] Emitting module Grain
/Users/admin/builder/spi-builder-workspace/Sources/Grain/CLI.swift:13:14: warning: static property 'fileNotFound' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 11 |   var errorDescription: String?
 12 |
 13 |   static var fileNotFound: Self = .init(errorDescription: "File not found")
    |              |- warning: static property 'fileNotFound' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |              |- note: convert 'fileNotFound' to a 'let' constant to make 'Sendable' shared state immutable
    |              |- note: annotate 'fileNotFound' 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 var runtimeNotFound: Self = .init(errorDescription: "Runtime not found")
 15 |
/Users/admin/builder/spi-builder-workspace/Sources/Grain/CLI.swift:14:14: warning: static property 'runtimeNotFound' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 12 |
 13 |   static var fileNotFound: Self = .init(errorDescription: "File not found")
 14 |   static var runtimeNotFound: Self = .init(errorDescription: "Runtime not found")
    |              |- warning: static property 'runtimeNotFound' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |              |- note: convert 'runtimeNotFound' to a 'let' constant to make 'Sendable' shared state immutable
    |              |- note: annotate 'runtimeNotFound' 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
 15 |
 16 | }
/Users/admin/builder/spi-builder-workspace/Sources/Grain/CLI.swift:39:18: warning: static property 'failedToCompile' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 37 |       var errorDescription: String?
 38 |
 39 |       static var failedToCompile: Self = .init(errorDescription: "Failed to compile")
    |                  |- warning: static property 'failedToCompile' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |                  |- note: convert 'failedToCompile' to a 'let' constant to make 'Sendable' shared state immutable
    |                  |- note: annotate 'failedToCompile' 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
 40 |       static var couldNotCreateOutputFile: Self = .init(errorDescription: "Could not create output file")
 41 |       static var failureInMakingOutput: Self = .init(errorDescription: "Failure in makiing output")
/Users/admin/builder/spi-builder-workspace/Sources/Grain/CLI.swift:40:18: warning: static property 'couldNotCreateOutputFile' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 38 |
 39 |       static var failedToCompile: Self = .init(errorDescription: "Failed to compile")
 40 |       static var couldNotCreateOutputFile: Self = .init(errorDescription: "Could not create output file")
    |                  |- warning: static property 'couldNotCreateOutputFile' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |                  |- note: convert 'couldNotCreateOutputFile' to a 'let' constant to make 'Sendable' shared state immutable
    |                  |- note: annotate 'couldNotCreateOutputFile' 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
 41 |       static var failureInMakingOutput: Self = .init(errorDescription: "Failure in makiing output")
 42 |
/Users/admin/builder/spi-builder-workspace/Sources/Grain/CLI.swift:41:18: warning: static property 'failureInMakingOutput' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 39 |       static var failedToCompile: Self = .init(errorDescription: "Failed to compile")
 40 |       static var couldNotCreateOutputFile: Self = .init(errorDescription: "Could not create output file")
 41 |       static var failureInMakingOutput: Self = .init(errorDescription: "Failure in makiing output")
    |                  |- warning: static property 'failureInMakingOutput' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |                  |- note: convert 'failureInMakingOutput' to a 'let' constant to make 'Sendable' shared state immutable
    |                  |- note: annotate 'failureInMakingOutput' 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
 42 |
 43 |     }
/Users/admin/builder/spi-builder-workspace/Sources/Grain/PlatformVersion.swift:8:21: warning: static property 'unknown' is not concurrency-safe because non-'Sendable' type 'PlatformVersion' may have shared mutable state; this is an error in the Swift 6 language mode
 3 |
 4 | /// Represents a platform version.
 5 | public struct PlatformVersion: Equatable, Hashable, Codable {
   |               `- note: consider making struct 'PlatformVersion' conform to the 'Sendable' protocol
 6 |
 7 |   /// The unknown platform version.
 8 |   public static let unknown: PlatformVersion = .init("0.0.0")
   |                     |- warning: static property 'unknown' is not concurrency-safe because non-'Sendable' type 'PlatformVersion' may have shared mutable state; this is an error in the Swift 6 language mode
   |                     |- note: annotate 'unknown' 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
 9 |
10 |   /// The underlying version storage.
[239/242] Compiling Grain CLI.swift
/Users/admin/builder/spi-builder-workspace/Sources/Grain/CLI.swift:13:14: warning: static property 'fileNotFound' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 11 |   var errorDescription: String?
 12 |
 13 |   static var fileNotFound: Self = .init(errorDescription: "File not found")
    |              |- warning: static property 'fileNotFound' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |              |- note: convert 'fileNotFound' to a 'let' constant to make 'Sendable' shared state immutable
    |              |- note: annotate 'fileNotFound' 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 var runtimeNotFound: Self = .init(errorDescription: "Runtime not found")
 15 |
/Users/admin/builder/spi-builder-workspace/Sources/Grain/CLI.swift:14:14: warning: static property 'runtimeNotFound' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 12 |
 13 |   static var fileNotFound: Self = .init(errorDescription: "File not found")
 14 |   static var runtimeNotFound: Self = .init(errorDescription: "Runtime not found")
    |              |- warning: static property 'runtimeNotFound' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |              |- note: convert 'runtimeNotFound' to a 'let' constant to make 'Sendable' shared state immutable
    |              |- note: annotate 'runtimeNotFound' 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
 15 |
 16 | }
/Users/admin/builder/spi-builder-workspace/Sources/Grain/CLI.swift:39:18: warning: static property 'failedToCompile' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 37 |       var errorDescription: String?
 38 |
 39 |       static var failedToCompile: Self = .init(errorDescription: "Failed to compile")
    |                  |- warning: static property 'failedToCompile' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |                  |- note: convert 'failedToCompile' to a 'let' constant to make 'Sendable' shared state immutable
    |                  |- note: annotate 'failedToCompile' 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
 40 |       static var couldNotCreateOutputFile: Self = .init(errorDescription: "Could not create output file")
 41 |       static var failureInMakingOutput: Self = .init(errorDescription: "Failure in makiing output")
/Users/admin/builder/spi-builder-workspace/Sources/Grain/CLI.swift:40:18: warning: static property 'couldNotCreateOutputFile' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 38 |
 39 |       static var failedToCompile: Self = .init(errorDescription: "Failed to compile")
 40 |       static var couldNotCreateOutputFile: Self = .init(errorDescription: "Could not create output file")
    |                  |- warning: static property 'couldNotCreateOutputFile' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |                  |- note: convert 'couldNotCreateOutputFile' to a 'let' constant to make 'Sendable' shared state immutable
    |                  |- note: annotate 'couldNotCreateOutputFile' 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
 41 |       static var failureInMakingOutput: Self = .init(errorDescription: "Failure in makiing output")
 42 |
/Users/admin/builder/spi-builder-workspace/Sources/Grain/CLI.swift:41:18: warning: static property 'failureInMakingOutput' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 39 |       static var failedToCompile: Self = .init(errorDescription: "Failed to compile")
 40 |       static var couldNotCreateOutputFile: Self = .init(errorDescription: "Could not create output file")
 41 |       static var failureInMakingOutput: Self = .init(errorDescription: "Failure in makiing output")
    |                  |- warning: static property 'failureInMakingOutput' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |                  |- note: convert 'failureInMakingOutput' to a 'let' constant to make 'Sendable' shared state immutable
    |                  |- note: annotate 'failureInMakingOutput' 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
 42 |
 43 |     }
/Users/admin/builder/spi-builder-workspace/Sources/Grain/CLI.swift:53:38: warning: reference to var 'localFileSystem' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
 51 |
 52 |       let validatedPaths = targetFilePaths.map {
 53 |         AbsolutePath($0, relativeTo: localFileSystem.currentWorkingDirectory!)
    |                                      `- warning: reference to var 'localFileSystem' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
 54 |       }
 55 |
/Users/admin/builder/spi-builder-workspace/.build/checkouts/swift-tools-support-core/Sources/TSCBasic/FileSystem.swift:1132:12: note: var declared here
1130 |
1131 | /// Public access to the local FS proxy.
1132 | public var localFileSystem: FileSystem = LocalFileSystem()
     |            `- note: var declared here
1133 |
1134 | extension FileSystem {
/Users/admin/builder/spi-builder-workspace/Sources/Grain/CLI.swift:63:77: warning: reference to var 'localFileSystem' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
 61 |             let context = GrainDescriptor.Context(
 62 |               filePath: path,
 63 |               outputDir: outputDirectory.map { AbsolutePath($0, relativeTo: localFileSystem.currentWorkingDirectory!) },
    |                                                                             `- warning: reference to var 'localFileSystem' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
 64 |               userInfoString: userInfo
 65 |             )
/Users/admin/builder/spi-builder-workspace/.build/checkouts/swift-tools-support-core/Sources/TSCBasic/FileSystem.swift:1132:12: note: var declared here
1130 |
1131 | /// Public access to the local FS proxy.
1132 | public var localFileSystem: FileSystem = LocalFileSystem()
     |            `- note: var declared here
1133 |
1134 | extension FileSystem {
/Users/admin/builder/spi-builder-workspace/Sources/Grain/CLI.swift:76:13: warning: reference to var 'localFileSystem' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
 74 |     private func render(_ targetFilePath: AbsolutePath, context: GrainDescriptor.Context) async throws {
 75 |
 76 |       guard localFileSystem.exists(targetFilePath) else {
    |             `- warning: reference to var 'localFileSystem' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
 77 |         throw CLIError.fileNotFound
 78 |       }
/Users/admin/builder/spi-builder-workspace/.build/checkouts/swift-tools-support-core/Sources/TSCBasic/FileSystem.swift:1132:12: note: var declared here
1130 |
1131 | /// Public access to the local FS proxy.
1132 | public var localFileSystem: FileSystem = LocalFileSystem()
     |            `- note: var declared here
1133 |
1134 | extension FileSystem {
/Users/admin/builder/spi-builder-workspace/Sources/Grain/CLI.swift:92:65: warning: reference to var 'localFileSystem' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
 90 |
 91 |       /// a directory path of this process binary
 92 |       let applicationDirPath = try Utils.hostBinDir(fileSystem: localFileSystem)
    |                                                                 `- warning: reference to var 'localFileSystem' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
 93 |
 94 |       var runtimeFrameworksPath: AbsolutePath {
/Users/admin/builder/spi-builder-workspace/.build/checkouts/swift-tools-support-core/Sources/TSCBasic/FileSystem.swift:1132:12: note: var declared here
1130 |
1131 | /// Public access to the local FS proxy.
1132 | public var localFileSystem: FileSystem = LocalFileSystem()
     |            `- note: var declared here
1133 |
1134 | extension FileSystem {
/Users/admin/builder/spi-builder-workspace/Sources/Grain/CLI.swift:122:13: warning: reference to var 'localFileSystem' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
120 | """)
121 |
122 |       guard localFileSystem.exists(libraryPath) else {
    |             `- warning: reference to var 'localFileSystem' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
123 |         throw CLIError.runtimeNotFound
124 |       }
/Users/admin/builder/spi-builder-workspace/.build/checkouts/swift-tools-support-core/Sources/TSCBasic/FileSystem.swift:1132:12: note: var declared here
1130 |
1131 | /// Public access to the local FS proxy.
1132 | public var localFileSystem: FileSystem = LocalFileSystem()
     |            `- note: var declared here
1133 |
1134 | extension FileSystem {
/Users/admin/builder/spi-builder-workspace/Sources/Grain/CLI.swift:59:25: warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
 57 |
 58 |         for path in validatedPaths {
 59 |           group.addTask {
    |                         `- warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
 60 |
 61 |             let context = GrainDescriptor.Context(
 62 |               filePath: path,
 63 |               outputDir: outputDirectory.map { AbsolutePath($0, relativeTo: localFileSystem.currentWorkingDirectory!) },
    |                          `- note: closure captures 'self' which is accessible to code in the current task
 64 |               userInfoString: userInfo
 65 |             )
/Users/admin/builder/spi-builder-workspace/Sources/Grain/CLI.swift:230:14: warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
228 |     do {
229 |       try withTemporaryDirectory { path, completion -> Void in
230 |         Task {
    |              `- warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
231 |           do {
232 |             let r = try await work(path)
    |                               `- note: closure captures 'work' which is accessible to code in the current task
233 |             completion(path)
234 |             continuation.resume(returning: r)
/Users/admin/builder/spi-builder-workspace/Sources/Grain/CLI.swift:234:26: warning: sending 'r' risks causing data races; this is an error in the Swift 6 language mode
232 |             let r = try await work(path)
233 |             completion(path)
234 |             continuation.resume(returning: r)
    |                          |- warning: sending 'r' risks causing data races; this is an error in the Swift 6 language mode
    |                          `- note: task-isolated 'r' is passed as a 'sending' parameter; Uses in callee may race with later task-isolated uses
235 |           } catch {
236 |             print(error)
/Users/admin/builder/spi-builder-workspace/Sources/Grain/CLI.swift:269:24: warning: sending 'r' risks causing data races; this is an error in the Swift 6 language mode
267 |         switch result {
268 |         case .success(let r):
269 |           continuation.resume(returning: r)
    |                        |- warning: sending 'r' risks causing data races; this is an error in the Swift 6 language mode
    |                        `- note: task-isolated 'r' is passed as a 'sending' parameter; Uses in callee may race with later task-isolated uses
270 |         case .failure(let e):
271 |           continuation.resume(throwing: e)
[239/242] Write Objects.LinkFileList
[240/242] Linking grain
[241/242] Applying grain
Build complete! (45.49s)
Build complete.
{
  "dependencies" : [
    {
      "identity" : "swift-argument-parser",
      "requirement" : {
        "range" : [
          {
            "lower_bound" : "1.1.0",
            "upper_bound" : "2.0.0"
          }
        ]
      },
      "type" : "sourceControl",
      "url" : "https://github.com/apple/swift-argument-parser"
    },
    {
      "identity" : "swift-tools-support-core",
      "requirement" : {
        "range" : [
          {
            "lower_bound" : "0.2.7",
            "upper_bound" : "1.0.0"
          }
        ]
      },
      "type" : "sourceControl",
      "url" : "https://github.com/apple/swift-tools-support-core.git"
    },
    {
      "identity" : "alamofire",
      "requirement" : {
        "range" : [
          {
            "lower_bound" : "5.6.2",
            "upper_bound" : "6.0.0"
          }
        ]
      },
      "type" : "sourceControl",
      "url" : "https://github.com/Alamofire/Alamofire.git"
    },
    {
      "identity" : "yams",
      "requirement" : {
        "range" : [
          {
            "lower_bound" : "5.0.1",
            "upper_bound" : "6.0.0"
          }
        ]
      },
      "type" : "sourceControl",
      "url" : "https://github.com/jpsim/Yams.git"
    }
  ],
  "manifest_display_name" : "Grain",
  "name" : "Grain",
  "path" : "/Users/admin/builder/spi-builder-workspace",
  "platforms" : [
    {
      "name" : "macos",
      "version" : "12.0"
    },
    {
      "name" : "ios",
      "version" : "13.0"
    }
  ],
  "products" : [
    {
      "name" : "GrainDescriptor",
      "targets" : [
        "GrainDescriptor"
      ],
      "type" : {
        "library" : [
          "dynamic"
        ]
      }
    },
    {
      "name" : "grain",
      "targets" : [
        "Grain",
        "GrainDescriptor"
      ],
      "type" : {
        "executable" : null
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "GrainDescriptorTests",
      "module_type" : "SwiftTarget",
      "name" : "GrainDescriptorTests",
      "path" : "Tests/GrainDescriptorTests",
      "sources" : [
        "APNs.swift",
        "Tests.swift"
      ],
      "target_dependencies" : [
        "GrainDescriptor"
      ],
      "type" : "test"
    },
    {
      "c99name" : "GrainDescriptor",
      "module_type" : "SwiftTarget",
      "name" : "GrainDescriptor",
      "path" : "Sources/GrainDescriptor",
      "product_dependencies" : [
        "Yams",
        "Alamofire",
        "SwiftToolsSupport-auto"
      ],
      "product_memberships" : [
        "GrainDescriptor",
        "grain"
      ],
      "sources" : [
        "Entrypoint.swift",
        "Logger.swift",
        "Source.swift"
      ],
      "type" : "library"
    },
    {
      "c99name" : "Grain",
      "module_type" : "SwiftTarget",
      "name" : "Grain",
      "path" : "Sources/Grain",
      "product_dependencies" : [
        "ArgumentParser",
        "SwiftToolsSupport-auto"
      ],
      "product_memberships" : [
        "grain"
      ],
      "sources" : [
        "CLI.swift",
        "FileSystem+.swift",
        "Logger.swift",
        "PlatformVersion.swift"
      ],
      "target_dependencies" : [
        "GrainDescriptor"
      ],
      "type" : "executable"
    }
  ],
  "tools_version" : "5.7"
}
Done.