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

Failed to build MicroExpress, reference 0.0.1 (06f66c), with Swift 6.1 for macOS (SPM) on 27 Apr 2025 00:27:35 UTC.

Build Command

env DEVELOPER_DIR=/Applications/Xcode-16.3.0.app xcrun swift build --arch arm64

Build Log

========================================
RunAll
========================================
Builder version: 4.61.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/helje5/MicroExpress.git
Reference: 0.0.1
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/helje5/MicroExpress
 * tag               0.0.1      -> FETCH_HEAD
HEAD is now at 06f66cf Language tag
Cloned https://github.com/helje5/MicroExpress.git
Revision (git rev-parse @):
06f66cf05a8cd8a1e0dca120d615afbc470bde10
SUCCESS checkout https://github.com/helje5/MicroExpress.git at 0.0.1
Fetching https://github.com/swift-server/http
[1/1874] Fetching http
Fetched https://github.com/swift-server/http from cache (0.92s)
Computing version for https://github.com/swift-server/http
Computed https://github.com/swift-server/http at 0.1.0 (1.53s)
Creating working copy for https://github.com/swift-server/http
Working copy of https://github.com/swift-server/http resolved at 0.1.0
========================================
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": "microexpress",
      "name": "MicroExpress",
      "url": "https://github.com/helje5/MicroExpress.git",
      "version": "unspecified",
      "path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/MicroExpress",
      "dependencies": [
        {
          "identity": "http",
          "name": "SwiftServerHttp",
          "url": "https://github.com/swift-server/http",
          "version": "0.1.0",
          "path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/http",
          "dependencies": [
          ]
        }
      ]
    }
  ]
}
Fetching https://github.com/helje5/MicroExpress.git
[1/259] Fetching microexpress
Fetched https://github.com/helje5/MicroExpress.git from cache (0.64s)
Fetching https://github.com/swift-server/http from cache
Fetched https://github.com/swift-server/http from cache (0.39s)
Computing version for https://github.com/swift-server/http
Computed https://github.com/swift-server/http at 0.1.0 (0.44s)
Creating working copy for https://github.com/swift-server/http
Working copy of https://github.com/swift-server/http resolved at 0.1.0
Creating working copy for https://github.com/helje5/MicroExpress.git
Working copy of https://github.com/helje5/MicroExpress.git resolved at 0.0.1 (06f66cf)
warning: '.resolve-product-dependencies': dependency 'microexpress' is not used by any target
Found 1 product dependencies
  - SwiftServerHttp
========================================
Build
========================================
Selected platform:         macosSpm
Swift version:             6.1
Building package at path:  $PWD
https://github.com/helje5/MicroExpress.git
https://github.com/helje5/MicroExpress.git
{
  "dependencies" : [
    {
      "identity" : "http",
      "requirement" : {
        "range" : [
          {
            "lower_bound" : "0.1.0",
            "upper_bound" : "1.0.0"
          }
        ]
      },
      "type" : "sourceControl",
      "url" : "https://github.com/swift-server/http"
    }
  ],
  "manifest_display_name" : "MicroExpress",
  "name" : "MicroExpress",
  "path" : "/Users/admin/builder/spi-builder-workspace",
  "platforms" : [
  ],
  "products" : [
    {
      "name" : "MicroExpress",
      "targets" : [
        "MicroExpress"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    },
    {
      "name" : "MicroHelloServer",
      "targets" : [
        "MicroHelloServer"
      ],
      "type" : {
        "executable" : null
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "MicroHelloServer",
      "module_type" : "SwiftTarget",
      "name" : "MicroHelloServer",
      "path" : "Sources/MicroHelloServer",
      "product_memberships" : [
        "MicroHelloServer"
      ],
      "sources" : [
        "TodoModel.swift",
        "main.swift"
      ],
      "target_dependencies" : [
        "MicroExpress"
      ],
      "type" : "executable"
    },
    {
      "c99name" : "MicroExpress",
      "module_type" : "SwiftTarget",
      "name" : "MicroExpress",
      "path" : "Sources/MicroExpress",
      "product_dependencies" : [
        "HTTP"
      ],
      "product_memberships" : [
        "MicroExpress",
        "MicroHelloServer"
      ],
      "sources" : [
        "CORS.swift",
        "Express.swift",
        "IncomingMessage.swift",
        "Middleware.swift",
        "QueryString.swift",
        "Router.swift",
        "ServerResponse.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "4.0"
}
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-16.3.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
Building for debugging...
[0/9] Write sources
[1/9] Write MicroHelloServer-entitlement.plist
[1/9] Write sources
[4/9] Write swift-version-2F0A5646E1D333AE.txt
[5/9] Compiling CHTTPParser http_parser.c
[7/20] Compiling HTTP HTTPResponse.swift
[8/20] Compiling HTTP HTTPMethod.swift
[9/20] Compiling HTTP HTTPRequest.swift
[10/20] Compiling HTTP PoCSocket.swift
/Users/admin/builder/spi-builder-workspace/.build/checkouts/http/Sources/HTTP/PoCSocket/PoCSocket.swift:230:51: error: overlapping accesses to 'addr_in', but modification requires exclusive access; consider copying to a local variable
228 |         var addr_in = sockaddr_in()
229 |
230 |         listeningPort = try withUnsafePointer(to: &addr_in) { pointer in
    |                                                   `- error: overlapping accesses to 'addr_in', but modification requires exclusive access; consider copying to a local variable
231 |             var len = socklen_t(MemoryLayout<sockaddr_in>.size)
232 |             if getsockname(socketfd, UnsafeMutablePointer(OpaquePointer(pointer)), &len) != 0 {
    :
236 |                 return Int32(ntohs(addr_in.sin_port))
237 |             #else
238 |                 return Int32(Int(OSHostByteOrder()) != OSLittleEndian ? addr_in.sin_port.littleEndian : addr_in.sin_port.bigEndian)
    |                                                                                 `- note: conflicting access is here
239 |             #endif
240 |         }
[11/20] Compiling HTTP HTTPServer.swift
[12/20] Compiling HTTP HTTPVersion.swift
[13/20] Compiling HTTP PoCSocketConnectionListener.swift
[14/20] Compiling HTTP HTTPStreamingParser.swift
[15/21] Emitting module HTTP
[16/21] Compiling HTTP HTTPCommon.swift
[17/21] Compiling HTTP HTTPHeaders.swift
[18/21] Compiling HTTP PoCSocketSimpleServer.swift
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-16.3.0.app xcrun swift build --arch arm64
[0/1] Planning build
Building for debugging...
[0/4] Write swift-version-2F0A5646E1D333AE.txt
[2/15] Compiling HTTP HTTPMethod.swift
[3/15] Compiling HTTP HTTPResponse.swift
[4/15] Compiling HTTP HTTPRequest.swift
[5/16] Compiling HTTP HTTPCommon.swift
[6/16] Compiling HTTP HTTPHeaders.swift
[7/16] Emitting module HTTP
[8/16] Compiling HTTP PoCSocketConnectionListener.swift
[9/16] Compiling HTTP PoCSocket.swift
/Users/admin/builder/spi-builder-workspace/.build/checkouts/http/Sources/HTTP/PoCSocket/PoCSocket.swift:230:51: error: overlapping accesses to 'addr_in', but modification requires exclusive access; consider copying to a local variable
228 |         var addr_in = sockaddr_in()
229 |
230 |         listeningPort = try withUnsafePointer(to: &addr_in) { pointer in
    |                                                   `- error: overlapping accesses to 'addr_in', but modification requires exclusive access; consider copying to a local variable
231 |             var len = socklen_t(MemoryLayout<sockaddr_in>.size)
232 |             if getsockname(socketfd, UnsafeMutablePointer(OpaquePointer(pointer)), &len) != 0 {
    :
236 |                 return Int32(ntohs(addr_in.sin_port))
237 |             #else
238 |                 return Int32(Int(OSHostByteOrder()) != OSLittleEndian ? addr_in.sin_port.littleEndian : addr_in.sin_port.bigEndian)
    |                                                                                 `- note: conflicting access is here
239 |             #endif
240 |         }
[10/16] Compiling HTTP HTTPVersion.swift
[11/16] Compiling HTTP HTTPServer.swift
[12/16] Compiling HTTP HTTPStreamingParser.swift
[13/16] Compiling HTTP PoCSocketSimpleServer.swift
BUILD FAILURE 6.1 macosSpm