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 UBloxGPS, reference master (c4d48e), with Swift 6.0 for Linux on 30 Oct 2024 21:42:14 UTC.

Swift 6 data race errors: 0

Build Command

bash -c docker run --pull=always --rm -v "checkouts-4609320-1":/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 2>&1

Build Log

========================================
RunAll
========================================
Builder version: 4.56.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/uraimo/ubloxgps.swift.git
Reference: master
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/uraimo/ubloxgps.swift
 * branch            master     -> FETCH_HEAD
 * [new branch]      master     -> origin/master
HEAD is now at c4d48e4 Now requiring Swift 4.x+
Cloned https://github.com/uraimo/ubloxgps.swift.git
Revision (git rev-parse @):
c4d48e4d11984822e62124b8255a4e68e5303ef2
SUCCESS checkout https://github.com/uraimo/ubloxgps.swift.git at master
========================================
Build
========================================
Selected platform:         linux
Swift version:             6.0
Building package at path:  $PWD
https://github.com/uraimo/ubloxgps.swift.git
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4609320-1":/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 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/uraimo/SwiftyGPIO.git
[1/2387] Fetching swiftygpio
Fetched https://github.com/uraimo/SwiftyGPIO.git from cache (0.27s)
Computing version for https://github.com/uraimo/SwiftyGPIO.git
Computed https://github.com/uraimo/SwiftyGPIO.git at 1.4.4 (3.14s)
Creating working copy for https://github.com/uraimo/SwiftyGPIO.git
Working copy of https://github.com/uraimo/SwiftyGPIO.git resolved at 1.4.4
Building for debugging...
[0/3] Write sources
[2/3] Write swift-version-24593BA9C3E375BF.txt
[4/13] Compiling SwiftyGPIO Presets.swift
[5/13] Compiling SwiftyGPIO SunXi.swift
[6/13] Compiling SwiftyGPIO SPI.swift
[7/14] Compiling SwiftyGPIO UART.swift
[8/14] Compiling SwiftyGPIO PWM.swift
[9/14] Compiling SwiftyGPIO 1Wire.swift
[10/14] Compiling SwiftyGPIO ADC.swift
[11/14] Emitting module SwiftyGPIO
[12/14] Compiling SwiftyGPIO I2C.swift
[13/14] Compiling SwiftyGPIO Mailbox.swift
[14/14] Compiling SwiftyGPIO SwiftyGPIO.swift
[16/17] Emitting module UBloxGPS
[17/17] Compiling UBloxGPS UBloxGPS.swift
/host/spi-builder-workspace/Sources/UBloxGPS.swift:83:13: warning: capture of 'self' with non-sendable type 'UBloxGPS' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 28 |
 29 |
 30 | public class UBloxGPS{
    |              `- note: class 'UBloxGPS' does not conform to the 'Sendable' protocol
 31 |    var uart: UARTInterface
 32 |    var updateThread: Thread?
    :
 81 |       if updateThread == nil {
 82 |          updateThread = Thread{ [unowned self] in
 83 |             self.update()
    |             `- warning: capture of 'self' with non-sendable type 'UBloxGPS' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 84 |          }
 85 |       }
/host/spi-builder-workspace/Sources/UBloxGPS.swift:131:24: warning: 'characters' is deprecated: Please use String directly
129 |             // time,valid,lat,NorS,lon,EorW,speed,course,date,magn,EorW,ck
130 |             // time= hhmmss.ss, date= ddmmyy
131 |             if comp[1].characters.count > 0 {
    |                        `- warning: 'characters' is deprecated: Please use String directly
132 |                datetime = comp[9]+" "+String(comp[1].characters.dropLast(3))
133 |             }
/host/spi-builder-workspace/Sources/UBloxGPS.swift:132:54: warning: 'characters' is deprecated: Please use String directly
130 |             // time= hhmmss.ss, date= ddmmyy
131 |             if comp[1].characters.count > 0 {
132 |                datetime = comp[9]+" "+String(comp[1].characters.dropLast(3))
    |                                                      `- warning: 'characters' is deprecated: Please use String directly
133 |             }
134 |
/host/spi-builder-workspace/Sources/UBloxGPS.swift:141:25: warning: 'characters' is deprecated: Please use String directly
139 |
140 |             // latitude and longitude in degrees+minutes format
141 |             if (comp[3].characters.count > 0) && (comp[5].characters.count > 0) {
    |                         `- warning: 'characters' is deprecated: Please use String directly
142 |                latitude = Double(String(comp[3].characters.prefix(2)))! +
143 |                            Double(String(comp[3].characters.dropFirst(2)))!/60
/host/spi-builder-workspace/Sources/UBloxGPS.swift:141:59: warning: 'characters' is deprecated: Please use String directly
139 |
140 |             // latitude and longitude in degrees+minutes format
141 |             if (comp[3].characters.count > 0) && (comp[5].characters.count > 0) {
    |                                                           `- warning: 'characters' is deprecated: Please use String directly
142 |                latitude = Double(String(comp[3].characters.prefix(2)))! +
143 |                            Double(String(comp[3].characters.dropFirst(2)))!/60
/host/spi-builder-workspace/Sources/UBloxGPS.swift:142:49: warning: 'characters' is deprecated: Please use String directly
140 |             // latitude and longitude in degrees+minutes format
141 |             if (comp[3].characters.count > 0) && (comp[5].characters.count > 0) {
142 |                latitude = Double(String(comp[3].characters.prefix(2)))! +
    |                                                 `- warning: 'characters' is deprecated: Please use String directly
143 |                            Double(String(comp[3].characters.dropFirst(2)))!/60
144 |                latitude *= Double(NS)
/host/spi-builder-workspace/Sources/UBloxGPS.swift:143:50: warning: 'characters' is deprecated: Please use String directly
141 |             if (comp[3].characters.count > 0) && (comp[5].characters.count > 0) {
142 |                latitude = Double(String(comp[3].characters.prefix(2)))! +
143 |                            Double(String(comp[3].characters.dropFirst(2)))!/60
    |                                                  `- warning: 'characters' is deprecated: Please use String directly
144 |                latitude *= Double(NS)
145 |                latitude = latitude.roundTo(places: 8)
/host/spi-builder-workspace/Sources/UBloxGPS.swift:146:50: warning: 'characters' is deprecated: Please use String directly
144 |                latitude *= Double(NS)
145 |                latitude = latitude.roundTo(places: 8)
146 |                longitude = Double(String(comp[5].characters.prefix(3)))! +
    |                                                  `- warning: 'characters' is deprecated: Please use String directly
147 |                             Double(String(comp[5].characters.dropFirst(3)))!/60
148 |                longitude *= Double(EW)
/host/spi-builder-workspace/Sources/UBloxGPS.swift:147:51: warning: 'characters' is deprecated: Please use String directly
145 |                latitude = latitude.roundTo(places: 8)
146 |                longitude = Double(String(comp[5].characters.prefix(3)))! +
147 |                             Double(String(comp[5].characters.dropFirst(3)))!/60
    |                                                   `- warning: 'characters' is deprecated: Please use String directly
148 |                longitude *= Double(EW)
149 |                longitude = longitude.roundTo(places: 8)
Build complete! (17.12s)
Build complete.
{
  "dependencies" : [
    {
      "identity" : "swiftygpio",
      "requirement" : {
        "range" : [
          {
            "lower_bound" : "1.0.0",
            "upper_bound" : "2.0.0"
          }
        ]
      },
      "type" : "sourceControl",
      "url" : "https://github.com/uraimo/SwiftyGPIO.git"
    }
  ],
  "manifest_display_name" : "UBloxGPS",
  "name" : "UBloxGPS",
  "path" : "/host/spi-builder-workspace",
  "platforms" : [
  ],
  "products" : [
    {
      "name" : "UBloxGPS",
      "targets" : [
        "UBloxGPS"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "UBloxGPS",
      "module_type" : "SwiftTarget",
      "name" : "UBloxGPS",
      "path" : ".",
      "product_dependencies" : [
        "SwiftyGPIO"
      ],
      "product_memberships" : [
        "UBloxGPS"
      ],
      "sources" : [
        "Sources/UBloxGPS.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
Done.