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 files, reference 2.2.0 (b674b4), with Swift 6.1 for Linux on 5 Jul 2025 06:51:26 UTC.

Build Command

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

Build Log

========================================
RunAll
========================================
Builder version: 4.64.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/nashysolutions/files.git
Reference: 2.2.0
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/nashysolutions/files
 * tag               2.2.0      -> FETCH_HEAD
HEAD is now at b674b4f Removing dependency.
Cloned https://github.com/nashysolutions/files.git
Revision (git rev-parse @):
b674b4f0eaae8c2519d921bb6f5fe7e41e036e75
SUCCESS checkout https://github.com/nashysolutions/files.git at 2.2.0
========================================
Build
========================================
Selected platform:         linux
Swift version:             6.1
Building package at path:  $PWD
https://github.com/nashysolutions/files.git
https://github.com/nashysolutions/files.git
WARNING: environment variable SUPPRESS_SWIFT_6_FLAGS is not set
{
  "default_localization" : "en",
  "dependencies" : [
  ],
  "manifest_display_name" : "files",
  "name" : "files",
  "path" : "/host/spi-builder-workspace",
  "platforms" : [
    {
      "name" : "ios",
      "version" : "16.0"
    },
    {
      "name" : "macos",
      "version" : "13.0"
    },
    {
      "name" : "tvos",
      "version" : "16.0"
    },
    {
      "name" : "watchos",
      "version" : "9.0"
    }
  ],
  "products" : [
    {
      "name" : "Files",
      "targets" : [
        "Files"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "FilesTests",
      "module_type" : "SwiftTarget",
      "name" : "FilesTests",
      "path" : "Tests/FilesTests",
      "sources" : [
        "CopyResourceTests.swift",
        "DeleteResourceErrorTests.swift",
        "DeleteResourceTests.swift",
        "DirectoryTests.swift",
        "FileExistenceTests.swift",
        "FileReadWriteTests.swift",
        "FileSystemFolderStoreTests.swift",
        "FileSystemOperationsTests.swift",
        "FolderExistenceTests.swift",
        "LiveAgent.swift",
        "LiveAgentTests.swift",
        "MockContext.swift",
        "MockFolder.swift",
        "MockResource.swift",
        "MoveResourceTests.swift",
        "RemoveDirectoryTests.swift",
        "URLExpectation.swift"
      ],
      "target_dependencies" : [
        "Files"
      ],
      "type" : "test"
    },
    {
      "c99name" : "Files",
      "module_type" : "SwiftTarget",
      "name" : "Files",
      "path" : "Sources/Files",
      "product_memberships" : [
        "Files"
      ],
      "resources" : [
        {
          "path" : "/host/spi-builder-workspace/Sources/Files/Resources/Localizable.xcstrings",
          "rule" : {
            "process" : {
            }
          }
        }
      ],
      "sources" : [
        "Directory.swift",
        "File.swift",
        "FileSystemContext.swift",
        "FileSystemDirectory.swift",
        "FileSystemFolderStore.swift",
        "FileSystemOperations.swift",
        "Folder.swift",
        "Operations/DeleteResource.swift",
        "Operations/LoadResource.swift",
        "Operations/SaveResource.swift",
        "Operations/UpdateResource.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.7"
}
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4609320-2":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:basic-6.1-latest swift build --triple x86_64-unknown-linux-gnu -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
basic-6.1-latest: Pulling from finestructure/spi-images
Digest: sha256:2e2b3aca8600f890617c2faa770b70e33c1dfd303d6f92b308423b89ef6bde64
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:basic-6.1-latest
Building for debugging...
[0/4] Write sources
[0/4] Copying Localizable.xcstrings
[0/4] Copying Info.plist
[3/4] Write swift-version-24593BA9C3E375BF.txt
[5/16] Compiling Files UpdateResource.swift
/host/spi-builder-workspace/Sources/Files/Operations/UpdateResource.swift:106:26: error: extra arguments at positions #3, #4 in call
104 |
105 |         case .unexpected:
106 |             return String(
    |                          `- error: extra arguments at positions #3, #4 in call
107 |                 localized: "update.resource.error.generic",
108 |                 defaultValue: "Something went wrong while updating your data. Please try again.",
Foundation.String.init:2:8: note: 'init(format:locale:_:)' declared here
1 | struct String {
2 | public init(format: __shared String, locale: __shared Locale?, _ args: any CVarArg...)}
  |        `- note: 'init(format:locale:_:)' declared here
3 |
/host/spi-builder-workspace/Sources/Files/Operations/UpdateResource.swift:107:17: error: missing argument for parameter 'format' in call
105 |         case .unexpected:
106 |             return String(
107 |                 localized: "update.resource.error.generic",
    |                 `- error: missing argument for parameter 'format' in call
108 |                 defaultValue: "Something went wrong while updating your data. Please try again.",
109 |                 bundle: .module,
Foundation.String.init:2:8: note: 'init(format:locale:_:)' declared here
1 | struct String {
2 | public init(format: __shared String, locale: __shared Locale?, _ args: any CVarArg...)}
  |        `- note: 'init(format:locale:_:)' declared here
3 |
/host/spi-builder-workspace/Sources/Files/Operations/UpdateResource.swift:107:28: error: cannot convert value of type 'String' to expected argument type 'Locale'
105 |         case .unexpected:
106 |             return String(
107 |                 localized: "update.resource.error.generic",
    |                            `- error: cannot convert value of type 'String' to expected argument type 'Locale'
108 |                 defaultValue: "Something went wrong while updating your data. Please try again.",
109 |                 bundle: .module,
/host/spi-builder-workspace/Sources/Files/Operations/UpdateResource.swift:109:26: error: cannot infer contextual base in reference to member 'module'
107 |                 localized: "update.resource.error.generic",
108 |                 defaultValue: "Something went wrong while updating your data. Please try again.",
109 |                 bundle: .module,
    |                          `- error: cannot infer contextual base in reference to member 'module'
110 |                 comment: "Shown when an unexpected error occurs during a resource update."
111 |             )
[6/17] Emitting module Files
[7/17] Compiling Files FileSystemFolderStore.swift
[8/17] Compiling Files FileSystemOperations.swift
[9/17] Compiling Files LoadResource.swift
/host/spi-builder-workspace/Sources/Files/Operations/LoadResource.swift:128:26: error: extra arguments at positions #3, #4 in call
126 |         switch self {
127 |         case .emptyFile(let storageKey):
128 |             return String(
    |                          `- error: extra arguments at positions #3, #4 in call
129 |                 localized: "load.file.error.empty",
130 |                 defaultValue: "The file \(storageKey) is empty.",
Foundation.String.init:2:8: note: 'init(format:locale:_:)' declared here
1 | struct String {
2 | public init(format: __shared String, locale: __shared Locale?, _ args: any CVarArg...)}
  |        `- note: 'init(format:locale:_:)' declared here
3 |
/host/spi-builder-workspace/Sources/Files/Operations/LoadResource.swift:129:17: error: missing argument for parameter 'format' in call
127 |         case .emptyFile(let storageKey):
128 |             return String(
129 |                 localized: "load.file.error.empty",
    |                 `- error: missing argument for parameter 'format' in call
130 |                 defaultValue: "The file \(storageKey) is empty.",
131 |                 bundle: .module,
Foundation.String.init:2:8: note: 'init(format:locale:_:)' declared here
1 | struct String {
2 | public init(format: __shared String, locale: __shared Locale?, _ args: any CVarArg...)}
  |        `- note: 'init(format:locale:_:)' declared here
3 |
/host/spi-builder-workspace/Sources/Files/Operations/LoadResource.swift:129:28: error: cannot convert value of type 'String' to expected argument type 'Locale'
127 |         case .emptyFile(let storageKey):
128 |             return String(
129 |                 localized: "load.file.error.empty",
    |                            `- error: cannot convert value of type 'String' to expected argument type 'Locale'
130 |                 defaultValue: "The file \(storageKey) is empty.",
131 |                 bundle: .module,
/host/spi-builder-workspace/Sources/Files/Operations/LoadResource.swift:131:26: error: cannot infer contextual base in reference to member 'module'
129 |                 localized: "load.file.error.empty",
130 |                 defaultValue: "The file \(storageKey) is empty.",
131 |                 bundle: .module,
    |                          `- error: cannot infer contextual base in reference to member 'module'
132 |                 comment: "Shown when a file exists but contains no data."
133 |             )
/host/spi-builder-workspace/Sources/Files/Operations/LoadResource.swift:136:26: error: extra arguments at positions #3, #4 in call
134 |
135 |         case .decodingFailed(let storageKey):
136 |             return String(
    |                          `- error: extra arguments at positions #3, #4 in call
137 |                 localized: "load.file.error.decoding",
138 |                 defaultValue: "Failed to decode the contents of the file \(storageKey).",
Foundation.String.init:2:8: note: 'init(format:locale:_:)' declared here
1 | struct String {
2 | public init(format: __shared String, locale: __shared Locale?, _ args: any CVarArg...)}
  |        `- note: 'init(format:locale:_:)' declared here
3 |
/host/spi-builder-workspace/Sources/Files/Operations/LoadResource.swift:137:17: error: missing argument for parameter 'format' in call
135 |         case .decodingFailed(let storageKey):
136 |             return String(
137 |                 localized: "load.file.error.decoding",
    |                 `- error: missing argument for parameter 'format' in call
138 |                 defaultValue: "Failed to decode the contents of the file \(storageKey).",
139 |                 bundle: .module,
Foundation.String.init:2:8: note: 'init(format:locale:_:)' declared here
1 | struct String {
2 | public init(format: __shared String, locale: __shared Locale?, _ args: any CVarArg...)}
  |        `- note: 'init(format:locale:_:)' declared here
3 |
/host/spi-builder-workspace/Sources/Files/Operations/LoadResource.swift:137:28: error: cannot convert value of type 'String' to expected argument type 'Locale'
135 |         case .decodingFailed(let storageKey):
136 |             return String(
137 |                 localized: "load.file.error.decoding",
    |                            `- error: cannot convert value of type 'String' to expected argument type 'Locale'
138 |                 defaultValue: "Failed to decode the contents of the file \(storageKey).",
139 |                 bundle: .module,
/host/spi-builder-workspace/Sources/Files/Operations/LoadResource.swift:139:26: error: cannot infer contextual base in reference to member 'module'
137 |                 localized: "load.file.error.decoding",
138 |                 defaultValue: "Failed to decode the contents of the file \(storageKey).",
139 |                 bundle: .module,
    |                          `- error: cannot infer contextual base in reference to member 'module'
140 |                 comment: "Shown when decoding a file into a resource fails."
141 |             )
/host/spi-builder-workspace/Sources/Files/Operations/LoadResource.swift:144:26: error: extra arguments at positions #3, #4 in call
142 |
143 |         case .fileReadFailed(let storageKey, let error):
144 |             return String(
    |                          `- error: extra arguments at positions #3, #4 in call
145 |                 localized: "load.file.error.reading",
146 |                 defaultValue: "Failed to read the file \(storageKey): \(error.localizedDescription).",
Foundation.String.init:2:8: note: 'init(format:locale:_:)' declared here
1 | struct String {
2 | public init(format: __shared String, locale: __shared Locale?, _ args: any CVarArg...)}
  |        `- note: 'init(format:locale:_:)' declared here
3 |
/host/spi-builder-workspace/Sources/Files/Operations/LoadResource.swift:145:17: error: missing argument for parameter 'format' in call
143 |         case .fileReadFailed(let storageKey, let error):
144 |             return String(
145 |                 localized: "load.file.error.reading",
    |                 `- error: missing argument for parameter 'format' in call
146 |                 defaultValue: "Failed to read the file \(storageKey): \(error.localizedDescription).",
147 |                 bundle: .module,
Foundation.String.init:2:8: note: 'init(format:locale:_:)' declared here
1 | struct String {
2 | public init(format: __shared String, locale: __shared Locale?, _ args: any CVarArg...)}
  |        `- note: 'init(format:locale:_:)' declared here
3 |
/host/spi-builder-workspace/Sources/Files/Operations/LoadResource.swift:145:28: error: cannot convert value of type 'String' to expected argument type 'Locale'
143 |         case .fileReadFailed(let storageKey, let error):
144 |             return String(
145 |                 localized: "load.file.error.reading",
    |                            `- error: cannot convert value of type 'String' to expected argument type 'Locale'
146 |                 defaultValue: "Failed to read the file \(storageKey): \(error.localizedDescription).",
147 |                 bundle: .module,
/host/spi-builder-workspace/Sources/Files/Operations/LoadResource.swift:147:26: error: cannot infer contextual base in reference to member 'module'
145 |                 localized: "load.file.error.reading",
146 |                 defaultValue: "Failed to read the file \(storageKey): \(error.localizedDescription).",
147 |                 bundle: .module,
    |                          `- error: cannot infer contextual base in reference to member 'module'
148 |                 comment: "Shown when a file cannot be read. First is the file name, second is the system error."
149 |             )
[10/17] Compiling Files SaveResource.swift
/host/spi-builder-workspace/Sources/Files/Operations/SaveResource.swift:122:26: error: extra arguments at positions #3, #4 in call
120 |         switch self {
121 |         case .encodingFailed:
122 |             return String(
    |                          `- error: extra arguments at positions #3, #4 in call
123 |                 localized: "save.file.error.encoding",
124 |                 defaultValue: "We couldn’t save your data. Please try again.",
Foundation.String.init:2:8: note: 'init(format:locale:_:)' declared here
1 | struct String {
2 | public init(format: __shared String, locale: __shared Locale?, _ args: any CVarArg...)}
  |        `- note: 'init(format:locale:_:)' declared here
3 |
/host/spi-builder-workspace/Sources/Files/Operations/SaveResource.swift:123:17: error: missing argument for parameter 'format' in call
121 |         case .encodingFailed:
122 |             return String(
123 |                 localized: "save.file.error.encoding",
    |                 `- error: missing argument for parameter 'format' in call
124 |                 defaultValue: "We couldn’t save your data. Please try again.",
125 |                 bundle: .module,
Foundation.String.init:2:8: note: 'init(format:locale:_:)' declared here
1 | struct String {
2 | public init(format: __shared String, locale: __shared Locale?, _ args: any CVarArg...)}
  |        `- note: 'init(format:locale:_:)' declared here
3 |
/host/spi-builder-workspace/Sources/Files/Operations/SaveResource.swift:123:28: error: cannot convert value of type 'String' to expected argument type 'Locale'
121 |         case .encodingFailed:
122 |             return String(
123 |                 localized: "save.file.error.encoding",
    |                            `- error: cannot convert value of type 'String' to expected argument type 'Locale'
124 |                 defaultValue: "We couldn’t save your data. Please try again.",
125 |                 bundle: .module,
/host/spi-builder-workspace/Sources/Files/Operations/SaveResource.swift:125:26: error: cannot infer contextual base in reference to member 'module'
123 |                 localized: "save.file.error.encoding",
124 |                 defaultValue: "We couldn’t save your data. Please try again.",
125 |                 bundle: .module,
    |                          `- error: cannot infer contextual base in reference to member 'module'
126 |                 comment: "Shown when encoding a resource fails. Avoids exposing internal keys or file names."
127 |             )
/host/spi-builder-workspace/Sources/Files/Operations/SaveResource.swift:130:26: error: extra arguments at positions #3, #4 in call
128 |
129 |         case .fileSaveFailed:
130 |             return String(
    |                          `- error: extra arguments at positions #3, #4 in call
131 |                 localized: "save.file.error.saving",
132 |                 defaultValue: "Saving the file didn’t work. Please try again.",
Foundation.String.init:2:8: note: 'init(format:locale:_:)' declared here
1 | struct String {
2 | public init(format: __shared String, locale: __shared Locale?, _ args: any CVarArg...)}
  |        `- note: 'init(format:locale:_:)' declared here
3 |
/host/spi-builder-workspace/Sources/Files/Operations/SaveResource.swift:131:17: error: missing argument for parameter 'format' in call
129 |         case .fileSaveFailed:
130 |             return String(
131 |                 localized: "save.file.error.saving",
    |                 `- error: missing argument for parameter 'format' in call
132 |                 defaultValue: "Saving the file didn’t work. Please try again.",
133 |                 bundle: .module,
Foundation.String.init:2:8: note: 'init(format:locale:_:)' declared here
1 | struct String {
2 | public init(format: __shared String, locale: __shared Locale?, _ args: any CVarArg...)}
  |        `- note: 'init(format:locale:_:)' declared here
3 |
/host/spi-builder-workspace/Sources/Files/Operations/SaveResource.swift:131:28: error: cannot convert value of type 'String' to expected argument type 'Locale'
129 |         case .fileSaveFailed:
130 |             return String(
131 |                 localized: "save.file.error.saving",
    |                            `- error: cannot convert value of type 'String' to expected argument type 'Locale'
132 |                 defaultValue: "Saving the file didn’t work. Please try again.",
133 |                 bundle: .module,
/host/spi-builder-workspace/Sources/Files/Operations/SaveResource.swift:133:26: error: cannot infer contextual base in reference to member 'module'
131 |                 localized: "save.file.error.saving",
132 |                 defaultValue: "Saving the file didn’t work. Please try again.",
133 |                 bundle: .module,
    |                          `- error: cannot infer contextual base in reference to member 'module'
134 |                 comment: "Shown when saving a file fails. General message, hides technical detail."
135 |             )
[11/17] Compiling Files Folder.swift
/host/spi-builder-workspace/Sources/Files/Operations/DeleteResource.swift:71:26: error: extra arguments at positions #3, #4 in call
 69 |         switch self {
 70 |         case .fileDeleteFailed:
 71 |             return String(
    |                          `- error: extra arguments at positions #3, #4 in call
 72 |                 localized: "delete.file.error.generic",
 73 |                 defaultValue: "Something went wrong while removing a file. Please try again.",
Foundation.String.init:2:8: note: 'init(format:locale:_:)' declared here
1 | struct String {
2 | public init(format: __shared String, locale: __shared Locale?, _ args: any CVarArg...)}
  |        `- note: 'init(format:locale:_:)' declared here
3 |
/host/spi-builder-workspace/Sources/Files/Operations/DeleteResource.swift:72:17: error: missing argument for parameter 'format' in call
 70 |         case .fileDeleteFailed:
 71 |             return String(
 72 |                 localized: "delete.file.error.generic",
    |                 `- error: missing argument for parameter 'format' in call
 73 |                 defaultValue: "Something went wrong while removing a file. Please try again.",
 74 |                 bundle: .module,
Foundation.String.init:2:8: note: 'init(format:locale:_:)' declared here
1 | struct String {
2 | public init(format: __shared String, locale: __shared Locale?, _ args: any CVarArg...)}
  |        `- note: 'init(format:locale:_:)' declared here
3 |
/host/spi-builder-workspace/Sources/Files/Operations/DeleteResource.swift:72:28: error: cannot convert value of type 'String' to expected argument type 'Locale'
 70 |         case .fileDeleteFailed:
 71 |             return String(
 72 |                 localized: "delete.file.error.generic",
    |                            `- error: cannot convert value of type 'String' to expected argument type 'Locale'
 73 |                 defaultValue: "Something went wrong while removing a file. Please try again.",
 74 |                 bundle: .module,
/host/spi-builder-workspace/Sources/Files/Operations/DeleteResource.swift:74:26: error: cannot infer contextual base in reference to member 'module'
 72 |                 localized: "delete.file.error.generic",
 73 |                 defaultValue: "Something went wrong while removing a file. Please try again.",
 74 |                 bundle: .module,
    |                          `- error: cannot infer contextual base in reference to member 'module'
 75 |                 comment: "Generic user-facing error when file deletion fails. No technical detail included."
 76 |             )
[12/17] Compiling Files DeleteResource.swift
/host/spi-builder-workspace/Sources/Files/Operations/DeleteResource.swift:71:26: error: extra arguments at positions #3, #4 in call
 69 |         switch self {
 70 |         case .fileDeleteFailed:
 71 |             return String(
    |                          `- error: extra arguments at positions #3, #4 in call
 72 |                 localized: "delete.file.error.generic",
 73 |                 defaultValue: "Something went wrong while removing a file. Please try again.",
Foundation.String.init:2:8: note: 'init(format:locale:_:)' declared here
1 | struct String {
2 | public init(format: __shared String, locale: __shared Locale?, _ args: any CVarArg...)}
  |        `- note: 'init(format:locale:_:)' declared here
3 |
/host/spi-builder-workspace/Sources/Files/Operations/DeleteResource.swift:72:17: error: missing argument for parameter 'format' in call
 70 |         case .fileDeleteFailed:
 71 |             return String(
 72 |                 localized: "delete.file.error.generic",
    |                 `- error: missing argument for parameter 'format' in call
 73 |                 defaultValue: "Something went wrong while removing a file. Please try again.",
 74 |                 bundle: .module,
Foundation.String.init:2:8: note: 'init(format:locale:_:)' declared here
1 | struct String {
2 | public init(format: __shared String, locale: __shared Locale?, _ args: any CVarArg...)}
  |        `- note: 'init(format:locale:_:)' declared here
3 |
/host/spi-builder-workspace/Sources/Files/Operations/DeleteResource.swift:72:28: error: cannot convert value of type 'String' to expected argument type 'Locale'
 70 |         case .fileDeleteFailed:
 71 |             return String(
 72 |                 localized: "delete.file.error.generic",
    |                            `- error: cannot convert value of type 'String' to expected argument type 'Locale'
 73 |                 defaultValue: "Something went wrong while removing a file. Please try again.",
 74 |                 bundle: .module,
/host/spi-builder-workspace/Sources/Files/Operations/DeleteResource.swift:74:26: error: cannot infer contextual base in reference to member 'module'
 72 |                 localized: "delete.file.error.generic",
 73 |                 defaultValue: "Something went wrong while removing a file. Please try again.",
 74 |                 bundle: .module,
    |                          `- error: cannot infer contextual base in reference to member 'module'
 75 |                 comment: "Generic user-facing error when file deletion fails. No technical detail included."
 76 |             )
[13/17] Compiling Files Directory.swift
[14/17] Compiling Files File.swift
[15/17] Compiling Files FileSystemContext.swift
[16/17] Compiling Files FileSystemDirectory.swift
[17/17] Compiling Files resource_bundle_accessor.swift
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4609320-2":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:basic-6.1-latest swift build --triple x86_64-unknown-linux-gnu 2>&1
basic-6.1-latest: Pulling from finestructure/spi-images
Digest: sha256:2e2b3aca8600f890617c2faa770b70e33c1dfd303d6f92b308423b89ef6bde64
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:basic-6.1-latest
[0/1] Planning build
Building for debugging...
[0/1] Write swift-version-24593BA9C3E375BF.txt
[2/13] Compiling Files UpdateResource.swift
/host/spi-builder-workspace/Sources/Files/Operations/UpdateResource.swift:106:26: error: extra arguments at positions #3, #4 in call
104 |
105 |         case .unexpected:
106 |             return String(
    |                          `- error: extra arguments at positions #3, #4 in call
107 |                 localized: "update.resource.error.generic",
108 |                 defaultValue: "Something went wrong while updating your data. Please try again.",
Foundation.String.init:2:8: note: 'init(format:locale:_:)' declared here
1 | struct String {
2 | public init(format: __shared String, locale: __shared Locale?, _ args: any CVarArg...)}
  |        `- note: 'init(format:locale:_:)' declared here
3 |
/host/spi-builder-workspace/Sources/Files/Operations/UpdateResource.swift:107:17: error: missing argument for parameter 'format' in call
105 |         case .unexpected:
106 |             return String(
107 |                 localized: "update.resource.error.generic",
    |                 `- error: missing argument for parameter 'format' in call
108 |                 defaultValue: "Something went wrong while updating your data. Please try again.",
109 |                 bundle: .module,
Foundation.String.init:2:8: note: 'init(format:locale:_:)' declared here
1 | struct String {
2 | public init(format: __shared String, locale: __shared Locale?, _ args: any CVarArg...)}
  |        `- note: 'init(format:locale:_:)' declared here
3 |
/host/spi-builder-workspace/Sources/Files/Operations/UpdateResource.swift:107:28: error: cannot convert value of type 'String' to expected argument type 'Locale'
105 |         case .unexpected:
106 |             return String(
107 |                 localized: "update.resource.error.generic",
    |                            `- error: cannot convert value of type 'String' to expected argument type 'Locale'
108 |                 defaultValue: "Something went wrong while updating your data. Please try again.",
109 |                 bundle: .module,
/host/spi-builder-workspace/Sources/Files/Operations/UpdateResource.swift:109:26: error: cannot infer contextual base in reference to member 'module'
107 |                 localized: "update.resource.error.generic",
108 |                 defaultValue: "Something went wrong while updating your data. Please try again.",
109 |                 bundle: .module,
    |                          `- error: cannot infer contextual base in reference to member 'module'
110 |                 comment: "Shown when an unexpected error occurs during a resource update."
111 |             )
[3/13] Compiling Files SaveResource.swift
/host/spi-builder-workspace/Sources/Files/Operations/SaveResource.swift:122:26: error: extra arguments at positions #3, #4 in call
120 |         switch self {
121 |         case .encodingFailed:
122 |             return String(
    |                          `- error: extra arguments at positions #3, #4 in call
123 |                 localized: "save.file.error.encoding",
124 |                 defaultValue: "We couldn’t save your data. Please try again.",
Foundation.String.init:2:8: note: 'init(format:locale:_:)' declared here
1 | struct String {
2 | public init(format: __shared String, locale: __shared Locale?, _ args: any CVarArg...)}
  |        `- note: 'init(format:locale:_:)' declared here
3 |
/host/spi-builder-workspace/Sources/Files/Operations/SaveResource.swift:123:17: error: missing argument for parameter 'format' in call
121 |         case .encodingFailed:
122 |             return String(
123 |                 localized: "save.file.error.encoding",
    |                 `- error: missing argument for parameter 'format' in call
124 |                 defaultValue: "We couldn’t save your data. Please try again.",
125 |                 bundle: .module,
Foundation.String.init:2:8: note: 'init(format:locale:_:)' declared here
1 | struct String {
2 | public init(format: __shared String, locale: __shared Locale?, _ args: any CVarArg...)}
  |        `- note: 'init(format:locale:_:)' declared here
3 |
/host/spi-builder-workspace/Sources/Files/Operations/SaveResource.swift:123:28: error: cannot convert value of type 'String' to expected argument type 'Locale'
121 |         case .encodingFailed:
122 |             return String(
123 |                 localized: "save.file.error.encoding",
    |                            `- error: cannot convert value of type 'String' to expected argument type 'Locale'
124 |                 defaultValue: "We couldn’t save your data. Please try again.",
125 |                 bundle: .module,
/host/spi-builder-workspace/Sources/Files/Operations/SaveResource.swift:125:26: error: cannot infer contextual base in reference to member 'module'
123 |                 localized: "save.file.error.encoding",
124 |                 defaultValue: "We couldn’t save your data. Please try again.",
125 |                 bundle: .module,
    |                          `- error: cannot infer contextual base in reference to member 'module'
126 |                 comment: "Shown when encoding a resource fails. Avoids exposing internal keys or file names."
127 |             )
/host/spi-builder-workspace/Sources/Files/Operations/SaveResource.swift:130:26: error: extra arguments at positions #3, #4 in call
128 |
129 |         case .fileSaveFailed:
130 |             return String(
    |                          `- error: extra arguments at positions #3, #4 in call
131 |                 localized: "save.file.error.saving",
132 |                 defaultValue: "Saving the file didn’t work. Please try again.",
Foundation.String.init:2:8: note: 'init(format:locale:_:)' declared here
1 | struct String {
2 | public init(format: __shared String, locale: __shared Locale?, _ args: any CVarArg...)}
  |        `- note: 'init(format:locale:_:)' declared here
3 |
/host/spi-builder-workspace/Sources/Files/Operations/SaveResource.swift:131:17: error: missing argument for parameter 'format' in call
129 |         case .fileSaveFailed:
130 |             return String(
131 |                 localized: "save.file.error.saving",
    |                 `- error: missing argument for parameter 'format' in call
132 |                 defaultValue: "Saving the file didn’t work. Please try again.",
133 |                 bundle: .module,
Foundation.String.init:2:8: note: 'init(format:locale:_:)' declared here
1 | struct String {
2 | public init(format: __shared String, locale: __shared Locale?, _ args: any CVarArg...)}
  |        `- note: 'init(format:locale:_:)' declared here
3 |
/host/spi-builder-workspace/Sources/Files/Operations/SaveResource.swift:131:28: error: cannot convert value of type 'String' to expected argument type 'Locale'
129 |         case .fileSaveFailed:
130 |             return String(
131 |                 localized: "save.file.error.saving",
    |                            `- error: cannot convert value of type 'String' to expected argument type 'Locale'
132 |                 defaultValue: "Saving the file didn’t work. Please try again.",
133 |                 bundle: .module,
/host/spi-builder-workspace/Sources/Files/Operations/SaveResource.swift:133:26: error: cannot infer contextual base in reference to member 'module'
131 |                 localized: "save.file.error.saving",
132 |                 defaultValue: "Saving the file didn’t work. Please try again.",
133 |                 bundle: .module,
    |                          `- error: cannot infer contextual base in reference to member 'module'
134 |                 comment: "Shown when saving a file fails. General message, hides technical detail."
135 |             )
[4/14] Compiling Files LoadResource.swift
/host/spi-builder-workspace/Sources/Files/Operations/LoadResource.swift:128:26: error: extra arguments at positions #3, #4 in call
126 |         switch self {
127 |         case .emptyFile(let storageKey):
128 |             return String(
    |                          `- error: extra arguments at positions #3, #4 in call
129 |                 localized: "load.file.error.empty",
130 |                 defaultValue: "The file \(storageKey) is empty.",
Foundation.String.init:2:8: note: 'init(format:locale:_:)' declared here
1 | struct String {
2 | public init(format: __shared String, locale: __shared Locale?, _ args: any CVarArg...)}
  |        `- note: 'init(format:locale:_:)' declared here
3 |
/host/spi-builder-workspace/Sources/Files/Operations/LoadResource.swift:129:17: error: missing argument for parameter 'format' in call
127 |         case .emptyFile(let storageKey):
128 |             return String(
129 |                 localized: "load.file.error.empty",
    |                 `- error: missing argument for parameter 'format' in call
130 |                 defaultValue: "The file \(storageKey) is empty.",
131 |                 bundle: .module,
Foundation.String.init:2:8: note: 'init(format:locale:_:)' declared here
1 | struct String {
2 | public init(format: __shared String, locale: __shared Locale?, _ args: any CVarArg...)}
  |        `- note: 'init(format:locale:_:)' declared here
3 |
/host/spi-builder-workspace/Sources/Files/Operations/LoadResource.swift:129:28: error: cannot convert value of type 'String' to expected argument type 'Locale'
127 |         case .emptyFile(let storageKey):
128 |             return String(
129 |                 localized: "load.file.error.empty",
    |                            `- error: cannot convert value of type 'String' to expected argument type 'Locale'
130 |                 defaultValue: "The file \(storageKey) is empty.",
131 |                 bundle: .module,
/host/spi-builder-workspace/Sources/Files/Operations/LoadResource.swift:131:26: error: cannot infer contextual base in reference to member 'module'
129 |                 localized: "load.file.error.empty",
130 |                 defaultValue: "The file \(storageKey) is empty.",
131 |                 bundle: .module,
    |                          `- error: cannot infer contextual base in reference to member 'module'
132 |                 comment: "Shown when a file exists but contains no data."
133 |             )
/host/spi-builder-workspace/Sources/Files/Operations/LoadResource.swift:136:26: error: extra arguments at positions #3, #4 in call
134 |
135 |         case .decodingFailed(let storageKey):
136 |             return String(
    |                          `- error: extra arguments at positions #3, #4 in call
137 |                 localized: "load.file.error.decoding",
138 |                 defaultValue: "Failed to decode the contents of the file \(storageKey).",
Foundation.String.init:2:8: note: 'init(format:locale:_:)' declared here
1 | struct String {
2 | public init(format: __shared String, locale: __shared Locale?, _ args: any CVarArg...)}
  |        `- note: 'init(format:locale:_:)' declared here
3 |
/host/spi-builder-workspace/Sources/Files/Operations/LoadResource.swift:137:17: error: missing argument for parameter 'format' in call
135 |         case .decodingFailed(let storageKey):
136 |             return String(
137 |                 localized: "load.file.error.decoding",
    |                 `- error: missing argument for parameter 'format' in call
138 |                 defaultValue: "Failed to decode the contents of the file \(storageKey).",
139 |                 bundle: .module,
Foundation.String.init:2:8: note: 'init(format:locale:_:)' declared here
1 | struct String {
2 | public init(format: __shared String, locale: __shared Locale?, _ args: any CVarArg...)}
  |        `- note: 'init(format:locale:_:)' declared here
3 |
/host/spi-builder-workspace/Sources/Files/Operations/LoadResource.swift:137:28: error: cannot convert value of type 'String' to expected argument type 'Locale'
135 |         case .decodingFailed(let storageKey):
136 |             return String(
137 |                 localized: "load.file.error.decoding",
    |                            `- error: cannot convert value of type 'String' to expected argument type 'Locale'
138 |                 defaultValue: "Failed to decode the contents of the file \(storageKey).",
139 |                 bundle: .module,
/host/spi-builder-workspace/Sources/Files/Operations/LoadResource.swift:139:26: error: cannot infer contextual base in reference to member 'module'
137 |                 localized: "load.file.error.decoding",
138 |                 defaultValue: "Failed to decode the contents of the file \(storageKey).",
139 |                 bundle: .module,
    |                          `- error: cannot infer contextual base in reference to member 'module'
140 |                 comment: "Shown when decoding a file into a resource fails."
141 |             )
/host/spi-builder-workspace/Sources/Files/Operations/LoadResource.swift:144:26: error: extra arguments at positions #3, #4 in call
142 |
143 |         case .fileReadFailed(let storageKey, let error):
144 |             return String(
    |                          `- error: extra arguments at positions #3, #4 in call
145 |                 localized: "load.file.error.reading",
146 |                 defaultValue: "Failed to read the file \(storageKey): \(error.localizedDescription).",
Foundation.String.init:2:8: note: 'init(format:locale:_:)' declared here
1 | struct String {
2 | public init(format: __shared String, locale: __shared Locale?, _ args: any CVarArg...)}
  |        `- note: 'init(format:locale:_:)' declared here
3 |
/host/spi-builder-workspace/Sources/Files/Operations/LoadResource.swift:145:17: error: missing argument for parameter 'format' in call
143 |         case .fileReadFailed(let storageKey, let error):
144 |             return String(
145 |                 localized: "load.file.error.reading",
    |                 `- error: missing argument for parameter 'format' in call
146 |                 defaultValue: "Failed to read the file \(storageKey): \(error.localizedDescription).",
147 |                 bundle: .module,
Foundation.String.init:2:8: note: 'init(format:locale:_:)' declared here
1 | struct String {
2 | public init(format: __shared String, locale: __shared Locale?, _ args: any CVarArg...)}
  |        `- note: 'init(format:locale:_:)' declared here
3 |
/host/spi-builder-workspace/Sources/Files/Operations/LoadResource.swift:145:28: error: cannot convert value of type 'String' to expected argument type 'Locale'
143 |         case .fileReadFailed(let storageKey, let error):
144 |             return String(
145 |                 localized: "load.file.error.reading",
    |                            `- error: cannot convert value of type 'String' to expected argument type 'Locale'
146 |                 defaultValue: "Failed to read the file \(storageKey): \(error.localizedDescription).",
147 |                 bundle: .module,
/host/spi-builder-workspace/Sources/Files/Operations/LoadResource.swift:147:26: error: cannot infer contextual base in reference to member 'module'
145 |                 localized: "load.file.error.reading",
146 |                 defaultValue: "Failed to read the file \(storageKey): \(error.localizedDescription).",
147 |                 bundle: .module,
    |                          `- error: cannot infer contextual base in reference to member 'module'
148 |                 comment: "Shown when a file cannot be read. First is the file name, second is the system error."
149 |             )
[5/14] Compiling Files Folder.swift
/host/spi-builder-workspace/Sources/Files/Operations/DeleteResource.swift:71:26: error: extra arguments at positions #3, #4 in call
 69 |         switch self {
 70 |         case .fileDeleteFailed:
 71 |             return String(
    |                          `- error: extra arguments at positions #3, #4 in call
 72 |                 localized: "delete.file.error.generic",
 73 |                 defaultValue: "Something went wrong while removing a file. Please try again.",
Foundation.String.init:2:8: note: 'init(format:locale:_:)' declared here
1 | struct String {
2 | public init(format: __shared String, locale: __shared Locale?, _ args: any CVarArg...)}
  |        `- note: 'init(format:locale:_:)' declared here
3 |
/host/spi-builder-workspace/Sources/Files/Operations/DeleteResource.swift:72:17: error: missing argument for parameter 'format' in call
 70 |         case .fileDeleteFailed:
 71 |             return String(
 72 |                 localized: "delete.file.error.generic",
    |                 `- error: missing argument for parameter 'format' in call
 73 |                 defaultValue: "Something went wrong while removing a file. Please try again.",
 74 |                 bundle: .module,
Foundation.String.init:2:8: note: 'init(format:locale:_:)' declared here
1 | struct String {
2 | public init(format: __shared String, locale: __shared Locale?, _ args: any CVarArg...)}
  |        `- note: 'init(format:locale:_:)' declared here
3 |
/host/spi-builder-workspace/Sources/Files/Operations/DeleteResource.swift:72:28: error: cannot convert value of type 'String' to expected argument type 'Locale'
 70 |         case .fileDeleteFailed:
 71 |             return String(
 72 |                 localized: "delete.file.error.generic",
    |                            `- error: cannot convert value of type 'String' to expected argument type 'Locale'
 73 |                 defaultValue: "Something went wrong while removing a file. Please try again.",
 74 |                 bundle: .module,
/host/spi-builder-workspace/Sources/Files/Operations/DeleteResource.swift:74:26: error: cannot infer contextual base in reference to member 'module'
 72 |                 localized: "delete.file.error.generic",
 73 |                 defaultValue: "Something went wrong while removing a file. Please try again.",
 74 |                 bundle: .module,
    |                          `- error: cannot infer contextual base in reference to member 'module'
 75 |                 comment: "Generic user-facing error when file deletion fails. No technical detail included."
 76 |             )
[6/14] Compiling Files DeleteResource.swift
/host/spi-builder-workspace/Sources/Files/Operations/DeleteResource.swift:71:26: error: extra arguments at positions #3, #4 in call
 69 |         switch self {
 70 |         case .fileDeleteFailed:
 71 |             return String(
    |                          `- error: extra arguments at positions #3, #4 in call
 72 |                 localized: "delete.file.error.generic",
 73 |                 defaultValue: "Something went wrong while removing a file. Please try again.",
Foundation.String.init:2:8: note: 'init(format:locale:_:)' declared here
1 | struct String {
2 | public init(format: __shared String, locale: __shared Locale?, _ args: any CVarArg...)}
  |        `- note: 'init(format:locale:_:)' declared here
3 |
/host/spi-builder-workspace/Sources/Files/Operations/DeleteResource.swift:72:17: error: missing argument for parameter 'format' in call
 70 |         case .fileDeleteFailed:
 71 |             return String(
 72 |                 localized: "delete.file.error.generic",
    |                 `- error: missing argument for parameter 'format' in call
 73 |                 defaultValue: "Something went wrong while removing a file. Please try again.",
 74 |                 bundle: .module,
Foundation.String.init:2:8: note: 'init(format:locale:_:)' declared here
1 | struct String {
2 | public init(format: __shared String, locale: __shared Locale?, _ args: any CVarArg...)}
  |        `- note: 'init(format:locale:_:)' declared here
3 |
/host/spi-builder-workspace/Sources/Files/Operations/DeleteResource.swift:72:28: error: cannot convert value of type 'String' to expected argument type 'Locale'
 70 |         case .fileDeleteFailed:
 71 |             return String(
 72 |                 localized: "delete.file.error.generic",
    |                            `- error: cannot convert value of type 'String' to expected argument type 'Locale'
 73 |                 defaultValue: "Something went wrong while removing a file. Please try again.",
 74 |                 bundle: .module,
/host/spi-builder-workspace/Sources/Files/Operations/DeleteResource.swift:74:26: error: cannot infer contextual base in reference to member 'module'
 72 |                 localized: "delete.file.error.generic",
 73 |                 defaultValue: "Something went wrong while removing a file. Please try again.",
 74 |                 bundle: .module,
    |                          `- error: cannot infer contextual base in reference to member 'module'
 75 |                 comment: "Generic user-facing error when file deletion fails. No technical detail included."
 76 |             )
[7/14] Compiling Files FileSystemFolderStore.swift
[8/14] Compiling Files FileSystemOperations.swift
[9/14] Compiling Files FileSystemContext.swift
[10/14] Compiling Files FileSystemDirectory.swift
[11/14] Emitting module Files
[12/14] Compiling Files Directory.swift
[13/14] Compiling Files File.swift
[14/14] Compiling Files resource_bundle_accessor.swift
BUILD FAILURE 6.1 linux