The Swift Package Index logo.Swift Package Index

Build Information

Failed to build DHModels, reference main (478fdd), with Swift 6.3 for Wasm on 25 Apr 2026 23:41:00 UTC.

Build Command

bash -c docker run --pull=always --rm -v "checkouts-4606859-1":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/swiftpackageindex/spi-images:wasm-6.3-latest swift build --swift-sdk swift-6.3-RELEASE_wasm 2>&1

Build Log

========================================
RunAll
========================================
Builder version: 4.70.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/gwillish/DHModels.git
Reference: main
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/gwillish/DHModels
 * branch            main       -> FETCH_HEAD
 * [new branch]      main       -> origin/main
HEAD is now at 478fdd8 Add label to DifficultyBudget.Rating; guard zero player count in rating factory (#25)
Cloned https://github.com/gwillish/DHModels.git
Revision (git rev-parse @):
478fdd8ac3d2509f65fee9905c1ffa34be05a21a
SPI manifest file found: $PWD/.spi.yml
SUCCESS checkout https://github.com/gwillish/DHModels.git at main
========================================
Build
========================================
Selected platform:         wasm
Swift version:             6.3
Building package at path:  $PWD
https://github.com/gwillish/DHModels.git
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4606859-1":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/swiftpackageindex/spi-images:wasm-6.3-latest swift build --swift-sdk swift-6.3-RELEASE_wasm 2>&1
wasm-6.3-latest: Pulling from swiftpackageindex/spi-images
Digest: sha256:d69f4e7582c319245442d62a08b2d7c7fd5a0c0c69f5d2ef11d1530cd8d3329b
Status: Image is up to date for registry.gitlab.com/swiftpackageindex/spi-images:wasm-6.3-latest
Fetching https://github.com/apple/swift-argument-parser
Fetching https://github.com/apple/swift-log.git
[1/17464] Fetching swift-argument-parser
[176/24113] Fetching swift-argument-parser, swift-log
Fetched https://github.com/apple/swift-log.git from cache (0.67s)
Fetched https://github.com/apple/swift-argument-parser from cache (0.96s)
Computing version for https://github.com/apple/swift-argument-parser
Computed https://github.com/apple/swift-argument-parser at 1.7.1 (1.41s)
Computing version for https://github.com/apple/swift-log.git
Computed https://github.com/apple/swift-log.git at 1.12.0 (0.45s)
Creating working copy for https://github.com/apple/swift-log.git
Working copy of https://github.com/apple/swift-log.git resolved at 1.12.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.7.1
[1/1] Compiling plugin GenerateManual
[2/2] Compiling plugin GenerateDoccReference
Building for debugging...
[2/17] Copying environments.json
[3/17] Copying adversaries.json
[4/17] Write sources
[10/17] Write swift-version-24593BA9C3E375BF.txt
[12/36] Emitting module DHModels
[13/37] Compiling Logging LogEvent.swift
[14/37] Emitting module ArgumentParserToolInfo
[15/37] Compiling ArgumentParserToolInfo ToolInfo.swift
[17/38] Compiling Logging MetadataProvider.swift
[18/38] Emitting module Logging
[19/38] Compiling Logging Locks.swift
[19/38] Wrapping AST for ArgumentParserToolInfo for debugging
[21/84] Compiling DHModels Party.swift
[22/84] Compiling DHModels EncounterDefinition.swift
[23/84] Compiling DHModels DaggerheartEnvironment.swift
[24/84] Compiling ArgumentParser FishCompletionsGenerator.swift
[25/84] Compiling ArgumentParser ZshCompletionsGenerator.swift
[26/84] Compiling ArgumentParser BashCompletionsGenerator.swift
[27/84] Compiling ArgumentParser CompletionsGenerator.swift
[28/84] Compiling DHModels DifficultyBudget.swift
[29/84] Compiling ArgumentParser Argument.swift
[30/84] Compiling ArgumentParser ArgumentDiscussion.swift
[31/84] Compiling DHModels Player.swift
[32/85] Wrapping AST for DHModels for debugging
[34/85] Compiling Logging Logging.swift
[35/85] Compiling Logging LogHandler.swift
[37/95] Compiling DHKit EncounterStore.swift
/host/spi-builder-workspace/Sources/DHKit/EncounterStore.swift:168:39: error: 'atomic' is unavailable: atomic writing is unavailable in WASI because temporary files are not supported
166 |     // Sendable in Swift 6 and cannot be safely shared across tasks.
167 |     let data = try JSONEncoder().encode(definition)
168 |     try data.write(to: url, options: .atomic)
    |                                       `- error: 'atomic' is unavailable: atomic writing is unavailable in WASI because temporary files are not supported
169 |   }
170 |
FoundationEssentials.Data.WritingOptions.atomic:4:23: note: 'atomic' has been explicitly marked unavailable here
2 |   struct WritingOptions {
3 | @available(*, unavailable, message: "atomic writing is unavailable in WASI because temporary files are not supported")
4 |     public static let atomic: Data.WritingOptions  }
  |                       `- note: 'atomic' has been explicitly marked unavailable here
5 | }
6 |
[38/96] Compiling DHKit PlayerState.swift
[39/96] Compiling DHKit EnvironmentState.swift
[40/96] Compiling DHKit SessionRegistry.swift
[41/96] Compiling DHKit resource_bundle_accessor.swift
[42/96] Emitting module ArgumentParser
[43/102] Compiling ArgumentParser Foundation.swift
[44/102] Compiling ArgumentParser Mutex.swift
[45/102] Compiling ArgumentParser Platform.swift
[46/102] Compiling ArgumentParser SequenceExtensions.swift
[47/102] Compiling ArgumentParser StringExtensions.swift
[48/102] Compiling ArgumentParser SwiftExtensions.swift
[49/102] Compiling DHKit EncounterParticipant.swift
[50/102] Emitting module DHKit
[51/102] Compiling DHKit AdversaryState.swift
[52/102] Compiling DHKit Compendium.swift
[53/102] Compiling DHKit EncounterSession.swift
BUILD FAILURE 6.3 wasm