The Swift Package Index logo.Swift Package Index

Has it really been five years since Swift Package Index launched? Read our anniversary blog post!

Build Information

Failed to build swift-action, reference master (9f24a2), with Swift 6.1 for Wasm on 28 May 2025 23:50:40 UTC.

Build Command

bash -c docker run --pull=always --rm -v "checkouts-4606859-0":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:wasm-6.1-latest swift build --swift-sdk wasm32-unknown-wasi 2>&1

Build Log

========================================
RunAll
========================================
Builder version: 4.63.1
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/Frizlab/swift-action.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/Frizlab/swift-action
 * branch            master     -> FETCH_HEAD
 * [new branch]      master     -> origin/master
HEAD is now at 9f24a2e Add Apache license to the project
Cloned https://github.com/Frizlab/swift-action.git
Revision (git rev-parse @):
9f24a2e76b0810831a60754809a93f559e6c24ce
SUCCESS checkout https://github.com/Frizlab/swift-action.git at master
========================================
Build
========================================
Selected platform:         wasm
Swift version:             6.1
Building package at path:  $PWD
https://github.com/Frizlab/swift-action.git
https://github.com/Frizlab/swift-action.git
WARNING: environment variable SUPPRESS_SWIFT_6_FLAGS is not set
{
  "dependencies" : [
    {
      "identity" : "swift-log",
      "requirement" : {
        "range" : [
          {
            "lower_bound" : "1.4.0",
            "upper_bound" : "2.0.0"
          }
        ]
      },
      "type" : "sourceControl",
      "url" : "https://github.com/apple/swift-log.git"
    }
  ],
  "manifest_display_name" : "swift-action",
  "name" : "swift-action",
  "path" : "/host/spi-builder-workspace",
  "platforms" : [
  ],
  "products" : [
    {
      "name" : "Action",
      "targets" : [
        "Action"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "Action",
      "module_type" : "SwiftTarget",
      "name" : "Action",
      "path" : "Sources/Action",
      "product_dependencies" : [
        "Logging"
      ],
      "product_memberships" : [
        "Action"
      ],
      "sources" : [
        "Action.swift",
        "ActionConfig.swift",
        "ActionError.swift",
        "AnyAction.swift",
        "Util.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.1"
}
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4606859-0":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:wasm-6.1-latest swift build --swift-sdk wasm32-unknown-wasi -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
wasm-6.1-latest: Pulling from finestructure/spi-images
Digest: sha256:7e37457820e5f17452a98118754f345f2619722c485f2db0d8b666940a83afd2
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:wasm-6.1-latest
Fetching https://github.com/apple/swift-log.git
[1/3836] Fetching swift-log
Fetched https://github.com/apple/swift-log.git from cache (0.51s)
Computing version for https://github.com/apple/swift-log.git
Computed https://github.com/apple/swift-log.git at 1.6.3 (1.10s)
Creating working copy for https://github.com/apple/swift-log.git
Working copy of https://github.com/apple/swift-log.git resolved at 1.6.3
Building for debugging...
[0/3] Write sources
[2/3] Write swift-version-24593BA9C3E375BF.txt
[4/8] Emitting module Logging
[5/8] Compiling Logging Locks.swift
[6/8] Compiling Logging LogHandler.swift
[7/8] Compiling Logging Logging.swift
[8/8] Compiling Logging MetadataProvider.swift
[10/15] Compiling Action ActionError.swift
[11/15] Compiling Action ActionConfig.swift
/host/spi-builder-workspace/Sources/Action/ActionConfig.swift:26:20: warning: static property 'logger' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
24 | public struct ActionConfig {
25 |
26 | 	public static var logger: Logger? = nil
   |                    |- warning: static property 'logger' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
   |                    |- note: convert 'logger' to a 'let' constant to make 'Sendable' shared state immutable
   |                    |- note: add '@MainActor' to make static property 'logger' part of global actor 'MainActor'
   |                    `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
27 |
28 | 	/** This struct is simply a container for static configuration properties. */
error: emit-module command failed with exit code 1 (use -v to see invocation)
[12/15] Emitting module Action
/host/spi-builder-workspace/Sources/Action/Action.swift:33:20: warning: static property 'alwaysInstantly' is not concurrency-safe because non-'Sendable' type 'WeakeningMode' may have shared mutable state; this is an error in the Swift 6 language mode
 24 | interval value, the weakening is done asynchronously after the handler is
 25 | called, on an internal queue. */
 26 | public enum WeakeningMode {
    |             `- note: consider making enum 'WeakeningMode' conform to the 'Sendable' protocol
 27 |
 28 | 	case never
    :
 31 | 	case always(successDelay: TimeInterval?, errorDelay: TimeInterval?)
 32 |
 33 | 	public static let alwaysInstantly = WeakeningMode.always(successDelay: nil, errorDelay: nil)
    |                    |- warning: static property 'alwaysInstantly' is not concurrency-safe because non-'Sendable' type 'WeakeningMode' may have shared mutable state; this is an error in the Swift 6 language mode
    |                    |- note: add '@MainActor' to make static property 'alwaysInstantly' part of global actor 'MainActor'
    |                    `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 34 |
 35 | 	/** Customizable default, used by Action, when running it. */
/host/spi-builder-workspace/Sources/Action/Action.swift:36:20: warning: static property 'defaultMode' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 34 |
 35 | 	/** Customizable default, used by Action, when running it. */
 36 | 	public static var defaultMode = WeakeningMode.alwaysInstantly
    |                    |- warning: static property 'defaultMode' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |                    |- note: convert 'defaultMode' to a 'let' constant to make 'Sendable' shared state immutable
    |                    |- note: add '@MainActor' to make static property 'defaultMode' part of global actor 'MainActor'
    |                    `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 37 |
 38 | }
/host/spi-builder-workspace/Sources/Action/Action.swift:252:70: error: cannot find type 'DispatchSourceTimer' in scope
250 | 		action keeps a strong reference to itself). If the weakening timer is nil,
251 | 		the action will never weaken on its own. */
252 | 		case idleStrong(result: Result<ResultType, Error>, weakeningTimer: DispatchSourceTimer?, selfReference: Action)
    |                                                                      `- error: cannot find type 'DispatchSourceTimer' in scope
253 |
254 | 		/** The action is running (and has a forced reference to itself). */
/host/spi-builder-workspace/Sources/Action/Action.swift:278:14: error: cannot find type 'DispatchSourceTimer' in scope
276 | 		}
277 |
278 | 		var timer: DispatchSourceTimer? {
    |              `- error: cannot find type 'DispatchSourceTimer' in scope
279 | 			switch self {
280 | 			case .running, .idleWeak:      return nil
/host/spi-builder-workspace/Sources/Action/Action.swift:287:30: error: cannot find type 'DispatchQueue' in scope
285 | 	}
286 |
287 | 	private var stateSyncQueue: DispatchQueue
    |                              `- error: cannot find type 'DispatchQueue' in scope
288 | 	private var currentState: State {
289 | 		willSet {currentState.timer?.cancel()}
/host/spi-builder-workspace/Sources/Action/ActionConfig.swift:26:20: warning: static property 'logger' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
24 | public struct ActionConfig {
25 |
26 | 	public static var logger: Logger? = nil
   |                    |- warning: static property 'logger' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
   |                    |- note: convert 'logger' to a 'let' constant to make 'Sendable' shared state immutable
   |                    |- note: add '@MainActor' to make static property 'logger' part of global actor 'MainActor'
   |                    `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
27 |
28 | 	/** This struct is simply a container for static configuration properties. */
[13/15] Compiling Action Action.swift
/host/spi-builder-workspace/Sources/Action/Action.swift:33:20: warning: static property 'alwaysInstantly' is not concurrency-safe because non-'Sendable' type 'WeakeningMode' may have shared mutable state; this is an error in the Swift 6 language mode
 24 | interval value, the weakening is done asynchronously after the handler is
 25 | called, on an internal queue. */
 26 | public enum WeakeningMode {
    |             `- note: consider making enum 'WeakeningMode' conform to the 'Sendable' protocol
 27 |
 28 | 	case never
    :
 31 | 	case always(successDelay: TimeInterval?, errorDelay: TimeInterval?)
 32 |
 33 | 	public static let alwaysInstantly = WeakeningMode.always(successDelay: nil, errorDelay: nil)
    |                    |- warning: static property 'alwaysInstantly' is not concurrency-safe because non-'Sendable' type 'WeakeningMode' may have shared mutable state; this is an error in the Swift 6 language mode
    |                    |- note: add '@MainActor' to make static property 'alwaysInstantly' part of global actor 'MainActor'
    |                    `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 34 |
 35 | 	/** Customizable default, used by Action, when running it. */
/host/spi-builder-workspace/Sources/Action/Action.swift:36:20: warning: static property 'defaultMode' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 34 |
 35 | 	/** Customizable default, used by Action, when running it. */
 36 | 	public static var defaultMode = WeakeningMode.alwaysInstantly
    |                    |- warning: static property 'defaultMode' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |                    |- note: convert 'defaultMode' to a 'let' constant to make 'Sendable' shared state immutable
    |                    |- note: add '@MainActor' to make static property 'defaultMode' part of global actor 'MainActor'
    |                    `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 37 |
 38 | }
/host/spi-builder-workspace/Sources/Action/Action.swift:252:70: error: cannot find type 'DispatchSourceTimer' in scope
250 | 		action keeps a strong reference to itself). If the weakening timer is nil,
251 | 		the action will never weaken on its own. */
252 | 		case idleStrong(result: Result<ResultType, Error>, weakeningTimer: DispatchSourceTimer?, selfReference: Action)
    |                                                                      `- error: cannot find type 'DispatchSourceTimer' in scope
253 |
254 | 		/** The action is running (and has a forced reference to itself). */
/host/spi-builder-workspace/Sources/Action/Action.swift:278:14: error: cannot find type 'DispatchSourceTimer' in scope
276 | 		}
277 |
278 | 		var timer: DispatchSourceTimer? {
    |              `- error: cannot find type 'DispatchSourceTimer' in scope
279 | 			switch self {
280 | 			case .running, .idleWeak:      return nil
/host/spi-builder-workspace/Sources/Action/Action.swift:287:30: error: cannot find type 'DispatchQueue' in scope
285 | 	}
286 |
287 | 	private var stateSyncQueue: DispatchQueue
    |                              `- error: cannot find type 'DispatchQueue' in scope
288 | 	private var currentState: State {
289 | 		willSet {currentState.timer?.cancel()}
/host/spi-builder-workspace/Sources/Action/Action.swift:73:20: error: cannot find 'DispatchQueue' in scope
 71 |
 72 | 	public init(subject s: SubjectType) {
 73 | 		stateSyncQueue = DispatchQueue(label: "State Sync Queue for \(type(of: self))<\(s)>", attributes: [/*serial*/])
    |                    `- error: cannot find 'DispatchQueue' in scope
 74 | 		currentState = .idleWeak
 75 | 		subject = s
/host/spi-builder-workspace/Sources/Action/Action.swift:172:19: error: cannot find 'DispatchSource' in scope
170 | 				if weaken {
171 | 					if let delay = weakeningDelay {
172 | 						let timer = DispatchSource.makeTimerSource(flags: [], queue: self.stateSyncQueue)
    |                   `- error: cannot find 'DispatchSource' in scope
173 | 						timer.setEventHandler{ self.currentState = .idleWeak }
174 | 						timer.schedule(deadline: .now() + delay, leeway: .milliseconds(250))
/host/spi-builder-workspace/Sources/Action/Action.swift:198:20: error: cannot infer contextual base in reference to member 'failure'
196 | 			/* There was a sync error starting the action; let's call the end
197 | 			 * handler directly. */
198 | 			privateHandler(.failure(error))
    |                    `- error: cannot infer contextual base in reference to member 'failure'
199 | 		}
200 | 	}
[14/15] Compiling Action AnyAction.swift
[15/15] Compiling Action Util.swift
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4606859-0":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:wasm-6.1-latest swift build --swift-sdk wasm32-unknown-wasi 2>&1
wasm-6.1-latest: Pulling from finestructure/spi-images
Digest: sha256:7e37457820e5f17452a98118754f345f2619722c485f2db0d8b666940a83afd2
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:wasm-6.1-latest
[0/1] Planning build
Building for debugging...
[0/1] Write swift-version-24593BA9C3E375BF.txt
[2/6] Compiling Logging MetadataProvider.swift
[3/6] Compiling Logging Locks.swift
[4/6] Compiling Logging LogHandler.swift
[5/6] Emitting module Logging
[6/6] Compiling Logging Logging.swift
[8/13] Compiling Action Util.swift
[9/13] Compiling Action AnyAction.swift
[10/13] Compiling Action ActionConfig.swift
[11/13] Compiling Action ActionError.swift
error: emit-module command failed with exit code 1 (use -v to see invocation)
[12/13] Emitting module Action
/host/spi-builder-workspace/Sources/Action/Action.swift:252:70: error: cannot find type 'DispatchSourceTimer' in scope
250 | 		action keeps a strong reference to itself). If the weakening timer is nil,
251 | 		the action will never weaken on its own. */
252 | 		case idleStrong(result: Result<ResultType, Error>, weakeningTimer: DispatchSourceTimer?, selfReference: Action)
    |                                                                      `- error: cannot find type 'DispatchSourceTimer' in scope
253 |
254 | 		/** The action is running (and has a forced reference to itself). */
/host/spi-builder-workspace/Sources/Action/Action.swift:278:14: error: cannot find type 'DispatchSourceTimer' in scope
276 | 		}
277 |
278 | 		var timer: DispatchSourceTimer? {
    |              `- error: cannot find type 'DispatchSourceTimer' in scope
279 | 			switch self {
280 | 			case .running, .idleWeak:      return nil
/host/spi-builder-workspace/Sources/Action/Action.swift:287:30: error: cannot find type 'DispatchQueue' in scope
285 | 	}
286 |
287 | 	private var stateSyncQueue: DispatchQueue
    |                              `- error: cannot find type 'DispatchQueue' in scope
288 | 	private var currentState: State {
289 | 		willSet {currentState.timer?.cancel()}
[13/13] Compiling Action Action.swift
/host/spi-builder-workspace/Sources/Action/Action.swift:252:70: error: cannot find type 'DispatchSourceTimer' in scope
250 | 		action keeps a strong reference to itself). If the weakening timer is nil,
251 | 		the action will never weaken on its own. */
252 | 		case idleStrong(result: Result<ResultType, Error>, weakeningTimer: DispatchSourceTimer?, selfReference: Action)
    |                                                                      `- error: cannot find type 'DispatchSourceTimer' in scope
253 |
254 | 		/** The action is running (and has a forced reference to itself). */
/host/spi-builder-workspace/Sources/Action/Action.swift:278:14: error: cannot find type 'DispatchSourceTimer' in scope
276 | 		}
277 |
278 | 		var timer: DispatchSourceTimer? {
    |              `- error: cannot find type 'DispatchSourceTimer' in scope
279 | 			switch self {
280 | 			case .running, .idleWeak:      return nil
/host/spi-builder-workspace/Sources/Action/Action.swift:287:30: error: cannot find type 'DispatchQueue' in scope
285 | 	}
286 |
287 | 	private var stateSyncQueue: DispatchQueue
    |                              `- error: cannot find type 'DispatchQueue' in scope
288 | 	private var currentState: State {
289 | 		willSet {currentState.timer?.cancel()}
/host/spi-builder-workspace/Sources/Action/Action.swift:73:20: error: cannot find 'DispatchQueue' in scope
 71 |
 72 | 	public init(subject s: SubjectType) {
 73 | 		stateSyncQueue = DispatchQueue(label: "State Sync Queue for \(type(of: self))<\(s)>", attributes: [/*serial*/])
    |                    `- error: cannot find 'DispatchQueue' in scope
 74 | 		currentState = .idleWeak
 75 | 		subject = s
/host/spi-builder-workspace/Sources/Action/Action.swift:172:19: error: cannot find 'DispatchSource' in scope
170 | 				if weaken {
171 | 					if let delay = weakeningDelay {
172 | 						let timer = DispatchSource.makeTimerSource(flags: [], queue: self.stateSyncQueue)
    |                   `- error: cannot find 'DispatchSource' in scope
173 | 						timer.setEventHandler{ self.currentState = .idleWeak }
174 | 						timer.schedule(deadline: .now() + delay, leeway: .milliseconds(250))
/host/spi-builder-workspace/Sources/Action/Action.swift:198:20: error: cannot infer contextual base in reference to member 'failure'
196 | 			/* There was a sync error starting the action; let's call the end
197 | 			 * handler directly. */
198 | 			privateHandler(.failure(error))
    |                    `- error: cannot infer contextual base in reference to member 'failure'
199 | 		}
200 | 	}
BUILD FAILURE 6.1 wasm