Build Information
Failed to build swift-dotenv, reference develop (570d03), with Swift 6.1 for Android on 29 Aug 2025 13:18:09 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/finestructure/spi-images:android-6.1-latest swift build --swift-sdk aarch64-unknown-linux-android24 2>&1Build Log
========================================
RunAll
========================================
Builder version: 4.67.1
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: android
Swift version: 6.1
Building package at path: $PWD
https://github.com/thebarndog/swift-dotenv.git
https://github.com/thebarndog/swift-dotenv.git
WARNING: environment variable SUPPRESS_SWIFT_6_FLAGS is not set
error: 'spi-builder-workspace': package 'spi-builder-workspace' is using Swift tools version 6.1.0 but the installed version is 6.0.2
error: fatalError
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/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:8106a39f56f5bb7aad9f0d9a94f1e5362f9a40b692f7bc17efe17b7b91dc65fc
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:android-6.1-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] Compiling SwiftDotenv String+CamelCase.swift
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
[4/5] Emitting module SwiftDotenv
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
/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 |
[5/5] Compiling SwiftDotenv Dotenv.swift
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
/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
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
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 |
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/finestructure/spi-images:android-6.1-latest swift build --swift-sdk aarch64-unknown-linux-android24 2>&1
android-6.1-latest: Pulling from finestructure/spi-images
Digest: sha256:8106a39f56f5bb7aad9f0d9a94f1e5362f9a40b692f7bc17efe17b7b91dc65fc
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:android-6.1-latest
[0/1] Planning build
Building for debugging...
[0/1] Write swift-version-24593BA9C3E375BF.txt
error: emit-module command failed with exit code 1 (use -v to see invocation)
[2/4] Compiling SwiftDotenv String+CamelCase.swift
[3/4] 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/4] 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
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
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 |
BUILD FAILURE 6.1 android