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 OpenParking, reference 0.11.0 (4aef2c), with Swift 6.1 for Linux on 25 Apr 2025 20:17:57 UTC.

Swift 6 data race errors: 2

Build Command

bash -c docker run --pull=always --rm -v "checkouts-4609320-0":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:basic-6.1-latest swift build --triple x86_64-unknown-linux-gnu -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 2>&1

Build Log

========================================
RunAll
========================================
Builder version: 4.61.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/OpenParkingApp/OpenParking.git
Reference: 0.11.0
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/OpenParkingApp/OpenParking
 * tag               0.11.0     -> FETCH_HEAD
HEAD is now at 4aef2cb silence warnings for now
Cloned https://github.com/OpenParkingApp/OpenParking.git
Revision (git rev-parse @):
4aef2cb70a4bc5746d1d2b8168d2c2f639c95598
SUCCESS checkout https://github.com/OpenParkingApp/OpenParking.git at 0.11.0
========================================
Build
========================================
Selected platform:         linux
Swift version:             6.1
Building package at path:  $PWD
https://github.com/OpenParkingApp/OpenParking.git
https://github.com/OpenParkingApp/OpenParking.git
WARNING: environment variable SUPPRESS_SWIFT_6_FLAGS is not set
{
  "dependencies" : [
    {
      "identity" : "geojson",
      "requirement" : {
        "range" : [
          {
            "lower_bound" : "0.4.0",
            "upper_bound" : "1.0.0"
          }
        ]
      },
      "type" : "sourceControl",
      "url" : "https://github.com/kiliankoe/GeoJSON"
    },
    {
      "identity" : "htmlstring",
      "requirement" : {
        "range" : [
          {
            "lower_bound" : "5.0.0",
            "upper_bound" : "6.0.0"
          }
        ]
      },
      "type" : "sourceControl",
      "url" : "https://github.com/alexaubry/HTMLString"
    },
    {
      "identity" : "regex",
      "requirement" : {
        "range" : [
          {
            "lower_bound" : "2.1.0",
            "upper_bound" : "3.0.0"
          }
        ]
      },
      "type" : "sourceControl",
      "url" : "https://github.com/sharplet/Regex"
    }
  ],
  "manifest_display_name" : "OpenParking",
  "name" : "OpenParking",
  "path" : "/host/spi-builder-workspace",
  "platforms" : [
    {
      "name" : "macos",
      "version" : "10.13"
    },
    {
      "name" : "ios",
      "version" : "11.0"
    },
    {
      "name" : "watchos",
      "version" : "4.0"
    },
    {
      "name" : "tvos",
      "version" : "11.0"
    }
  ],
  "products" : [
    {
      "name" : "OpenParking",
      "targets" : [
        "OpenParking"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    },
    {
      "name" : "OpenParkingTestSupport",
      "targets" : [
        "OpenParkingTestSupport"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "OpenParkingTests",
      "module_type" : "SwiftTarget",
      "name" : "OpenParkingTests",
      "path" : "Tests/OpenParkingTests",
      "sources" : [
        "OpenParkingTests.swift"
      ],
      "target_dependencies" : [
        "OpenParking"
      ],
      "type" : "test"
    },
    {
      "c99name" : "OpenParkingTestSupport",
      "module_type" : "SwiftTarget",
      "name" : "OpenParkingTestSupport",
      "path" : "Sources/OpenParkingTestSupport",
      "product_memberships" : [
        "OpenParkingTestSupport"
      ],
      "sources" : [
        "Validate.swift"
      ],
      "target_dependencies" : [
        "OpenParking"
      ],
      "type" : "library"
    },
    {
      "c99name" : "OpenParking",
      "module_type" : "SwiftTarget",
      "name" : "OpenParking",
      "path" : "Sources/OpenParking",
      "product_dependencies" : [
        "GeoJSON",
        "HTMLString",
        "Regex"
      ],
      "product_memberships" : [
        "OpenParking",
        "OpenParkingTestSupport"
      ],
      "sources" : [
        "Coordinates.swift",
        "DataPoint.swift",
        "Datasource.swift",
        "Date.swift",
        "Error.swift",
        "GeoJson.swift",
        "HTMLString.swift",
        "Lot.swift",
        "Network.swift",
        "Regex.swift",
        "Warning.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.3"
}
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4609320-0":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:basic-6.1-latest swift build --triple x86_64-unknown-linux-gnu -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 2>&1
basic-6.1-latest: Pulling from finestructure/spi-images
Digest: sha256:3bdcac04179f4ed3e5b8e9dbd6e74bbf5ebc0f4fde48bbaad7d1e5c757e65bcb
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:basic-6.1-latest
Fetching https://github.com/sharplet/Regex
Fetching https://github.com/kiliankoe/GeoJSON
Fetching https://github.com/alexaubry/HTMLString
[1/1254] Fetching regex
[817/1694] Fetching regex, geojson
[1257/3325] Fetching regex, geojson, htmlstring
Fetched https://github.com/alexaubry/HTMLString from cache (0.29s)
[1293/1694] Fetching regex, geojson
Fetched https://github.com/kiliankoe/GeoJSON from cache (0.56s)
Fetched https://github.com/sharplet/Regex from cache (0.57s)
Computing version for https://github.com/alexaubry/HTMLString
Computed https://github.com/alexaubry/HTMLString at 5.0.0 (2.38s)
Computing version for https://github.com/sharplet/Regex
Computed https://github.com/sharplet/Regex at 2.1.1 (1.82s)
Computing version for https://github.com/kiliankoe/GeoJSON
Computed https://github.com/kiliankoe/GeoJSON at 0.6.2 (0.46s)
Fetching https://github.com/flight-school/AnyCodable.git
[1/782] Fetching anycodable
Fetched https://github.com/flight-school/AnyCodable.git from cache (0.19s)
Computing version for https://github.com/flight-school/AnyCodable.git
Computed https://github.com/flight-school/AnyCodable.git at 0.6.7 (0.65s)
Creating working copy for https://github.com/kiliankoe/GeoJSON
Working copy of https://github.com/kiliankoe/GeoJSON resolved at 0.6.2
Creating working copy for https://github.com/alexaubry/HTMLString
Working copy of https://github.com/alexaubry/HTMLString resolved at 5.0.0
Creating working copy for https://github.com/flight-school/AnyCodable.git
Working copy of https://github.com/flight-school/AnyCodable.git resolved at 0.6.7
Creating working copy for https://github.com/sharplet/Regex
Working copy of https://github.com/sharplet/Regex resolved at 2.1.1
Building for debugging...
[0/7] Write sources
[6/7] Write swift-version-24593BA9C3E375BF.txt
[8/22] Compiling AnyCodable AnyEncodable.swift
[9/22] Compiling Regex Regex.swift
[10/22] Compiling Regex String+ReplaceMatching.swift
[11/22] Compiling Regex ThreadLocal.swift
[12/22] Compiling Regex Options.swift
[13/22] Compiling AnyCodable AnyDecodable.swift
[14/22] Emitting module AnyCodable
[15/22] Compiling AnyCodable AnyCodable.swift
[16/23] Compiling HTMLString Mappings.swift
[17/23] Compiling HTMLString NSString+HTMLString.swift
[18/23] Compiling Regex Foundation+Ranges.swift
[19/23] Emitting module Regex
[20/23] Compiling Regex MatchResult.swift
[23/24] Emitting module HTMLString
[24/24] Compiling HTMLString HTMLString.swift
[26/38] Compiling GeoJSON MultiPoint.swift
[27/38] Compiling GeoJSON MultiPolygon.swift
[28/39] Compiling GeoJSON LineString.swift
[29/39] Compiling GeoJSON MultiLineString.swift
[30/39] Compiling GeoJSON Point.swift
[31/39] Compiling GeoJSON Polygon.swift
[32/39] Compiling GeoJSON Geometry.swift
[33/39] Compiling GeoJSON GeometryCollection.swift
[34/39] Emitting module GeoJSON
[35/39] Compiling GeoJSON BoundingBox.swift
[36/39] Compiling GeoJSON Feature.swift
[37/39] Compiling GeoJSON FeatureCollection.swift
[38/39] Compiling GeoJSON GeoJSONDocument.swift
[39/39] Compiling GeoJSON Position.swift
[41/51] Compiling OpenParking Regex.swift
[42/52] Compiling OpenParking HTMLString.swift
[43/52] Compiling OpenParking Error.swift
[44/52] Compiling OpenParking GeoJson.swift
[45/52] Compiling OpenParking Lot.swift
[46/52] Compiling OpenParking Coordinates.swift
[47/52] Compiling OpenParking DataPoint.swift
[48/52] Emitting module OpenParking
/host/spi-builder-workspace/Sources/OpenParking/Date.swift:3:13: warning: var 'dateFormatter' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 1 | import Foundation
 2 |
 3 | private var dateFormatter = DateFormatter()
   |             |- warning: var 'dateFormatter' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
   |             |- note: convert 'dateFormatter' to a 'let' constant to make 'Sendable' shared state immutable
   |             |- note: add '@MainActor' to make var 'dateFormatter' part of global actor 'MainActor'
   |             `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 4 |
 5 | /// Pre-defined date format values for use with `String.date(withFormat:)`.
/host/spi-builder-workspace/Sources/OpenParking/Warning.swift:14:16: warning: static property 'warnings' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
12 |     }
13 |
14 |     static var warnings: [Warning] = []
   |                |- warning: static property 'warnings' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
   |                |- note: convert 'warnings' to a 'let' constant to make 'Sendable' shared state immutable
   |                |- note: add '@MainActor' to make static property 'warnings' part of global actor 'MainActor'
   |                `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
15 |
16 |     public static func flush() -> [Warning] {
[49/52] Compiling OpenParking Datasource.swift
/host/spi-builder-workspace/Sources/OpenParking/Date.swift:3:13: warning: var 'dateFormatter' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 1 | import Foundation
 2 |
 3 | private var dateFormatter = DateFormatter()
   |             |- warning: var 'dateFormatter' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
   |             |- note: convert 'dateFormatter' to a 'let' constant to make 'Sendable' shared state immutable
   |             |- note: add '@MainActor' to make var 'dateFormatter' part of global actor 'MainActor'
   |             `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 4 |
 5 | /// Pre-defined date format values for use with `String.date(withFormat:)`.
[50/52] Compiling OpenParking Date.swift
/host/spi-builder-workspace/Sources/OpenParking/Date.swift:3:13: warning: var 'dateFormatter' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 1 | import Foundation
 2 |
 3 | private var dateFormatter = DateFormatter()
   |             |- warning: var 'dateFormatter' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
   |             |- note: convert 'dateFormatter' to a 'let' constant to make 'Sendable' shared state immutable
   |             |- note: add '@MainActor' to make var 'dateFormatter' part of global actor 'MainActor'
   |             `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 4 |
 5 | /// Pre-defined date format values for use with `String.date(withFormat:)`.
[51/52] Compiling OpenParking Warning.swift
/host/spi-builder-workspace/Sources/OpenParking/Warning.swift:14:16: warning: static property 'warnings' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
12 |     }
13 |
14 |     static var warnings: [Warning] = []
   |                |- warning: static property 'warnings' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
   |                |- note: convert 'warnings' to a 'let' constant to make 'Sendable' shared state immutable
   |                |- note: add '@MainActor' to make static property 'warnings' part of global actor 'MainActor'
   |                `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
15 |
16 |     public static func flush() -> [Warning] {
[52/52] Compiling OpenParking Network.swift
/host/spi-builder-workspace/Sources/OpenParking/Network.swift:87:17: warning: capture of 'completion' with non-sendable type '(Result<(Data, HTTPURLResponse), OpenParkingError>) -> Void' in a '@Sendable' closure; this is an error in the Swift 6 language mode
 85 |             let response = response as? HTTPURLResponse,
 86 |             error == nil else {
 87 |                 completion(.failure(.network(error!)))
    |                 |- warning: capture of 'completion' with non-sendable type '(Result<(Data, HTTPURLResponse), OpenParkingError>) -> Void' in a '@Sendable' closure; this is an error in the Swift 6 language mode
    |                 `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
 88 |                 return
 89 |         }
[54/55] Compiling OpenParkingTestSupport Validate.swift
[55/55] Emitting module OpenParkingTestSupport
Build complete! (15.61s)
Build complete.
{
  "dependencies" : [
    {
      "identity" : "geojson",
      "requirement" : {
        "range" : [
          {
            "lower_bound" : "0.4.0",
            "upper_bound" : "1.0.0"
          }
        ]
      },
      "type" : "sourceControl",
      "url" : "https://github.com/kiliankoe/GeoJSON"
    },
    {
      "identity" : "htmlstring",
      "requirement" : {
        "range" : [
          {
            "lower_bound" : "5.0.0",
            "upper_bound" : "6.0.0"
          }
        ]
      },
      "type" : "sourceControl",
      "url" : "https://github.com/alexaubry/HTMLString"
    },
    {
      "identity" : "regex",
      "requirement" : {
        "range" : [
          {
            "lower_bound" : "2.1.0",
            "upper_bound" : "3.0.0"
          }
        ]
      },
      "type" : "sourceControl",
      "url" : "https://github.com/sharplet/Regex"
    }
  ],
  "manifest_display_name" : "OpenParking",
  "name" : "OpenParking",
  "path" : "/host/spi-builder-workspace",
  "platforms" : [
    {
      "name" : "macos",
      "version" : "10.13"
    },
    {
      "name" : "ios",
      "version" : "11.0"
    },
    {
      "name" : "watchos",
      "version" : "4.0"
    },
    {
      "name" : "tvos",
      "version" : "11.0"
    }
  ],
  "products" : [
    {
      "name" : "OpenParking",
      "targets" : [
        "OpenParking"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    },
    {
      "name" : "OpenParkingTestSupport",
      "targets" : [
        "OpenParkingTestSupport"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "OpenParkingTests",
      "module_type" : "SwiftTarget",
      "name" : "OpenParkingTests",
      "path" : "Tests/OpenParkingTests",
      "sources" : [
        "OpenParkingTests.swift"
      ],
      "target_dependencies" : [
        "OpenParking"
      ],
      "type" : "test"
    },
    {
      "c99name" : "OpenParkingTestSupport",
      "module_type" : "SwiftTarget",
      "name" : "OpenParkingTestSupport",
      "path" : "Sources/OpenParkingTestSupport",
      "product_memberships" : [
        "OpenParkingTestSupport"
      ],
      "sources" : [
        "Validate.swift"
      ],
      "target_dependencies" : [
        "OpenParking"
      ],
      "type" : "library"
    },
    {
      "c99name" : "OpenParking",
      "module_type" : "SwiftTarget",
      "name" : "OpenParking",
      "path" : "Sources/OpenParking",
      "product_dependencies" : [
        "GeoJSON",
        "HTMLString",
        "Regex"
      ],
      "product_memberships" : [
        "OpenParking",
        "OpenParkingTestSupport"
      ],
      "sources" : [
        "Coordinates.swift",
        "DataPoint.swift",
        "Datasource.swift",
        "Date.swift",
        "Error.swift",
        "GeoJson.swift",
        "HTMLString.swift",
        "Lot.swift",
        "Network.swift",
        "Regex.swift",
        "Warning.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.3"
}
basic-6.1-latest: Pulling from finestructure/spi-images
Digest: sha256:3bdcac04179f4ed3e5b8e9dbd6e74bbf5ebc0f4fde48bbaad7d1e5c757e65bcb
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:basic-6.1-latest
Done.