The Swift Package Index logo.Swift Package Index

Track the adoption of Swift 6 strict concurrency checks for data race safety. How many packages are Ready for Swift 6?

Build Information

Failed to build AITranslate with Swift 5.10 for Linux.

Build Command

bash -c docker run --rm -v "checkouts-4609320-0":/host -w "$workDir" registry.gitlab.com/finestructure/spi-images:basic-5.10-latest swift build --triple x86_64-unknown-linux-gnu 2>&1

Build Log

========================================
RunAll
========================================
Builder version: 4.32.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/pmacro/AITranslate.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/pmacro/AITranslate
 * branch            main       -> FETCH_HEAD
 * [new branch]      main       -> origin/main
HEAD is now at 63852e3 Minor tidy up due to expanded logic
Cloned https://github.com/pmacro/AITranslate.git
Revision (git rev-parse @):
63852e320dac6dc484dc6ab3d5fe6fb9ab0e0c59
SUCCESS checkout https://github.com/pmacro/AITranslate.git at main
========================================
Build
========================================
Selected platform:         linux
Swift version:             5.10
Building package at path:  $workDir
https://github.com/pmacro/AITranslate.git
Running build ...
bash -c docker run --rm -v "checkouts-4609320-0":/host -w "$workDir" registry.gitlab.com/finestructure/spi-images:basic-5.10-latest swift build --triple x86_64-unknown-linux-gnu 2>&1
Fetching https://github.com/MacPaw/OpenAI.git
[1/3608] Fetching openai
Fetched https://github.com/MacPaw/OpenAI.git from cache (0.39s)
Fetching https://github.com/apple/swift-argument-parser.git
[1/11562] Fetching swift-argument-parser
Fetched https://github.com/apple/swift-argument-parser.git from cache (0.67s)
Computing version for https://github.com/apple/swift-argument-parser.git
Computed https://github.com/apple/swift-argument-parser.git at 1.3.0 (0.39s)
Creating working copy for https://github.com/apple/swift-argument-parser.git
Working copy of https://github.com/apple/swift-argument-parser.git resolved at 1.3.0
Creating working copy for https://github.com/MacPaw/OpenAI.git
Working copy of https://github.com/MacPaw/OpenAI.git resolved at main (f1c05f5)
[1/1] Compiling plugin GenerateManual
Building for debugging...
[1/12] Write sources
[5/12] Write swift-version-24593BA9C3E375BF.txt
[7/52] Emitting module ArgumentParserToolInfo
[8/52] Compiling ArgumentParserToolInfo ToolInfo.swift
[9/53] Wrapping AST for ArgumentParserToolInfo for debugging
[11/90] Emitting module OpenAI
[12/95] Emitting module ArgumentParser
[13/100] Compiling ArgumentParser ArgumentVisibility.swift
[14/100] Compiling ArgumentParser CompletionKind.swift
[15/100] Compiling ArgumentParser Errors.swift
[16/100] Compiling ArgumentParser Flag.swift
[17/100] Compiling ArgumentParser NameSpecification.swift
[18/100] Compiling ArgumentParser Name.swift
[19/100] Compiling ArgumentParser Parsed.swift
[20/100] Compiling ArgumentParser ParsedValues.swift
[21/100] Compiling ArgumentParser ParserError.swift
[22/100] Compiling ArgumentParser SplitArguments.swift
[27/100] Compiling ArgumentParser CollectionExtensions.swift
[28/100] Compiling ArgumentParser Platform.swift
[29/100] Compiling ArgumentParser SequenceExtensions.swift
[30/100] Compiling ArgumentParser StringExtensions.swift
[31/100] Compiling ArgumentParser Tree.swift
[32/100] Compiling OpenAI Utilities.swift
[33/100] Compiling ArgumentParser ArgumentDefinition.swift
[34/100] Compiling ArgumentParser ArgumentSet.swift
[35/100] Compiling ArgumentParser CommandParser.swift
[36/100] Compiling ArgumentParser InputKey.swift
[37/100] Compiling ArgumentParser InputOrigin.swift
[39/100] Compiling ArgumentParser OptionGroup.swift
[40/100] Compiling ArgumentParser AsyncParsableCommand.swift
[41/100] Compiling ArgumentParser CommandConfiguration.swift
[42/100] Compiling ArgumentParser EnumerableFlag.swift
[43/100] Compiling ArgumentParser BashCompletionsGenerator.swift
[44/100] Compiling ArgumentParser CompletionsGenerator.swift
[45/100] Compiling ArgumentParser FishCompletionsGenerator.swift
[46/100] Compiling ArgumentParser ZshCompletionsGenerator.swift
[47/100] Compiling ArgumentParser Argument.swift
[48/100] Compiling ArgumentParser ArgumentHelp.swift
[49/100] Compiling ArgumentParser DumpHelpGenerator.swift
[50/100] Compiling ArgumentParser HelpCommand.swift
[51/100] Compiling ArgumentParser HelpGenerator.swift
[52/100] Compiling ArgumentParser MessageInfo.swift
[53/100] Compiling ArgumentParser UsageGenerator.swift
[60/100] Compiling ArgumentParser Option.swift
[65/100] Compiling ArgumentParser ExpressibleByArgument.swift
[66/100] Compiling ArgumentParser ParsableArguments.swift
[67/100] Compiling ArgumentParser ParsableArgumentsValidation.swift
[68/100] Compiling ArgumentParser ParsableCommand.swift
[69/100] Compiling ArgumentParser ArgumentDecoder.swift
[96/102] Wrapping AST for ArgumentParser for debugging
[98/102] Wrapping AST for OpenAI for debugging
[100/105] Emitting module ai_translate
[101/105] Compiling ai_translate StringsDict.swift
[102/105] Compiling ai_translate AITranslate.swift
/host/spi-builder-workspace/Sources/AITranslate.swift:104:23: error: 'DateComponentsFormatter' is unavailable: Not supported in swift-corelibs-foundation
      let formatter = DateComponentsFormatter()
                      ^~~~~~~~~~~~~~~~~~~~~~~
Foundation.DateComponentsFormatter:2:12: note: 'DateComponentsFormatter' has been explicitly marked unavailable here
open class DateComponentsFormatter : Formatter {
           ^
/host/spi-builder-workspace/Sources/AITranslate.swift:170:32: error: value of type 'FileManager' has no member 'trashItem'
      try? FileManager.default.trashItem(
           ~~~~~~~~~~~~~~~~~~~ ^~~~~~~~~
/host/spi-builder-workspace/Sources/AITranslate.swift:172:27: error: 'nil' requires a contextual type
        resultingItemURL: nil
                          ^
error: fatalError
[0/1] Planning build
[1/1] Compiling plugin GenerateManual
Building for debugging...
[1/8] Write swift-version-24593BA9C3E375BF.txt
[3/7] Compiling ai_translate AITranslate.swift
/host/spi-builder-workspace/Sources/AITranslate.swift:104:23: error: 'DateComponentsFormatter' is unavailable: Not supported in swift-corelibs-foundation
      let formatter = DateComponentsFormatter()
                      ^~~~~~~~~~~~~~~~~~~~~~~
Foundation.DateComponentsFormatter:2:12: note: 'DateComponentsFormatter' has been explicitly marked unavailable here
open class DateComponentsFormatter : Formatter {
           ^
/host/spi-builder-workspace/Sources/AITranslate.swift:170:32: error: value of type 'FileManager' has no member 'trashItem'
      try? FileManager.default.trashItem(
           ~~~~~~~~~~~~~~~~~~~ ^~~~~~~~~
/host/spi-builder-workspace/Sources/AITranslate.swift:172:27: error: 'nil' requires a contextual type
        resultingItemURL: nil
                          ^
[4/7] Emitting module ai_translate
error: fatalError
BUILD FAILURE 5.10 linux

Build Machine: Linux 2