The Swift Package Index logo.Swift Package Index

Build Information

Successful build of DangerXcodeStaticAnalyzer, reference master (3d1969), with Swift 6.1 for Android on 27 May 2025 16:21:40 UTC.

Swift 6 data race errors: 2

Build Command

bash -c docker run --pull=always --rm -v "checkouts-4609320-3":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:android-6.1-latest swift build --swift-sdk aarch64-unknown-linux-android24 -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.63.1
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/healthtap/dangerxcodestaticanalyzer.git
Reference: master
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/healthtap/dangerxcodestaticanalyzer
 * branch            master     -> FETCH_HEAD
 * [new branch]      master     -> origin/master
HEAD is now at 3d19696 Update Package.swift
Cloned https://github.com/healthtap/dangerxcodestaticanalyzer.git
Revision (git rev-parse @):
3d19696202633d2f33848242e5e580d100d2bf88
SUCCESS checkout https://github.com/healthtap/dangerxcodestaticanalyzer.git at master
========================================
Build
========================================
Selected platform:         android
Swift version:             6.1
Building package at path:  $PWD
https://github.com/healthtap/dangerxcodestaticanalyzer.git
https://github.com/healthtap/dangerxcodestaticanalyzer.git
WARNING: environment variable SUPPRESS_SWIFT_6_FLAGS is not set
{
  "dependencies" : [
    {
      "identity" : "swift",
      "requirement" : {
        "range" : [
          {
            "lower_bound" : "3.0.0",
            "upper_bound" : "4.0.0"
          }
        ]
      },
      "type" : "sourceControl",
      "url" : "https://github.com/danger/swift.git"
    }
  ],
  "manifest_display_name" : "DangerXcodeStaticAnalyzer",
  "name" : "DangerXcodeStaticAnalyzer",
  "path" : "/host/spi-builder-workspace",
  "platforms" : [
  ],
  "products" : [
    {
      "name" : "DangerXcodeStaticAnalyzer",
      "targets" : [
        "DangerXcodeStaticAnalyzer"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "DangerXcodeStaticAnalyzer",
      "module_type" : "SwiftTarget",
      "name" : "DangerXcodeStaticAnalyzer",
      "path" : "Sources/DangerXcodeStaticAnalyzer",
      "product_dependencies" : [
        "Danger"
      ],
      "product_memberships" : [
        "DangerXcodeStaticAnalyzer"
      ],
      "sources" : [
        "DangerXcodeStaticAnalyzer.swift",
        "ShellExecutor.swift",
        "XcodeStaticAnalyzerPlist.swift",
        "XcodeStaticAnalyzerViolation.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.1"
}
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4609320-3":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:android-6.1-latest swift build --swift-sdk aarch64-unknown-linux-android24 -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
android-6.1-latest: Pulling from finestructure/spi-images
Digest: sha256:fe1962677657b2408c217cb5cceb3c09bc1d91486e360cebbc6eee461a5945d8
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:android-6.1-latest
Fetching https://github.com/danger/swift.git
[1/10264] Fetching swift
Fetched https://github.com/danger/swift.git from cache (0.86s)
Computing version for https://github.com/danger/swift.git
Computed https://github.com/danger/swift.git at 3.21.1 (1.80s)
Fetching https://github.com/nerdishbynature/octokit.swift
Fetching https://github.com/shibapm/Logger
[1/116] Fetching logger
[97/5111] Fetching logger, octokit.swift
Fetched https://github.com/shibapm/Logger from cache (0.58s)
Fetching https://github.com/mxcl/Version
Fetched https://github.com/nerdishbynature/octokit.swift from cache (0.58s)
[1/288] Fetching version
Fetched https://github.com/mxcl/Version from cache (0.35s)
Computing version for https://github.com/nerdishbynature/octokit.swift
Computed https://github.com/nerdishbynature/octokit.swift at 0.14.0 (1.70s)
Fetching https://github.com/nerdishbynature/RequestKit.git
[1/1554] Fetching requestkit
Fetched https://github.com/nerdishbynature/RequestKit.git from cache (0.40s)
Computing version for https://github.com/nerdishbynature/RequestKit.git
Computed https://github.com/nerdishbynature/RequestKit.git at 3.3.0 (1.31s)
Computing version for https://github.com/mxcl/Version
Computed https://github.com/mxcl/Version at 2.1.0 (0.92s)
Computing version for https://github.com/shibapm/Logger
Computed https://github.com/shibapm/Logger at 0.2.3 (3.68s)
Creating working copy for https://github.com/mxcl/Version
Working copy of https://github.com/mxcl/Version resolved at 2.1.0
Creating working copy for https://github.com/shibapm/Logger
Working copy of https://github.com/shibapm/Logger resolved at 0.2.3
Creating working copy for https://github.com/danger/swift.git
Working copy of https://github.com/danger/swift.git resolved at 3.21.1
Creating working copy for https://github.com/nerdishbynature/octokit.swift
Working copy of https://github.com/nerdishbynature/octokit.swift resolved at 0.14.0
Creating working copy for https://github.com/nerdishbynature/RequestKit.git
Working copy of https://github.com/nerdishbynature/RequestKit.git resolved at 3.3.0
warning: 'octokit.swift': found 1 file(s) which are unhandled; explicitly declare them as resources or exclude from the target
    /host/spi-builder-workspace/.build/checkouts/octokit.swift/OctoKit/Info.plist
Building for debugging...
[0/7] Write sources
[6/7] Write swift-version-24593BA9C3E375BF.txt
[8/15] Compiling DangerShellExecutor ShellExecutor.swift
[9/15] Emitting module DangerShellExecutor
[10/15] Compiling Logger Logger.swift
[11/15] Emitting module Logger
[12/16] Compiling RequestKit Router.swift
[13/17] Compiling RequestKit JSONPostRouter.swift
[14/17] Compiling RequestKit RequestKitSession.swift
[15/17] Emitting module RequestKit
[19/44] Compiling OctoKit Statuses.swift
[20/44] Compiling OctoKit String+PercentEncoding.swift
[21/44] Compiling OctoKit Team.swift
[22/47] Emitting module OctoKit
[23/47] Compiling OctoKit Configuration.swift
[24/47] Compiling OctoKit File.swift
[25/47] Compiling OctoKit Follow.swift
[26/47] Compiling OctoKit Gist.swift
[27/47] Compiling OctoKit Review.swift
[28/47] Compiling OctoKit Search.swift
[29/47] Compiling OctoKit Stars.swift
[30/47] Compiling OctoKit Time.swift
[31/47] Compiling OctoKit URL+URLParameters.swift
[32/47] Compiling OctoKit User.swift
[33/47] Compiling OctoKit Plan.swift
[34/47] Compiling OctoKit PreviewHeader.swift
[35/47] Compiling OctoKit PublicKey.swift
[36/47] Compiling OctoKit PullRequest.swift
[37/47] Compiling OctoKit NotificationThread.swift
[38/47] Compiling OctoKit Octokit.swift
[39/47] Compiling OctoKit Organization.swift
[40/47] Compiling OctoKit Parameters.swift
[41/47] Compiling OctoKit Git.swift
[42/47] Compiling OctoKit Issue.swift
[43/47] Compiling OctoKit Label.swift
[44/47] Compiling OctoKit Milestone.swift
[45/47] Compiling OctoKit Reactions.swift
[46/47] Compiling OctoKit Releases.swift
[47/47] Compiling OctoKit Repositories.swift
[49/67] Compiling Danger SwiftLintViolation.swift
[50/67] Compiling Danger SwiftlintReportDeleter.swift
[51/69] Compiling Danger DangerUtils.swift
[52/69] Compiling Danger DateFormatterExtensions.swift
[53/69] Compiling Danger NSRegularExpressionExtensions.swift
[54/69] Compiling Danger CurrentPathProvider.swift
[55/69] Compiling Danger SwiftLint.swift
[56/69] Compiling Danger Report.swift
[57/69] Compiling Danger Settings.swift
[58/69] Compiling Danger File.swift
[59/69] Compiling Danger GitDSL.swift
[60/69] Compiling Danger GitDiff.swift
[61/69] Compiling Danger Danger.swift
[62/69] Compiling Danger DangerDSL.swift
[63/69] Compiling Danger DangerResults.swift
[64/69] Compiling Danger BitBucketCloud.swift
[65/69] Compiling Danger BitBucketMetadata.swift
[66/69] Compiling Danger BitBucketServerDSL.swift
[67/69] Emitting module Danger
[68/69] Compiling Danger GitHubDSL.swift
[69/69] Compiling Danger GitLabDSL.swift
[71/75] Compiling DangerXcodeStaticAnalyzer ShellExecutor.swift
/host/spi-builder-workspace/Sources/DangerXcodeStaticAnalyzer/ShellExecutor.swift:10:14: warning: 'launchPath' is deprecated: renamed to 'executableURL'
 8 |         var env = ProcessInfo.processInfo.environment
 9 |         let task = Process()
10 |         task.launchPath = env["SHELL"]
   |              |- warning: 'launchPath' is deprecated: renamed to 'executableURL'
   |              `- note: use 'executableURL' instead
11 |         task.arguments = ["-l", "-c", script]
12 |         task.currentDirectoryPath = FileManager.default.currentDirectoryPath
/host/spi-builder-workspace/Sources/DangerXcodeStaticAnalyzer/ShellExecutor.swift:12:14: warning: 'currentDirectoryPath' is deprecated: renamed to 'currentDirectoryURL'
10 |         task.launchPath = env["SHELL"]
11 |         task.arguments = ["-l", "-c", script]
12 |         task.currentDirectoryPath = FileManager.default.currentDirectoryPath
   |              |- warning: 'currentDirectoryPath' is deprecated: renamed to 'currentDirectoryURL'
   |              `- note: use 'currentDirectoryURL' instead
13 |
14 |         task.launch()
/host/spi-builder-workspace/Sources/DangerXcodeStaticAnalyzer/ShellExecutor.swift:14:14: warning: 'launch()' is deprecated: renamed to 'run'
12 |         task.currentDirectoryPath = FileManager.default.currentDirectoryPath
13 |
14 |         task.launch()
   |              |- warning: 'launch()' is deprecated: renamed to 'run'
   |              `- note: use 'run' instead
15 |         task.waitUntilExit()
16 |         return task.terminationStatus
/host/spi-builder-workspace/Sources/DangerXcodeStaticAnalyzer/ShellExecutor.swift:8:13: warning: variable 'env' was never mutated; consider changing to 'let' constant
 6 |         print("Executing \(script)")
 7 |
 8 |         var env = ProcessInfo.processInfo.environment
   |             `- warning: variable 'env' was never mutated; consider changing to 'let' constant
 9 |         let task = Process()
10 |         task.launchPath = env["SHELL"]
[72/75] Compiling DangerXcodeStaticAnalyzer XcodeStaticAnalyzerViolation.swift
[73/75] Compiling DangerXcodeStaticAnalyzer XcodeStaticAnalyzerPlist.swift
[74/75] Emitting module DangerXcodeStaticAnalyzer
/host/spi-builder-workspace/Sources/DangerXcodeStaticAnalyzer/DangerXcodeStaticAnalyzer.swift:5:25: warning: static property 'danger' is not concurrency-safe because non-'Sendable' type 'DangerDSL' may have shared mutable state; this is an error in the Swift 6 language mode
  3 |
  4 | public struct XcodeStaticAnalyzer {
  5 |     internal static let danger = Danger()
    |                         `- warning: static property 'danger' is not concurrency-safe because non-'Sendable' type 'DangerDSL' may have shared mutable state; this is an error in the Swift 6 language mode
  6 |     internal static let shellExecutor = ShellExecutor()
  7 |
/host/spi-builder-workspace/.build/checkouts/swift/Sources/Danger/DangerDSL.swift:13:15: note: struct 'DangerDSL' does not conform to the 'Sendable' protocol
11 | }
12 |
13 | public struct DangerDSL: Decodable {
   |               `- note: struct 'DangerDSL' does not conform to the 'Sendable' protocol
14 |     public let git: Git
15 |
/host/spi-builder-workspace/Sources/DangerXcodeStaticAnalyzer/DangerXcodeStaticAnalyzer.swift:1:1: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'Danger'
  1 | import Danger
    | `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'Danger'
  2 | import Foundation
  3 |
  4 | public struct XcodeStaticAnalyzer {
  5 |     internal static let danger = Danger()
    |                         |- note: add '@MainActor' to make static property 'danger' part of global actor 'MainActor'
    |                         `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
  6 |     internal static let shellExecutor = ShellExecutor()
  7 |
/host/spi-builder-workspace/Sources/DangerXcodeStaticAnalyzer/DangerXcodeStaticAnalyzer.swift:6:25: warning: static property 'shellExecutor' is not concurrency-safe because non-'Sendable' type 'ShellExecutor' may have shared mutable state; this is an error in the Swift 6 language mode
  4 | public struct XcodeStaticAnalyzer {
  5 |     internal static let danger = Danger()
  6 |     internal static let shellExecutor = ShellExecutor()
    |                         |- warning: static property 'shellExecutor' is not concurrency-safe because non-'Sendable' type 'ShellExecutor' may have shared mutable state; this is an error in the Swift 6 language mode
    |                         |- note: add '@MainActor' to make static property 'shellExecutor' part of global actor 'MainActor'
    |                         `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
  7 |
  8 |     /// This is the main entry point for running the hstatic analyzer in PRs
/host/spi-builder-workspace/Sources/DangerXcodeStaticAnalyzer/ShellExecutor.swift:3:16: note: class 'ShellExecutor' does not conform to the 'Sendable' protocol
 1 | import Foundation
 2 |
 3 | internal class ShellExecutor {
   |                `- note: class 'ShellExecutor' does not conform to the 'Sendable' protocol
 4 |     func executeUnpiped(_ command: String, arguments: [String] = []) -> Int32 {
 5 |         let script = "\(command) \(arguments.joined(separator: " "))"
[75/75] Compiling DangerXcodeStaticAnalyzer DangerXcodeStaticAnalyzer.swift
/host/spi-builder-workspace/Sources/DangerXcodeStaticAnalyzer/DangerXcodeStaticAnalyzer.swift:5:25: warning: static property 'danger' is not concurrency-safe because non-'Sendable' type 'DangerDSL' may have shared mutable state; this is an error in the Swift 6 language mode
  3 |
  4 | public struct XcodeStaticAnalyzer {
  5 |     internal static let danger = Danger()
    |                         `- warning: static property 'danger' is not concurrency-safe because non-'Sendable' type 'DangerDSL' may have shared mutable state; this is an error in the Swift 6 language mode
  6 |     internal static let shellExecutor = ShellExecutor()
  7 |
/host/spi-builder-workspace/.build/checkouts/swift/Sources/Danger/DangerDSL.swift:13:15: note: struct 'DangerDSL' does not conform to the 'Sendable' protocol
11 | }
12 |
13 | public struct DangerDSL: Decodable {
   |               `- note: struct 'DangerDSL' does not conform to the 'Sendable' protocol
14 |     public let git: Git
15 |
/host/spi-builder-workspace/Sources/DangerXcodeStaticAnalyzer/DangerXcodeStaticAnalyzer.swift:1:1: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'Danger'
  1 | import Danger
    | `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'Danger'
  2 | import Foundation
  3 |
  4 | public struct XcodeStaticAnalyzer {
  5 |     internal static let danger = Danger()
    |                         |- note: add '@MainActor' to make static property 'danger' part of global actor 'MainActor'
    |                         `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
  6 |     internal static let shellExecutor = ShellExecutor()
  7 |
/host/spi-builder-workspace/Sources/DangerXcodeStaticAnalyzer/DangerXcodeStaticAnalyzer.swift:6:25: warning: static property 'shellExecutor' is not concurrency-safe because non-'Sendable' type 'ShellExecutor' may have shared mutable state; this is an error in the Swift 6 language mode
  4 | public struct XcodeStaticAnalyzer {
  5 |     internal static let danger = Danger()
  6 |     internal static let shellExecutor = ShellExecutor()
    |                         |- warning: static property 'shellExecutor' is not concurrency-safe because non-'Sendable' type 'ShellExecutor' may have shared mutable state; this is an error in the Swift 6 language mode
    |                         |- note: add '@MainActor' to make static property 'shellExecutor' part of global actor 'MainActor'
    |                         `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
  7 |
  8 |     /// This is the main entry point for running the hstatic analyzer in PRs
/host/spi-builder-workspace/Sources/DangerXcodeStaticAnalyzer/ShellExecutor.swift:3:16: note: class 'ShellExecutor' does not conform to the 'Sendable' protocol
 1 | import Foundation
 2 |
 3 | internal class ShellExecutor {
   |                `- note: class 'ShellExecutor' does not conform to the 'Sendable' protocol
 4 |     func executeUnpiped(_ command: String, arguments: [String] = []) -> Int32 {
 5 |         let script = "\(command) \(arguments.joined(separator: " "))"
Build complete! (47.54s)
Build complete.
{
  "dependencies" : [
    {
      "identity" : "swift",
      "requirement" : {
        "range" : [
          {
            "lower_bound" : "3.0.0",
            "upper_bound" : "4.0.0"
          }
        ]
      },
      "type" : "sourceControl",
      "url" : "https://github.com/danger/swift.git"
    }
  ],
  "manifest_display_name" : "DangerXcodeStaticAnalyzer",
  "name" : "DangerXcodeStaticAnalyzer",
  "path" : "/host/spi-builder-workspace",
  "platforms" : [
  ],
  "products" : [
    {
      "name" : "DangerXcodeStaticAnalyzer",
      "targets" : [
        "DangerXcodeStaticAnalyzer"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "DangerXcodeStaticAnalyzer",
      "module_type" : "SwiftTarget",
      "name" : "DangerXcodeStaticAnalyzer",
      "path" : "Sources/DangerXcodeStaticAnalyzer",
      "product_dependencies" : [
        "Danger"
      ],
      "product_memberships" : [
        "DangerXcodeStaticAnalyzer"
      ],
      "sources" : [
        "DangerXcodeStaticAnalyzer.swift",
        "ShellExecutor.swift",
        "XcodeStaticAnalyzerPlist.swift",
        "XcodeStaticAnalyzerViolation.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.1"
}
android-6.1-latest: Pulling from finestructure/spi-images
Digest: sha256:fe1962677657b2408c217cb5cceb3c09bc1d91486e360cebbc6eee461a5945d8
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:android-6.1-latest
Done.