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

Successful build of CSVImporter, reference 1.9.1 (637553), with Swift 6.0 for Linux on 28 Nov 2024 15:29:31 UTC.

Swift 6 data race errors: 0

Build Command

bash -c docker run --pull=always --rm -v "checkouts-4609320-0":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:basic-6.0-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

Build Log

========================================
RunAll
========================================
Builder version: 4.58.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/FlineDev/CSVImporter.git
Reference: 1.9.1
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/FlineDev/CSVImporter
 * tag               1.9.1      -> FETCH_HEAD
HEAD is now at 6375530 Merge branch 'deploy/1.9.1' into productive
Cloned https://github.com/FlineDev/CSVImporter.git
Revision (git rev-parse @):
63755302a3d3ad81d62607dba4a97f06a62eab1b
SUCCESS checkout https://github.com/FlineDev/CSVImporter.git at 1.9.1
========================================
Build
========================================
Selected platform:         linux
Swift version:             6.0
Building package at path:  $PWD
https://github.com/FlineDev/CSVImporter.git
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4609320-0":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:basic-6.0-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.0-latest: Pulling from finestructure/spi-images
Digest: sha256:47d26c99ca4f1ac0a332c85fd5b13ff4390e72115219984a57a68fe9d1063a05
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:basic-6.0-latest
Fetching https://github.com/Flinesoft/HandySwift.git
Fetching https://github.com/Quick/Quick.git
Fetching https://github.com/Quick/Nimble.git
[1/14740] Fetching quick
[2212/18064] Fetching quick, handyswift
Fetched https://github.com/Quick/Quick.git from cache (0.54s)
[1/19275] Fetching nimble
Fetched https://github.com/Flinesoft/HandySwift.git from cache (1.50s)
Fetched https://github.com/Quick/Nimble.git from cache (1.52s)
Computing version for https://github.com/Quick/Quick.git
Computed https://github.com/Quick/Quick.git at 1.3.4 (0.43s)
Computing version for https://github.com/Flinesoft/HandySwift.git
Computed https://github.com/Flinesoft/HandySwift.git at 2.8.0 (0.42s)
Computing version for https://github.com/Quick/Nimble.git
Computed https://github.com/Quick/Nimble.git at 7.3.4 (0.43s)
Creating working copy for https://github.com/Flinesoft/HandySwift.git
Working copy of https://github.com/Flinesoft/HandySwift.git resolved at 2.8.0
Creating working copy for https://github.com/Quick/Quick.git
Working copy of https://github.com/Quick/Quick.git resolved at 1.3.4
Creating working copy for https://github.com/Quick/Nimble.git
Working copy of https://github.com/Quick/Nimble.git resolved at 7.3.4
warning: 'spi-builder-workspace': Invalid Exclude '/host/spi-builder-workspace/Frameworks/CSVImporter/Frameworks/SupportingFiles': File not found.
warning: 'spi-builder-workspace': Invalid Exclude '/host/spi-builder-workspace/Tests/CSVImporterTests/Tests/SupportingFiles': File not found.
Building for debugging...
[0/3] Write sources
[2/3] Write swift-version-24593BA9C3E375BF.txt
[4/17] Compiling HandySwift Regex.swift
[5/17] Compiling HandySwift SortedArray.swift
[6/18] Compiling HandySwift Globals.swift
[7/18] Compiling HandySwift FrequencyTable.swift
[8/18] Compiling HandySwift Unowned.swift
[9/18] Compiling HandySwift Weak.swift
[10/18] Compiling HandySwift StringExtension.swift
[11/18] Compiling HandySwift TimeIntervalExtension.swift
[12/18] Compiling HandySwift DictionaryExtension.swift
[13/18] Compiling HandySwift DispatchTimeIntervalExtension.swift
[14/18] Compiling HandySwift IntExtension.swift
[15/18] Compiling HandySwift NSRangeExtension.swift
[16/18] Emitting module HandySwift
[17/18] Compiling HandySwift ArrayExtension.swift
[18/18] Compiling HandySwift CollectionExtension.swift
[20/27] Compiling CSVImporter Globals.swift
[21/27] Compiling CSVImporter StringSource.swift
[22/27] Compiling CSVImporter Source.swift
[23/27] Compiling CSVImporter FileSource.swift
[24/27] Compiling CSVImporter TextFileStreamReader.swift
[25/27] Compiling CSVImporter TextFile.swift
[26/27] Emitting module CSVImporter
[27/27] Compiling CSVImporter CSVImporter.swift
/host/spi-builder-workspace/Frameworks/CSVImporter/CSVImporter.swift:155:44: warning: capture of 'self' with non-sendable type 'Self' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 19 |
 20 | /// Importer for CSV files that maps your lines to a specified data structure.
 21 | public class CSVImporter<T> {
    |              `- note: generic class 'CSVImporter' does not conform to the 'Sendable' protocol
 22 |     // MARK: - Stored Instance Properties
 23 |     let source: Source
    :
153 |             var importedRecords = [T]()
154 |
155 |             let importedLinesWithSuccess = self.importLines { valuesInLine in
    |                                            `- warning: capture of 'self' with non-sendable type 'Self' in a `@Sendable` closure; this is an error in the Swift 6 language mode
156 |                 let newRecord = closure(valuesInLine)
157 |                 importedRecords.append(newRecord)
/host/spi-builder-workspace/Frameworks/CSVImporter/CSVImporter.swift:156:33: warning: capture of 'closure' with non-sendable type '([String]) -> T' in a `@Sendable` closure; this is an error in the Swift 6 language mode
154 |
155 |             let importedLinesWithSuccess = self.importLines { valuesInLine in
156 |                 let newRecord = closure(valuesInLine)
    |                                 |- warning: capture of 'closure' with non-sendable type '([String]) -> T' in a `@Sendable` closure; this is an error in the Swift 6 language mode
    |                                 `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
157 |                 importedRecords.append(newRecord)
158 |
/host/spi-builder-workspace/Frameworks/CSVImporter/CSVImporter.swift:156:33: warning: capture of 'closure' with non-sendable type '([String]) -> T' in an isolated closure; this is an error in the Swift 6 language mode
154 |
155 |             let importedLinesWithSuccess = self.importLines { valuesInLine in
156 |                 let newRecord = closure(valuesInLine)
    |                                 |- warning: capture of 'closure' with non-sendable type '([String]) -> T' in an isolated closure; this is an error in the Swift 6 language mode
    |                                 `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
157 |                 importedRecords.append(newRecord)
158 |
/host/spi-builder-workspace/Frameworks/CSVImporter/CSVImporter.swift:159:17: warning: capture of 'self' with non-sendable type 'Self' in an isolated closure; this is an error in the Swift 6 language mode
 19 |
 20 | /// Importer for CSV files that maps your lines to a specified data structure.
 21 | public class CSVImporter<T> {
    |              `- note: generic class 'CSVImporter' does not conform to the 'Sendable' protocol
 22 |     // MARK: - Stored Instance Properties
 23 |     let source: Source
    :
157 |                 importedRecords.append(newRecord)
158 |
159 |                 self.reportProgressIfNeeded(importedRecords)
    |                 `- warning: capture of 'self' with non-sendable type 'Self' in an isolated closure; this is an error in the Swift 6 language mode
160 |             }
161 |
/host/spi-builder-workspace/Frameworks/CSVImporter/CSVImporter.swift:186:44: warning: capture of 'self' with non-sendable type 'Self' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 19 |
 20 | /// Importer for CSV files that maps your lines to a specified data structure.
 21 | public class CSVImporter<T> {
    |              `- note: generic class 'CSVImporter' does not conform to the 'Sendable' protocol
 22 |     // MARK: - Stored Instance Properties
 23 |     let source: Source
    :
184 |             var importedRecords = [T]()
185 |
186 |             let importedLinesWithSuccess = self.importLines { valuesInLine in
    |                                            `- warning: capture of 'self' with non-sendable type 'Self' in a `@Sendable` closure; this is an error in the Swift 6 language mode
187 |                 if recordStructure == nil {
188 |                     recordStructure = valuesInLine
/host/spi-builder-workspace/Frameworks/CSVImporter/CSVImporter.swift:189:21: warning: capture of 'structureClosure' with non-sendable type '([String]) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
187 |                 if recordStructure == nil {
188 |                     recordStructure = valuesInLine
189 |                     structureClosure(valuesInLine)
    |                     |- warning: capture of 'structureClosure' with non-sendable type '([String]) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
    |                     `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
190 |                 } else {
191 |                     if let structuredValuesInLine = [String: String](keys: recordStructure!, values: valuesInLine) {
/host/spi-builder-workspace/Frameworks/CSVImporter/CSVImporter.swift:192:41: warning: capture of 'closure' with non-sendable type '([String : String]) -> T' in a `@Sendable` closure; this is an error in the Swift 6 language mode
190 |                 } else {
191 |                     if let structuredValuesInLine = [String: String](keys: recordStructure!, values: valuesInLine) {
192 |                         let newRecord = closure(structuredValuesInLine)
    |                                         |- warning: capture of 'closure' with non-sendable type '([String : String]) -> T' in a `@Sendable` closure; this is an error in the Swift 6 language mode
    |                                         `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
193 |                         importedRecords.append(newRecord)
194 |
/host/spi-builder-workspace/Frameworks/CSVImporter/CSVImporter.swift:189:21: warning: capture of 'structureClosure' with non-sendable type '([String]) -> Void' in an isolated closure; this is an error in the Swift 6 language mode
187 |                 if recordStructure == nil {
188 |                     recordStructure = valuesInLine
189 |                     structureClosure(valuesInLine)
    |                     |- warning: capture of 'structureClosure' with non-sendable type '([String]) -> Void' in an isolated closure; this is an error in the Swift 6 language mode
    |                     `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
190 |                 } else {
191 |                     if let structuredValuesInLine = [String: String](keys: recordStructure!, values: valuesInLine) {
/host/spi-builder-workspace/Frameworks/CSVImporter/CSVImporter.swift:192:41: warning: capture of 'closure' with non-sendable type '([String : String]) -> T' in an isolated closure; this is an error in the Swift 6 language mode
190 |                 } else {
191 |                     if let structuredValuesInLine = [String: String](keys: recordStructure!, values: valuesInLine) {
192 |                         let newRecord = closure(structuredValuesInLine)
    |                                         |- warning: capture of 'closure' with non-sendable type '([String : String]) -> T' in an isolated closure; this is an error in the Swift 6 language mode
    |                                         `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
193 |                         importedRecords.append(newRecord)
194 |
/host/spi-builder-workspace/Frameworks/CSVImporter/CSVImporter.swift:195:25: warning: capture of 'self' with non-sendable type 'Self' in an isolated closure; this is an error in the Swift 6 language mode
 19 |
 20 | /// Importer for CSV files that maps your lines to a specified data structure.
 21 | public class CSVImporter<T> {
    |              `- note: generic class 'CSVImporter' does not conform to the 'Sendable' protocol
 22 |     // MARK: - Stored Instance Properties
 23 |     let source: Source
    :
193 |                         importedRecords.append(newRecord)
194 |
195 |                         self.reportProgressIfNeeded(importedRecords)
    |                         `- warning: capture of 'self' with non-sendable type 'Self' in an isolated closure; this is an error in the Swift 6 language mode
196 |                     } else {
197 |                         print("Warning: Couldn't structurize line.")
/host/spi-builder-workspace/Frameworks/CSVImporter/CSVImporter.swift:364:17: warning: capture of 'failClosure' with non-sendable type '() -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
362 |         if let failClosure = self.failClosure {
363 |             callbacksDispatchQueue.async {
364 |                 failClosure()
    |                 |- warning: capture of 'failClosure' with non-sendable type '() -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
    |                 `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
365 |             }
366 |         }
/host/spi-builder-workspace/Frameworks/CSVImporter/CSVImporter.swift:375:21: warning: capture of 'progressClosure' with non-sendable type '(Int) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
373 |             if let progressClosure = self.progressClosure {
374 |                 callbacksDispatchQueue.async {
375 |                     progressClosure(importedRecords.count)
    |                     |- warning: capture of 'progressClosure' with non-sendable type '(Int) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
    |                     `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
376 |                 }
377 |             }
/host/spi-builder-workspace/Frameworks/CSVImporter/CSVImporter.swift:375:37: warning: capture of 'importedRecords' with non-sendable type '[T]' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 19 |
 20 | /// Importer for CSV files that maps your lines to a specified data structure.
 21 | public class CSVImporter<T> {
    |                          `- note: consider making generic parameter 'T' conform to the 'Sendable' protocol
 22 |     // MARK: - Stored Instance Properties
 23 |     let source: Source
    :
373 |             if let progressClosure = self.progressClosure {
374 |                 callbacksDispatchQueue.async {
375 |                     progressClosure(importedRecords.count)
    |                                     `- warning: capture of 'importedRecords' with non-sendable type '[T]' in a `@Sendable` closure; this is an error in the Swift 6 language mode
376 |                 }
377 |             }
/host/spi-builder-workspace/Frameworks/CSVImporter/CSVImporter.swift:384:17: warning: capture of 'finishClosure' with non-sendable type '([T]) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
382 |         if let finishClosure = self.finishClosure {
383 |             callbacksDispatchQueue.async {
384 |                 finishClosure(importedRecords)
    |                 |- warning: capture of 'finishClosure' with non-sendable type '([T]) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
    |                 `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
385 |             }
386 |         }
/host/spi-builder-workspace/Frameworks/CSVImporter/CSVImporter.swift:384:31: warning: capture of 'importedRecords' with non-sendable type '[T]' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 19 |
 20 | /// Importer for CSV files that maps your lines to a specified data structure.
 21 | public class CSVImporter<T> {
    |                          `- note: consider making generic parameter 'T' conform to the 'Sendable' protocol
 22 |     // MARK: - Stored Instance Properties
 23 |     let source: Source
    :
382 |         if let finishClosure = self.finishClosure {
383 |             callbacksDispatchQueue.async {
384 |                 finishClosure(importedRecords)
    |                               `- warning: capture of 'importedRecords' with non-sendable type '[T]' in a `@Sendable` closure; this is an error in the Swift 6 language mode
385 |             }
386 |         }
Build complete! (14.92s)
Build complete.
{
  "dependencies" : [
    {
      "identity" : "handyswift",
      "requirement" : {
        "range" : [
          {
            "lower_bound" : "2.7.0",
            "upper_bound" : "3.0.0"
          }
        ]
      },
      "type" : "sourceControl",
      "url" : "https://github.com/Flinesoft/HandySwift.git"
    },
    {
      "identity" : "quick",
      "requirement" : {
        "range" : [
          {
            "lower_bound" : "1.3.2",
            "upper_bound" : "2.0.0"
          }
        ]
      },
      "type" : "sourceControl",
      "url" : "https://github.com/Quick/Quick.git"
    },
    {
      "identity" : "nimble",
      "requirement" : {
        "range" : [
          {
            "lower_bound" : "7.3.1",
            "upper_bound" : "8.0.0"
          }
        ]
      },
      "type" : "sourceControl",
      "url" : "https://github.com/Quick/Nimble.git"
    }
  ],
  "manifest_display_name" : "CSVImporter",
  "name" : "CSVImporter",
  "path" : "/host/spi-builder-workspace",
  "platforms" : [
  ],
  "products" : [
    {
      "name" : "CSVImporter",
      "targets" : [
        "CSVImporter"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "swift_languages_versions" : [
    "4"
  ],
  "targets" : [
    {
      "c99name" : "CSVImporterTests",
      "module_type" : "SwiftTarget",
      "name" : "CSVImporterTests",
      "path" : "Tests/CSVImporterTests",
      "product_dependencies" : [
        "Quick",
        "Nimble"
      ],
      "sources" : [
        "CSVImporterSpec.swift"
      ],
      "target_dependencies" : [
        "CSVImporter"
      ],
      "type" : "test"
    },
    {
      "c99name" : "CSVImporter",
      "module_type" : "SwiftTarget",
      "name" : "CSVImporter",
      "path" : "Frameworks/CSVImporter",
      "product_dependencies" : [
        "HandySwift"
      ],
      "product_memberships" : [
        "CSVImporter"
      ],
      "sources" : [
        "CSVImporter.swift",
        "FileSource.swift",
        "Globals.swift",
        "Source.swift",
        "StringSource.swift",
        "TextFile.swift",
        "TextFileStreamReader.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "4.0"
}
basic-6.0-latest: Pulling from finestructure/spi-images
Digest: sha256:47d26c99ca4f1ac0a332c85fd5b13ff4390e72115219984a57a68fe9d1063a05
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:basic-6.0-latest
warning: 'spi-builder-workspace': Invalid Exclude '/host/spi-builder-workspace/Frameworks/CSVImporter/Frameworks/SupportingFiles': File not found.
warning: 'spi-builder-workspace': Invalid Exclude '/host/spi-builder-workspace/Tests/CSVImporterTests/Tests/SupportingFiles': File not found.
Done.