Build Information
Failed to build swift-dotenv, reference develop (570d03), with Swift 6.3 for Wasm on 15 Apr 2026 01:06:42 UTC.
Build Command
bash -c docker run --pull=always --rm -v "checkouts-4609320-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>&1Build Log
========================================
RunAll
========================================
Builder version: 4.70.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/thebarndog/swift-dotenv.git
Reference: develop
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/thebarndog/swift-dotenv
* branch develop -> FETCH_HEAD
* [new branch] develop -> origin/develop
HEAD is now at 570d03e Merge pull request #51 from thebarndog/chore/6.1-workflow
Cloned https://github.com/thebarndog/swift-dotenv.git
Revision (git rev-parse @):
570d03e62099abb8926b7f7da001cb335bcde354
SUCCESS checkout https://github.com/thebarndog/swift-dotenv.git at develop
========================================
Build
========================================
Selected platform: wasm
Swift version: 6.3
Building package at path: $PWD
https://github.com/thebarndog/swift-dotenv.git
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4609320-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
Building for debugging...
[0/2] Write sources
[1/2] Write swift-version-24593BA9C3E375BF.txt
error: emit-module command failed with exit code 1 (use -v to see invocation)
[3/5] Emitting module SwiftDotenv
/host/spi-builder-workspace/Sources/Dotenv.swift:10:8: error: Unknown platform
8 | import ucrt
9 | #else
10 | #error("Unknown platform")
| `- error: Unknown platform
11 | #endif
12 |
[4/5] Compiling SwiftDotenv Dotenv.swift
/host/spi-builder-workspace/Sources/Dotenv.swift:10:8: error: Unknown platform
8 | import ucrt
9 | #else
10 | #error("Unknown platform")
| `- error: Unknown platform
11 | #endif
12 |
/host/spi-builder-workspace/Sources/Dotenv.swift:143:13: error: cannot find 'setenv' in scope
141 | throw DecodingFailure.malformedKeyValuePair
142 | }
143 | setenv(key, value, overwrite ? 1 : 0)
| `- error: cannot find 'setenv' in scope
144 | }
145 | }
/host/spi-builder-workspace/Sources/Dotenv.swift:152:35: warning: 'init(contentsOf:)' is deprecated: Use `init(contentsOf:encoding:)` instead [#DeprecatedDeclaration]
150 | throw LoadingFailure.environmentFileIsMissing
151 | }
152 | guard let contents = try? String(contentsOf: URL(fileURLWithPath: path)) else {
| `- warning: 'init(contentsOf:)' is deprecated: Use `init(contentsOf:encoding:)` instead [#DeprecatedDeclaration]
153 | throw LoadingFailure.unableToReadEnvironmentFile
154 | }
/host/spi-builder-workspace/Sources/Dotenv.swift:182:9: error: cannot find 'setenv' in scope
180 | /// - overwrite: Flag that indicates if any existing value should be overwritten, defaults to `true`.
181 | public static func set(value: String?, forKey key: String, overwrite: Bool = true) {
182 | setenv(key, value ?? "", overwrite ? 1 : 0)
| `- error: cannot find 'setenv' in scope
183 | }
184 |
[#DeprecatedDeclaration]: <https://docs.swift.org/compiler/documentation/diagnostics/deprecated-declaration>
[5/5] Compiling SwiftDotenv String+CamelCase.swift
/host/spi-builder-workspace/Sources/Dotenv.swift:10:8: error: Unknown platform
8 | import ucrt
9 | #else
10 | #error("Unknown platform")
| `- error: Unknown platform
11 | #endif
12 |
BUILD FAILURE 6.3 wasm