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 5.10 for Linux on 29 Dec 2024 21:19:09 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-5.10-latest swift build --triple x86_64-unknown-linux-gnu 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:             5.10
Building package at path:  $PWD
https://github.com/Jomy10/SwiftCurses.git
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4609320-0":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:basic-5.10-latest swift build --triple x86_64-unknown-linux-gnu 2>&1
basic-5.10-latest: Pulling from finestructure/spi-images
Digest: sha256:8b386ca1081dd55ec0944429387f246ccb59ef99c9c8cbb418b0abd78460b38f
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:basic-5.10-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]
  return wget_wch(win, ch);
                       ^~
/host/spi-builder-workspace/Sources/C_ncursesBinds/C_ncursesBinds.c:8:35: note: passing argument to parameter 'ch' here
int wget_wch(WINDOW *win, wint_t *ch);
                                  ^
1 warning generated.
[2/8] Compiling C_ncursesBinds C_ncursesBinds.c
[2/8] Write swift-version-24593BA9C3E375BF.txt
[5/25] Emitting module SwiftCurses
[6/27] Compiling SwiftCurses mouseEvent.swift
[7/27] Compiling SwiftCurses settings.swift
[8/27] Compiling SwiftCurses Window+output.swift
[9/27] Compiling SwiftCurses Window+util.swift
[10/27] Compiling SwiftCurses LinuxCompatibility.swift
[11/27] Compiling SwiftCurses Window+attributes.swift
[12/27] Compiling SwiftCurses Window+border.swift
[13/27] Compiling SwiftCurses error.swift
[14/27] Compiling SwiftCurses initScreen.swift
[15/27] Compiling SwiftCurses Window+input.swift
/host/spi-builder-workspace/Sources/SwiftCurses/Window+input.swift:83:32: warning: 'vwscanw' is deprecated
                return ncurses.vwscanw(self.window, mutFormatPtr, valist)
                               ^
[16/27] Compiling SwiftCurses Window+mouse.swift
/host/spi-builder-workspace/Sources/SwiftCurses/Window+input.swift:83:32: warning: 'vwscanw' is deprecated
                return ncurses.vwscanw(self.window, mutFormatPtr, valist)
                               ^
[17/27] Compiling SwiftCurses Window.swift
/host/spi-builder-workspace/Sources/SwiftCurses/color.swift:1:17: remark: '@preconcurrency' attribute on module 'ncurses' is unused
@preconcurrency import ncurses // NOTE: preconcurrency --> we are importing constants from C, but they are imported as vars, they are concurrency safe, but the swift compiler has no way of knowing this
~~~~~~~~~~~~~~~~^
[18/27] Compiling SwiftCurses color.swift
/host/spi-builder-workspace/Sources/SwiftCurses/color.swift:1:17: remark: '@preconcurrency' attribute on module 'ncurses' is unused
@preconcurrency import ncurses // NOTE: preconcurrency --> we are importing constants from C, but they are imported as vars, they are concurrency safe, but the swift compiler has no way of knowing this
~~~~~~~~~~~~~~~~^
[19/27] Compiling SwiftCurses Window+clear.swift
[20/27] Compiling SwiftCurses Window+controls.swift
[21/27] Compiling SwiftCurses Window+dump.swift
[22/27] Compiling SwiftCurses kernel.swift
[23/27] Compiling SwiftCurses keycode.swift
[24/28] Wrapping AST for SwiftCurses for debugging
[26/42] Compiling Examples main.swift
[27/43] Compiling Examples x01-color-definition.swift
[28/43] Compiling Examples 01-helloWorld.swift
[29/43] Compiling Examples 02-init.swift
[30/43] Compiling Examples 05-attributes.swift
[31/43] Compiling Examples 06-chgat.swift
[32/43] Compiling Examples 03-print.swift
[33/43] Compiling Examples 04-input.swift
[34/43] Compiling Examples 07-window.swift
[35/43] Compiling Examples 08-more-border-functions.swift
[36/43] Emitting module Examples
[37/43] Compiling Examples 11-mouse.swift
[38/43] Compiling Examples 12-temporarilyLeavingCursesMode.swift
[39/43] Compiling Examples 09-colors.swift
[40/43] Compiling Examples 10-keybboard.swift
[41/44] Wrapping AST for Examples for debugging
[42/44] Write Objects.LinkFileList
[43/44] Linking Examples
Build complete! (7.44s)
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-5.10-latest: Pulling from finestructure/spi-images
Digest: sha256:8b386ca1081dd55ec0944429387f246ccb59ef99c9c8cbb418b0abd78460b38f
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:basic-5.10-latest
Done.