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 GeoProjector, reference 0.1.1 (81395c), with Swift 6.0 for Linux on 30 Nov 2024 07:14:52 UTC.

Swift 6 data race errors: 3

Build Command

bash -c docker run --pull=always --rm -v "checkouts-4606859-1":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:basic-6.0-latest swift build --triple x86_64-unknown-linux-gnu -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete -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.58.1
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/maparoni/GeoProjector.git
Reference: 0.1.1
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/maparoni/GeoProjector
 * tag               0.1.1      -> FETCH_HEAD
HEAD is now at 81395c8 Tweaks (#20)
Cloned https://github.com/maparoni/GeoProjector.git
Revision (git rev-parse @):
81395c8281c84d647bde1b6d8ca1aeb37f5978a6
SUCCESS checkout https://github.com/maparoni/GeoProjector.git at 0.1.1
========================================
Build
========================================
Selected platform:         linux
Swift version:             6.0
Building package at path:  $PWD
https://github.com/maparoni/GeoProjector.git
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4606859-1":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:basic-6.0-latest swift build --triple x86_64-unknown-linux-gnu -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete -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.0-latest: Pulling from finestructure/spi-images
Digest: sha256:47d26c99ca4f1ac0a332c85fd5b13ff4390e72115219984a57a68fe9d1063a05
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:basic-6.0-latest
Fetching https://github.com/maparoni/geojsonkit.git
Fetching https://github.com/maparoni/geojsonkit-turf
[1/3064] Fetching geojsonkit-turf
[1350/3426] Fetching geojsonkit-turf, geojsonkit
Fetched https://github.com/maparoni/geojsonkit-turf from cache (0.50s)
Fetched https://github.com/maparoni/geojsonkit.git from cache (0.50s)
Computing version for https://github.com/maparoni/geojsonkit.git
Computed https://github.com/maparoni/geojsonkit.git at 0.6.0 (0.49s)
Computing version for https://github.com/maparoni/geojsonkit-turf
Computed https://github.com/maparoni/geojsonkit-turf at 0.4.1 (0.50s)
Fetching https://github.com/apple/swift-argument-parser
[1/12395] Fetching swift-argument-parser
Fetched https://github.com/apple/swift-argument-parser from cache (0.75s)
Computing version for https://github.com/apple/swift-argument-parser
Computed https://github.com/apple/swift-argument-parser at 1.5.0 (0.45s)
Creating working copy for https://github.com/maparoni/geojsonkit-turf
Working copy of https://github.com/maparoni/geojsonkit-turf resolved at 0.4.1
Creating working copy for https://github.com/maparoni/geojsonkit.git
Working copy of https://github.com/maparoni/geojsonkit.git resolved at 0.6.0
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
[1/1] Compiling plugin GenerateManual
Building for debugging...
[1/6] Write sources
[5/6] Write swift-version-24593BA9C3E375BF.txt
[7/9] Compiling GeoJSONKit GeoJSON.swift
[8/9] Compiling GeoJSONKit GeoJSON+Codable.swift
[9/9] Emitting module GeoJSONKit
[11/26] Emitting module GeoJSONKitTurf
[12/28] Compiling GeoJSONKitTurf GeoJSON+Helpers.swift
[13/28] Compiling GeoJSONKitTurf Position+Helpers.swift
[14/28] Compiling GeoJSONKitTurf DouglasPeucker.swift
[15/28] Compiling GeoJSONKitTurf MonotoneChain.swift
[16/28] Compiling GeoJSONKitTurf Turf+Polygon.swift
[17/28] Compiling GeoJSONKitTurf Turf.swift
[18/28] Compiling GeoJSONKitTurf Spline.swift
[19/28] Compiling GeoJSONKitTurf SutherlandHodgeman.swift
[20/28] Compiling GeoJSONKitTurf ClosestCoordinate.swift
[21/28] Compiling GeoJSONKitTurf ConvexHull.swift
[22/28] Compiling GeoJSONKitTurf CoreLocation.swift
[23/28] Compiling GeoJSONKitTurf Turf+LineString.swift
[24/28] Compiling GeoJSONKitTurf Turf+LinearRing.swift
[25/28] Compiling GeoJSONKitTurf RadianCoordinate2D.swift
[26/28] Compiling GeoJSONKitTurf Simplify.swift
[27/28] Compiling GeoJSONKitTurf Turf+BoundingBox.swift
[28/28] Compiling GeoJSONKitTurf Turf+GeometryObject.swift
[30/37] Compiling GeoProjector Projections.swift
[31/38] Compiling GeoProjector Projections+Orthographic.swift
[32/38] Compiling GeoProjector Interpolator.swift
[33/38] Emitting module GeoProjector
/host/spi-builder-workspace/Sources/GeoProjector/Structs.swift:89:21: warning: static property 'zero' is not concurrency-safe because non-'Sendable' type 'EdgeInsets' may have shared mutable state; this is an error in the Swift 6 language mode
 86 | }
 87 |
 88 | public struct EdgeInsets: Hashable {
    |               `- note: consider making struct 'EdgeInsets' conform to the 'Sendable' protocol
 89 |   public static let zero = EdgeInsets()
    |                     |- warning: static property 'zero' is not concurrency-safe because non-'Sendable' type 'EdgeInsets' may have shared mutable state; this is an error in the Swift 6 language mode
    |                     |- note: annotate 'zero' 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
 90 |
 91 |   public init(top: Double = 0, left: Double = 0, bottom: Double = 0, right: Double = 0) {
/host/spi-builder-workspace/Sources/GeoProjector/Structs.swift:17:21: warning: static property 'zero' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 15 |
 16 | public struct Point: Hashable {
 17 |   public static var zero = Point(x: 0, y: 0)
    |                     |- warning: static property 'zero' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |                     |- note: convert 'zero' to a 'let' constant to make 'Sendable' shared state immutable
    |                     |- note: annotate 'zero' 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
 18 |
 19 |   public init(x: Double, y: Double) {
/host/spi-builder-workspace/Sources/GeoProjector/Structs.swift:34:21: warning: static property 'zero' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 32 |
 33 | public struct Size: Hashable {
 34 |   public static var zero = Size(width: 0, height: 0)
    |                     |- warning: static property 'zero' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |                     |- note: convert 'zero' to a 'let' constant to make 'Sendable' shared state immutable
    |                     |- note: annotate 'zero' 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
 35 |
 36 |   public init(width: Double, height: Double) {
[34/38] Compiling GeoProjector Projections+Pseudocylindrical.swift
[35/38] Compiling GeoProjector Structs.swift
/host/spi-builder-workspace/Sources/GeoProjector/Structs.swift:17:21: warning: static property 'zero' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 15 |
 16 | public struct Point: Hashable {
 17 |   public static var zero = Point(x: 0, y: 0)
    |                     |- warning: static property 'zero' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |                     |- note: convert 'zero' to a 'let' constant to make 'Sendable' shared state immutable
    |                     |- note: annotate 'zero' 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
 18 |
 19 |   public init(x: Double, y: Double) {
/host/spi-builder-workspace/Sources/GeoProjector/Structs.swift:34:21: warning: static property 'zero' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 32 |
 33 | public struct Size: Hashable {
 34 |   public static var zero = Size(width: 0, height: 0)
    |                     |- warning: static property 'zero' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |                     |- note: convert 'zero' to a 'let' constant to make 'Sendable' shared state immutable
    |                     |- note: annotate 'zero' 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
 35 |
 36 |   public init(width: Double, height: Double) {
/host/spi-builder-workspace/Sources/GeoProjector/Structs.swift:89:21: warning: static property 'zero' is not concurrency-safe because non-'Sendable' type 'EdgeInsets' may have shared mutable state; this is an error in the Swift 6 language mode
 86 | }
 87 |
 88 | public struct EdgeInsets: Hashable {
    |               `- note: consider making struct 'EdgeInsets' conform to the 'Sendable' protocol
 89 |   public static let zero = EdgeInsets()
    |                     |- warning: static property 'zero' is not concurrency-safe because non-'Sendable' type 'EdgeInsets' may have shared mutable state; this is an error in the Swift 6 language mode
    |                     |- note: annotate 'zero' 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
 90 |
 91 |   public init(top: Double = 0, left: Double = 0, bottom: Double = 0, right: Double = 0) {
[36/38] Compiling GeoProjector Projections+Azimuthal.swift
[37/38] Compiling GeoProjector Projection.swift
/host/spi-builder-workspace/Sources/GeoProjector/Structs.swift:89:21: warning: static property 'zero' is not concurrency-safe because non-'Sendable' type 'EdgeInsets' may have shared mutable state; this is an error in the Swift 6 language mode
 86 | }
 87 |
 88 | public struct EdgeInsets: Hashable {
    |               `- note: consider making struct 'EdgeInsets' conform to the 'Sendable' protocol
 89 |   public static let zero = EdgeInsets()
    |                     |- warning: static property 'zero' is not concurrency-safe because non-'Sendable' type 'EdgeInsets' may have shared mutable state; this is an error in the Swift 6 language mode
    |                     |- note: annotate 'zero' 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
 90 |
 91 |   public init(top: Double = 0, left: Double = 0, bottom: Double = 0, right: Double = 0) {
[38/38] Compiling GeoProjector Projections+Cylindrical.swift
[40/46] Compiling GeoDrawer GeoMap+UIKit.swift
[41/46] Compiling GeoDrawer GeoMap+AppKit.swift
[42/46] Compiling GeoDrawer GeoJSON+Continents.swift
[43/46] Compiling GeoDrawer GeoDrawer+UIKit.swift
[44/46] Emitting module GeoDrawer
[45/46] Compiling GeoDrawer GeoDrawer+CoreGraphics.swift
[46/46] Compiling GeoDrawer GeoDrawer.swift
/host/spi-builder-workspace/Sources/GeoDrawer/GeoDrawer.swift:91:49: warning: reference to static property 'zero' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
 89 |           return acc
 90 |         } else if let first = points.first {
 91 |           var rect = Rect(origin: first, size: .zero)
    |                                                 `- warning: reference to static property 'zero' is not concurrency-safe because it involves shared mutable state; this is an error in the Swift 6 language mode
 92 |           for point in points.dropFirst() {
 93 |             rect.absorb(point)
/host/spi-builder-workspace/Sources/GeoProjector/Structs.swift:34:21: note: static property declared here
 32 |
 33 | public struct Size: Hashable {
 34 |   public static var zero = Size(width: 0, height: 0)
    |                     `- note: static property declared here
 35 |
 36 |   public init(width: Double, height: Double) {
Build complete! (18.60s)
Build complete.
{
  "dependencies" : [
    {
      "identity" : "geojsonkit",
      "requirement" : {
        "range" : [
          {
            "lower_bound" : "0.5.0",
            "upper_bound" : "1.0.0"
          }
        ]
      },
      "type" : "sourceControl",
      "url" : "https://github.com/maparoni/geojsonkit.git"
    },
    {
      "identity" : "geojsonkit-turf",
      "requirement" : {
        "range" : [
          {
            "lower_bound" : "0.1.0",
            "upper_bound" : "1.0.0"
          }
        ]
      },
      "type" : "sourceControl",
      "url" : "https://github.com/maparoni/geojsonkit-turf"
    }
  ],
  "manifest_display_name" : "GeoProjector",
  "name" : "GeoProjector",
  "path" : "/host/spi-builder-workspace",
  "platforms" : [
    {
      "name" : "macos",
      "version" : "12.0"
    },
    {
      "name" : "ios",
      "version" : "15.0"
    },
    {
      "name" : "watchos",
      "version" : "8.0"
    },
    {
      "name" : "tvos",
      "version" : "15.0"
    },
    {
      "name" : "xros",
      "version" : "1.0"
    }
  ],
  "products" : [
    {
      "name" : "GeoProjector",
      "targets" : [
        "GeoProjector"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    },
    {
      "name" : "GeoDrawer",
      "targets" : [
        "GeoDrawer"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "GeoProjectorTests",
      "module_type" : "SwiftTarget",
      "name" : "GeoProjectorTests",
      "path" : "Tests/GeoProjectorTests",
      "sources" : [
        "MapBoundsTests.swift",
        "ProjectionTests.swift",
        "TranslationTests.swift"
      ],
      "target_dependencies" : [
        "GeoProjector"
      ],
      "type" : "test"
    },
    {
      "c99name" : "GeoProjector",
      "module_type" : "SwiftTarget",
      "name" : "GeoProjector",
      "path" : "Sources/GeoProjector",
      "product_dependencies" : [
        "GeoJSONKit",
        "GeoJSONKitTurf"
      ],
      "product_memberships" : [
        "GeoProjector",
        "GeoDrawer"
      ],
      "sources" : [
        "Interpolator.swift",
        "Projection.swift",
        "Projections+Azimuthal.swift",
        "Projections+Cylindrical.swift",
        "Projections+Orthographic.swift",
        "Projections+Pseudocylindrical.swift",
        "Projections.swift",
        "Structs.swift"
      ],
      "type" : "library"
    },
    {
      "c99name" : "GeoDrawer",
      "module_type" : "SwiftTarget",
      "name" : "GeoDrawer",
      "path" : "Sources/GeoDrawer",
      "product_memberships" : [
        "GeoDrawer"
      ],
      "sources" : [
        "GeoDrawer+CoreGraphics.swift",
        "GeoDrawer+UIKit.swift",
        "GeoDrawer.swift",
        "GeoJSON+Continents.swift",
        "GeoMap+AppKit.swift",
        "GeoMap+UIKit.swift"
      ],
      "target_dependencies" : [
        "GeoProjector"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.7"
}
basic-6.0-latest: Pulling from finestructure/spi-images
Digest: sha256:47d26c99ca4f1ac0a332c85fd5b13ff4390e72115219984a57a68fe9d1063a05
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:basic-6.0-latest
Done.