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 SwiftCurses, reference master (5513ba), with Swift 6.0 for Linux on 29 Dec 2024 21:19:28 UTC.

Swift 6 data race errors: 2

Build Command

bash -c docker run --pull=always --rm -v "checkouts-4606859-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 -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.60.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/Jomy10/SwiftCurses.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/Jomy10/SwiftCurses
 * branch            master     -> FETCH_HEAD
 * [new branch]      master     -> origin/master
HEAD is now at 5513ba4 fix for async cleanup
Cloned https://github.com/Jomy10/SwiftCurses.git
Revision (git rev-parse @):
5513ba40c61de3234ed09c06a3b2a42c5b3153ad
SPI manifest file found: $PWD/.spi.yml
SUCCESS checkout https://github.com/Jomy10/SwiftCurses.git at master
========================================
Build
========================================
Selected platform:         linux
Swift version:             6.0
Building package at path:  $PWD
https://github.com/Jomy10/SwiftCurses.git
https://github.com/Jomy10/SwiftCurses.git
WARNING: environment variable SUPPRESS_SWIFT_6_FLAGS is not set
{
  "dependencies" : [
  ],
  "manifest_display_name" : "SwiftCurses",
  "name" : "SwiftCurses",
  "path" : "/host/spi-builder-workspace",
  "platforms" : [
  ],
  "products" : [
    {
      "name" : "SwiftCurses",
      "targets" : [
        "SwiftCurses"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    },
    {
      "name" : "Examples",
      "targets" : [
        "Examples"
      ],
      "type" : {
        "executable" : null
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "ncursesTests",
      "module_type" : "SwiftTarget",
      "name" : "ncursesTests",
      "path" : "Tests/ncursesTests",
      "sources" : [
        "ncursesTests.swift"
      ],
      "target_dependencies" : [
        "SwiftCurses"
      ],
      "type" : "test"
    },
    {
      "c99name" : "SwiftCurses",
      "module_type" : "SwiftTarget",
      "name" : "SwiftCurses",
      "path" : "Sources/SwiftCurses",
      "product_memberships" : [
        "SwiftCurses",
        "Examples"
      ],
      "sources" : [
        "LinuxCompatibility.swift",
        "Window+attributes.swift",
        "Window+border.swift",
        "Window+clear.swift",
        "Window+controls.swift",
        "Window+dump.swift",
        "Window+input.swift",
        "Window+mouse.swift",
        "Window+output.swift",
        "Window+util.swift",
        "Window.swift",
        "color.swift",
        "error.swift",
        "initScreen.swift",
        "kernel.swift",
        "keycode.swift",
        "mouseEvent.swift",
        "settings.swift"
      ],
      "target_dependencies" : [
        "C_ncurses",
        "C_ncursesBinds",
        "C_ncursesw"
      ],
      "type" : "library"
    },
    {
      "c99name" : "Examples",
      "module_type" : "SwiftTarget",
      "name" : "Examples",
      "path" : "Sources/Examples",
      "product_memberships" : [
        "Examples"
      ],
      "sources" : [
        "01-helloWorld.swift",
        "02-init.swift",
        "03-print.swift",
        "04-input.swift",
        "05-attributes.swift",
        "06-chgat.swift",
        "07-window.swift",
        "08-more-border-functions.swift",
        "09-colors.swift",
        "10-keybboard.swift",
        "11-mouse.swift",
        "12-temporarilyLeavingCursesMode.swift",
        "main.swift",
        "x01-color-definition.swift"
      ],
      "target_dependencies" : [
        "SwiftCurses"
      ],
      "type" : "executable"
    },
    {
      "c99name" : "C_ncursesw",
      "module_type" : "SystemLibraryTarget",
      "name" : "C_ncursesw",
      "path" : "Sources/C_ncursesw",
      "product_memberships" : [
        "SwiftCurses",
        "Examples"
      ],
      "sources" : [
      ],
      "type" : "system-target"
    },
    {
      "c99name" : "C_ncursesBinds",
      "module_type" : "ClangTarget",
      "name" : "C_ncursesBinds",
      "path" : "Sources/C_ncursesBinds",
      "product_memberships" : [
        "SwiftCurses",
        "Examples"
      ],
      "sources" : [
        "C_ncursesBinds.c"
      ],
      "target_dependencies" : [
        "C_ncurses"
      ],
      "type" : "library"
    },
    {
      "c99name" : "C_ncurses",
      "module_type" : "SystemLibraryTarget",
      "name" : "C_ncurses",
      "path" : "Sources/C_ncurses",
      "product_memberships" : [
        "SwiftCurses",
        "Examples"
      ],
      "sources" : [
      ],
      "type" : "system-target"
    }
  ],
  "tools_version" : "5.7"
}
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4606859-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 -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:081dcf4fb829aea9d08447f4790431afbdfbcc335bfeed728ca69c6f181ae2aa
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:basic-6.0-latest
warning: prohibited flag(s): -D_DEFAULT_SOURCE, -D_XOPEN_SOURCE=600
warning: prohibited flag(s): -D_DEFAULT_SOURCE, -D_XOPEN_SOURCE=600
Building for debugging...
[0/8] Write sources
/host/spi-builder-workspace/Sources/C_ncursesBinds/C_ncursesBinds.c:16:24: warning: passing 'wchar_t *' (aka 'int *') to parameter of type 'wint_t *' (aka 'unsigned int *') converts between pointers to integer types with different sign [-Wpointer-sign]
   16 |   return wget_wch(win, ch);
      |                        ^~
/host/spi-builder-workspace/Sources/C_ncursesBinds/C_ncursesBinds.c:8:35: note: passing argument to parameter 'ch' here
    8 | int wget_wch(WINDOW *win, wint_t *ch);
      |                                   ^
1 warning generated.
[2/8] Compiling C_ncursesBinds C_ncursesBinds.c
[3/8] Write swift-version-24593BA9C3E375BF.txt
[5/25] Compiling SwiftCurses kernel.swift
[6/25] Compiling SwiftCurses keycode.swift
[7/25] Compiling SwiftCurses error.swift
[8/25] Compiling SwiftCurses initScreen.swift
[9/25] Compiling SwiftCurses Window.swift
[10/25] Compiling SwiftCurses color.swift
[11/25] Compiling SwiftCurses Window+clear.swift
[12/25] Compiling SwiftCurses Window+controls.swift
[13/25] Compiling SwiftCurses Window+dump.swift
[14/27] Emitting module SwiftCurses
[15/27] Compiling SwiftCurses Window+output.swift
[16/27] Compiling SwiftCurses Window+util.swift
[17/27] Compiling SwiftCurses LinuxCompatibility.swift
[18/27] Compiling SwiftCurses Window+attributes.swift
[19/27] Compiling SwiftCurses Window+border.swift
[20/27] Compiling SwiftCurses Window+input.swift
/host/spi-builder-workspace/Sources/SwiftCurses/Window+input.swift:83:32: warning: 'vwscanw' is deprecated
 81 |             return withUnsafePointer(to: cString[0]) { formatPtr in
 82 |                 let mutFormatPtr = UnsafeMutablePointer(mutating: formatPtr)
 83 |                 return ncurses.vwscanw(self.window, mutFormatPtr, valist)
    |                                `- warning: 'vwscanw' is deprecated
 84 |             }
 85 |         }) == ERR {
[21/27] Compiling SwiftCurses Window+mouse.swift
/host/spi-builder-workspace/Sources/SwiftCurses/Window+input.swift:83:32: warning: 'vwscanw' is deprecated
 81 |             return withUnsafePointer(to: cString[0]) { formatPtr in
 82 |                 let mutFormatPtr = UnsafeMutablePointer(mutating: formatPtr)
 83 |                 return ncurses.vwscanw(self.window, mutFormatPtr, valist)
    |                                `- warning: 'vwscanw' is deprecated
 84 |             }
 85 |         }) == ERR {
[22/27] Compiling SwiftCurses mouseEvent.swift
[23/27] Compiling SwiftCurses settings.swift
[24/28] Wrapping AST for SwiftCurses for debugging
[26/42] Compiling Examples main.swift
[27/42] Emitting module Examples
[28/43] Compiling Examples 01-helloWorld.swift
[29/43] Compiling Examples 02-init.swift
[30/43] Compiling Examples x01-color-definition.swift
[31/43] Compiling Examples 09-colors.swift
[32/43] Compiling Examples 10-keybboard.swift
[33/43] Compiling Examples 11-mouse.swift
[34/43] Compiling Examples 12-temporarilyLeavingCursesMode.swift
[35/43] Compiling Examples 03-print.swift
[36/43] Compiling Examples 04-input.swift
[37/43] Compiling Examples 05-attributes.swift
/host/spi-builder-workspace/Sources/Examples/05-attributes.swift:16:6: warning: global function 'attributesExample()' took 113ms to type-check (limit: 100ms)
14 | /// comment (/**/) in bold (passed in as a parameter;
15 | /// `swift run SwiftCursesExamples attributes [filename]`)
16 | func attributesExample() throws {
   |      `- warning: global function 'attributesExample()' took 113ms to type-check (limit: 100ms)
17 | 	let arg: String
18 | 	if CommandLine.argc == 3 {
[38/43] Compiling Examples 06-chgat.swift
/host/spi-builder-workspace/Sources/Examples/05-attributes.swift:16:6: warning: global function 'attributesExample()' took 113ms to type-check (limit: 100ms)
14 | /// comment (/**/) in bold (passed in as a parameter;
15 | /// `swift run SwiftCursesExamples attributes [filename]`)
16 | func attributesExample() throws {
   |      `- warning: global function 'attributesExample()' took 113ms to type-check (limit: 100ms)
17 | 	let arg: String
18 | 	if CommandLine.argc == 3 {
[39/43] Compiling Examples 07-window.swift
[40/43] Compiling Examples 08-more-border-functions.swift
[41/44] Wrapping AST for Examples for debugging
[42/44] Write Objects.LinkFileList
[43/44] Linking Examples
Build complete! (11.80s)
Build complete.
{
  "dependencies" : [
  ],
  "manifest_display_name" : "SwiftCurses",
  "name" : "SwiftCurses",
  "path" : "/host/spi-builder-workspace",
  "platforms" : [
  ],
  "products" : [
    {
      "name" : "SwiftCurses",
      "targets" : [
        "SwiftCurses"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    },
    {
      "name" : "Examples",
      "targets" : [
        "Examples"
      ],
      "type" : {
        "executable" : null
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "ncursesTests",
      "module_type" : "SwiftTarget",
      "name" : "ncursesTests",
      "path" : "Tests/ncursesTests",
      "sources" : [
        "ncursesTests.swift"
      ],
      "target_dependencies" : [
        "SwiftCurses"
      ],
      "type" : "test"
    },
    {
      "c99name" : "SwiftCurses",
      "module_type" : "SwiftTarget",
      "name" : "SwiftCurses",
      "path" : "Sources/SwiftCurses",
      "product_memberships" : [
        "SwiftCurses",
        "Examples"
      ],
      "sources" : [
        "LinuxCompatibility.swift",
        "Window+attributes.swift",
        "Window+border.swift",
        "Window+clear.swift",
        "Window+controls.swift",
        "Window+dump.swift",
        "Window+input.swift",
        "Window+mouse.swift",
        "Window+output.swift",
        "Window+util.swift",
        "Window.swift",
        "color.swift",
        "error.swift",
        "initScreen.swift",
        "kernel.swift",
        "keycode.swift",
        "mouseEvent.swift",
        "settings.swift"
      ],
      "target_dependencies" : [
        "C_ncurses",
        "C_ncursesBinds",
        "C_ncursesw"
      ],
      "type" : "library"
    },
    {
      "c99name" : "Examples",
      "module_type" : "SwiftTarget",
      "name" : "Examples",
      "path" : "Sources/Examples",
      "product_memberships" : [
        "Examples"
      ],
      "sources" : [
        "01-helloWorld.swift",
        "02-init.swift",
        "03-print.swift",
        "04-input.swift",
        "05-attributes.swift",
        "06-chgat.swift",
        "07-window.swift",
        "08-more-border-functions.swift",
        "09-colors.swift",
        "10-keybboard.swift",
        "11-mouse.swift",
        "12-temporarilyLeavingCursesMode.swift",
        "main.swift",
        "x01-color-definition.swift"
      ],
      "target_dependencies" : [
        "SwiftCurses"
      ],
      "type" : "executable"
    },
    {
      "c99name" : "C_ncursesw",
      "module_type" : "SystemLibraryTarget",
      "name" : "C_ncursesw",
      "path" : "Sources/C_ncursesw",
      "product_memberships" : [
        "SwiftCurses",
        "Examples"
      ],
      "sources" : [
      ],
      "type" : "system-target"
    },
    {
      "c99name" : "C_ncursesBinds",
      "module_type" : "ClangTarget",
      "name" : "C_ncursesBinds",
      "path" : "Sources/C_ncursesBinds",
      "product_memberships" : [
        "SwiftCurses",
        "Examples"
      ],
      "sources" : [
        "C_ncursesBinds.c"
      ],
      "target_dependencies" : [
        "C_ncurses"
      ],
      "type" : "library"
    },
    {
      "c99name" : "C_ncurses",
      "module_type" : "SystemLibraryTarget",
      "name" : "C_ncurses",
      "path" : "Sources/C_ncurses",
      "product_memberships" : [
        "SwiftCurses",
        "Examples"
      ],
      "sources" : [
      ],
      "type" : "system-target"
    }
  ],
  "tools_version" : "5.7"
}
basic-6.0-latest: Pulling from finestructure/spi-images
Digest: sha256:081dcf4fb829aea9d08447f4790431afbdfbcc335bfeed728ca69c6f181ae2aa
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:basic-6.0-latest
Done.