The Swift Package Index logo.Swift Package Index

Build Information

Failed to build Tips, reference master (f489e1), with Swift 6.1 for Wasm on 27 May 2025 14:16:30 UTC.

Build Command

bash -c docker run --pull=always --rm -v "checkouts-4609320-2":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:wasm-6.1-latest swift build --swift-sdk wasm32-unknown-wasi 2>&1

Build Log

========================================
RunAll
========================================
Builder version: 4.63.1
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/unnamedd/swifttips-framework.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/unnamedd/swifttips-framework
 * branch            master     -> FETCH_HEAD
 * [new branch]      master     -> origin/master
HEAD is now at f489e18 changed access level from initializer to Tricks
Cloned https://github.com/unnamedd/swifttips-framework.git
Revision (git rev-parse @):
f489e18d8ac4c7ff3688a6d2590edfc40645afb7
SUCCESS checkout https://github.com/unnamedd/swifttips-framework.git at master
========================================
Build
========================================
Selected platform:         wasm
Swift version:             6.1
Building package at path:  $PWD
https://github.com/unnamedd/swifttips-framework.git
https://github.com/unnamedd/swifttips-framework.git
WARNING: environment variable SUPPRESS_SWIFT_6_FLAGS is not set
{
  "dependencies" : [
  ],
  "manifest_display_name" : "Tips",
  "name" : "Tips",
  "path" : "/host/spi-builder-workspace",
  "platforms" : [
  ],
  "products" : [
    {
      "name" : "TipsCore",
      "targets" : [
        "TipsCore"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "TipsTests",
      "module_type" : "SwiftTarget",
      "name" : "TipsTests",
      "path" : "Tests/TipsTests",
      "sources" : [
        "TipsTests.swift"
      ],
      "target_dependencies" : [
        "TipsCore"
      ],
      "type" : "test"
    },
    {
      "c99name" : "TipsCore",
      "module_type" : "SwiftTarget",
      "name" : "TipsCore",
      "path" : "Sources/TipsCore",
      "product_memberships" : [
        "TipsCore"
      ],
      "sources" : [
        "Models/Comment.swift",
        "Models/Owner.swift",
        "Models/Source.swift",
        "Models/Tip.swift",
        "Services/GithubService.swift",
        "Services/Service.swift",
        "Tricks.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "4.0"
}
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4609320-2":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:wasm-6.1-latest swift build --swift-sdk wasm32-unknown-wasi -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
wasm-6.1-latest: Pulling from finestructure/spi-images
Digest: sha256:059e0fdbe549369b902c0d423739510ddee50a4a70258d1404125eb9394ef31c
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:wasm-6.1-latest
Building for debugging...
[0/2] Write sources
[1/2] Write swift-version-24593BA9C3E375BF.txt
[3/10] Compiling TipsCore GithubService.swift
[4/10] Compiling TipsCore Source.swift
/host/spi-builder-workspace/Sources/TipsCore/Models/Source.swift:4:5: warning: 'public' modifier is redundant for struct declared in a public extension
 2 |
 3 | public extension Tricks {
 4 |     public struct Source {
   |     `- warning: 'public' modifier is redundant for struct declared in a public extension
 5 |         public var markdownURL: String
 6 |         public var owner: Owner
[5/10] Compiling TipsCore Tip.swift
/host/spi-builder-workspace/Sources/TipsCore/Models/Tip.swift:10:5: warning: 'public' modifier is redundant for struct declared in a public extension
 8 |
 9 | public extension Tricks {
10 |     public struct Tip {
   |     `- warning: 'public' modifier is redundant for struct declared in a public extension
11 |         public var issue: Int?
12 |         public var title: String?
/host/spi-builder-workspace/Sources/TipsCore/Models/Tip.swift:68:39: warning: 'flatMap' is deprecated: Please use compactMap(_:) for the case where closure returns an optional value
66 |
67 |                 if values.count > 0 {
68 |                     comments = values.flatMap({ Comment($0.trimming()) })
   |                                       |- warning: 'flatMap' is deprecated: Please use compactMap(_:) for the case where closure returns an optional value
   |                                       `- note: use 'compactMap(_:)' instead
69 |                 }
70 |             }
[6/10] Compiling TipsCore Service.swift
/host/spi-builder-workspace/Sources/TipsCore/Services/Service.swift:59:109: error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
57 | class Service {
58 |     @discardableResult
59 |     public static func requestText(_ url: String, completion: @escaping (ServiceResult<String>) -> Void) -> URLSessionDataTask? {
   |                                                                                                             `- error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
60 |         let task = self.request(url: url) { result in
61 |             let newResult = result.flatMap { String(data: $0, encoding: .utf8) }
Foundation.URLSessionDataTask:2:18: note: 'URLSessionDataTask' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSessionDataTask = AnyObject
  |                  `- note: 'URLSessionDataTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/TipsCore/Services/Service.swift:69:94: error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
67 |
68 |     @discardableResult
69 |     static func request(url: String, completion: @escaping (ServiceResult<Data>) -> Void) -> URLSessionDataTask? {
   |                                                                                              `- error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
70 |         guard let baseURL = URL(string: url) else {
71 |             completion(.failure(ServiceError.invalidURL(url)))
Foundation.URLSessionDataTask:2:18: note: 'URLSessionDataTask' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSessionDataTask = AnyObject
  |                  `- note: 'URLSessionDataTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/TipsCore/Services/Service.swift:75:22: error: cannot find type 'URLRequest' in scope
73 |         }
74 |
75 |         var request: URLRequest = URLRequest(url: baseURL)
   |                      `- error: cannot find type 'URLRequest' in scope
76 |         request.httpMethod = "GET"
77 |
/host/spi-builder-workspace/Sources/TipsCore/Services/Service.swift:78:25: error: cannot find 'DispatchSemaphore' in scope
76 |         request.httpMethod = "GET"
77 |
78 |         let semaphore = DispatchSemaphore(value: 0)
   |                         `- error: cannot find 'DispatchSemaphore' in scope
79 |         let task = URLSession.shared.dataTask(with: request) { data, _, error in
80 |             if let error = error {
/host/spi-builder-workspace/Sources/TipsCore/Services/Service.swift:79:31: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
77 |
78 |         let semaphore = DispatchSemaphore(value: 0)
79 |         let task = URLSession.shared.dataTask(with: request) { data, _, error in
   |                               `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
80 |             if let error = error {
81 |                 completion(.failure(error))
[7/10] Compiling TipsCore Tricks.swift
/host/spi-builder-workspace/Sources/TipsCore/Tricks.swift:34:28: warning: 'flatMap' is deprecated: Please use compactMap(_:) for the case where closure returns an optional value
32 |         let content = text as NSString
33 |
34 |         let tips = results.flatMap { Tip(content, match: $0) }
   |                            |- warning: 'flatMap' is deprecated: Please use compactMap(_:) for the case where closure returns an optional value
   |                            `- note: use 'compactMap(_:)' instead
35 |         self.tips = tips
36 |
error: emit-module command failed with exit code 1 (use -v to see invocation)
[8/10] Emitting module TipsCore
/host/spi-builder-workspace/Sources/TipsCore/Models/Comment.swift:3:5: warning: 'public' modifier is redundant for struct declared in a public extension
 1 | import Foundation
 2 | public extension Tricks {
 3 |     public struct Comment {
   |     `- warning: 'public' modifier is redundant for struct declared in a public extension
 4 |         public var text: String?
 5 |
/host/spi-builder-workspace/Sources/TipsCore/Models/Owner.swift:4:5: warning: 'public' modifier is redundant for struct declared in a public extension
 2 |
 3 | public extension Tricks {
 4 |     public struct Owner {
   |     `- warning: 'public' modifier is redundant for struct declared in a public extension
 5 |         public var name: String
 6 |         public var github: String
/host/spi-builder-workspace/Sources/TipsCore/Models/Source.swift:4:5: warning: 'public' modifier is redundant for struct declared in a public extension
 2 |
 3 | public extension Tricks {
 4 |     public struct Source {
   |     `- warning: 'public' modifier is redundant for struct declared in a public extension
 5 |         public var markdownURL: String
 6 |         public var owner: Owner
/host/spi-builder-workspace/Sources/TipsCore/Models/Tip.swift:10:5: warning: 'public' modifier is redundant for struct declared in a public extension
 8 |
 9 | public extension Tricks {
10 |     public struct Tip {
   |     `- warning: 'public' modifier is redundant for struct declared in a public extension
11 |         public var issue: Int?
12 |         public var title: String?
/host/spi-builder-workspace/Sources/TipsCore/Services/Service.swift:59:109: error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
57 | class Service {
58 |     @discardableResult
59 |     public static func requestText(_ url: String, completion: @escaping (ServiceResult<String>) -> Void) -> URLSessionDataTask? {
   |                                                                                                             `- error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
60 |         let task = self.request(url: url) { result in
61 |             let newResult = result.flatMap { String(data: $0, encoding: .utf8) }
Foundation.URLSessionDataTask:2:18: note: 'URLSessionDataTask' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSessionDataTask = AnyObject
  |                  `- note: 'URLSessionDataTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/TipsCore/Services/Service.swift:69:94: error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
67 |
68 |     @discardableResult
69 |     static func request(url: String, completion: @escaping (ServiceResult<Data>) -> Void) -> URLSessionDataTask? {
   |                                                                                              `- error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
70 |         guard let baseURL = URL(string: url) else {
71 |             completion(.failure(ServiceError.invalidURL(url)))
Foundation.URLSessionDataTask:2:18: note: 'URLSessionDataTask' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSessionDataTask = AnyObject
  |                  `- note: 'URLSessionDataTask' has been explicitly marked unavailable here
[9/10] Compiling TipsCore Owner.swift
/host/spi-builder-workspace/Sources/TipsCore/Models/Owner.swift:4:5: warning: 'public' modifier is redundant for struct declared in a public extension
 2 |
 3 | public extension Tricks {
 4 |     public struct Owner {
   |     `- warning: 'public' modifier is redundant for struct declared in a public extension
 5 |         public var name: String
 6 |         public var github: String
[10/10] Compiling TipsCore Comment.swift
/host/spi-builder-workspace/Sources/TipsCore/Models/Comment.swift:3:5: warning: 'public' modifier is redundant for struct declared in a public extension
 1 | import Foundation
 2 | public extension Tricks {
 3 |     public struct Comment {
   |     `- warning: 'public' modifier is redundant for struct declared in a public extension
 4 |         public var text: String?
 5 |
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4609320-2":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:wasm-6.1-latest swift build --swift-sdk wasm32-unknown-wasi 2>&1
wasm-6.1-latest: Pulling from finestructure/spi-images
Digest: sha256:059e0fdbe549369b902c0d423739510ddee50a4a70258d1404125eb9394ef31c
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:wasm-6.1-latest
[0/1] Planning build
Building for debugging...
[0/1] Write swift-version-24593BA9C3E375BF.txt
error: emit-module command failed with exit code 1 (use -v to see invocation)
[2/9] Compiling TipsCore Source.swift
/host/spi-builder-workspace/Sources/TipsCore/Models/Source.swift:4:5: warning: 'public' modifier is redundant for struct declared in a public extension
 2 |
 3 | public extension Tricks {
 4 |     public struct Source {
   |     `- warning: 'public' modifier is redundant for struct declared in a public extension
 5 |         public var markdownURL: String
 6 |         public var owner: Owner
[3/9] Compiling TipsCore Owner.swift
/host/spi-builder-workspace/Sources/TipsCore/Models/Owner.swift:4:5: warning: 'public' modifier is redundant for struct declared in a public extension
 2 |
 3 | public extension Tricks {
 4 |     public struct Owner {
   |     `- warning: 'public' modifier is redundant for struct declared in a public extension
 5 |         public var name: String
 6 |         public var github: String
[4/9] Compiling TipsCore Comment.swift
/host/spi-builder-workspace/Sources/TipsCore/Models/Comment.swift:3:5: warning: 'public' modifier is redundant for struct declared in a public extension
 1 | import Foundation
 2 | public extension Tricks {
 3 |     public struct Comment {
   |     `- warning: 'public' modifier is redundant for struct declared in a public extension
 4 |         public var text: String?
 5 |
[5/9] Emitting module TipsCore
/host/spi-builder-workspace/Sources/TipsCore/Models/Comment.swift:3:5: warning: 'public' modifier is redundant for struct declared in a public extension
 1 | import Foundation
 2 | public extension Tricks {
 3 |     public struct Comment {
   |     `- warning: 'public' modifier is redundant for struct declared in a public extension
 4 |         public var text: String?
 5 |
/host/spi-builder-workspace/Sources/TipsCore/Models/Owner.swift:4:5: warning: 'public' modifier is redundant for struct declared in a public extension
 2 |
 3 | public extension Tricks {
 4 |     public struct Owner {
   |     `- warning: 'public' modifier is redundant for struct declared in a public extension
 5 |         public var name: String
 6 |         public var github: String
/host/spi-builder-workspace/Sources/TipsCore/Models/Source.swift:4:5: warning: 'public' modifier is redundant for struct declared in a public extension
 2 |
 3 | public extension Tricks {
 4 |     public struct Source {
   |     `- warning: 'public' modifier is redundant for struct declared in a public extension
 5 |         public var markdownURL: String
 6 |         public var owner: Owner
/host/spi-builder-workspace/Sources/TipsCore/Models/Tip.swift:10:5: warning: 'public' modifier is redundant for struct declared in a public extension
 8 |
 9 | public extension Tricks {
10 |     public struct Tip {
   |     `- warning: 'public' modifier is redundant for struct declared in a public extension
11 |         public var issue: Int?
12 |         public var title: String?
/host/spi-builder-workspace/Sources/TipsCore/Services/Service.swift:59:109: error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
57 | class Service {
58 |     @discardableResult
59 |     public static func requestText(_ url: String, completion: @escaping (ServiceResult<String>) -> Void) -> URLSessionDataTask? {
   |                                                                                                             `- error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
60 |         let task = self.request(url: url) { result in
61 |             let newResult = result.flatMap { String(data: $0, encoding: .utf8) }
Foundation.URLSessionDataTask:2:18: note: 'URLSessionDataTask' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSessionDataTask = AnyObject
  |                  `- note: 'URLSessionDataTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/TipsCore/Services/Service.swift:69:94: error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
67 |
68 |     @discardableResult
69 |     static func request(url: String, completion: @escaping (ServiceResult<Data>) -> Void) -> URLSessionDataTask? {
   |                                                                                              `- error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
70 |         guard let baseURL = URL(string: url) else {
71 |             completion(.failure(ServiceError.invalidURL(url)))
Foundation.URLSessionDataTask:2:18: note: 'URLSessionDataTask' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSessionDataTask = AnyObject
  |                  `- note: 'URLSessionDataTask' has been explicitly marked unavailable here
[6/9] Compiling TipsCore Tip.swift
/host/spi-builder-workspace/Sources/TipsCore/Models/Tip.swift:10:5: warning: 'public' modifier is redundant for struct declared in a public extension
 8 |
 9 | public extension Tricks {
10 |     public struct Tip {
   |     `- warning: 'public' modifier is redundant for struct declared in a public extension
11 |         public var issue: Int?
12 |         public var title: String?
/host/spi-builder-workspace/Sources/TipsCore/Models/Tip.swift:68:39: warning: 'flatMap' is deprecated: Please use compactMap(_:) for the case where closure returns an optional value
66 |
67 |                 if values.count > 0 {
68 |                     comments = values.flatMap({ Comment($0.trimming()) })
   |                                       |- warning: 'flatMap' is deprecated: Please use compactMap(_:) for the case where closure returns an optional value
   |                                       `- note: use 'compactMap(_:)' instead
69 |                 }
70 |             }
[7/9] Compiling TipsCore GithubService.swift
[8/9] Compiling TipsCore Tricks.swift
/host/spi-builder-workspace/Sources/TipsCore/Tricks.swift:34:28: warning: 'flatMap' is deprecated: Please use compactMap(_:) for the case where closure returns an optional value
32 |         let content = text as NSString
33 |
34 |         let tips = results.flatMap { Tip(content, match: $0) }
   |                            |- warning: 'flatMap' is deprecated: Please use compactMap(_:) for the case where closure returns an optional value
   |                            `- note: use 'compactMap(_:)' instead
35 |         self.tips = tips
36 |
[9/9] Compiling TipsCore Service.swift
/host/spi-builder-workspace/Sources/TipsCore/Services/Service.swift:59:109: error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
57 | class Service {
58 |     @discardableResult
59 |     public static func requestText(_ url: String, completion: @escaping (ServiceResult<String>) -> Void) -> URLSessionDataTask? {
   |                                                                                                             `- error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
60 |         let task = self.request(url: url) { result in
61 |             let newResult = result.flatMap { String(data: $0, encoding: .utf8) }
Foundation.URLSessionDataTask:2:18: note: 'URLSessionDataTask' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSessionDataTask = AnyObject
  |                  `- note: 'URLSessionDataTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/TipsCore/Services/Service.swift:69:94: error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
67 |
68 |     @discardableResult
69 |     static func request(url: String, completion: @escaping (ServiceResult<Data>) -> Void) -> URLSessionDataTask? {
   |                                                                                              `- error: 'URLSessionDataTask' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
70 |         guard let baseURL = URL(string: url) else {
71 |             completion(.failure(ServiceError.invalidURL(url)))
Foundation.URLSessionDataTask:2:18: note: 'URLSessionDataTask' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSessionDataTask = AnyObject
  |                  `- note: 'URLSessionDataTask' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/TipsCore/Services/Service.swift:75:22: error: cannot find type 'URLRequest' in scope
73 |         }
74 |
75 |         var request: URLRequest = URLRequest(url: baseURL)
   |                      `- error: cannot find type 'URLRequest' in scope
76 |         request.httpMethod = "GET"
77 |
/host/spi-builder-workspace/Sources/TipsCore/Services/Service.swift:78:25: error: cannot find 'DispatchSemaphore' in scope
76 |         request.httpMethod = "GET"
77 |
78 |         let semaphore = DispatchSemaphore(value: 0)
   |                         `- error: cannot find 'DispatchSemaphore' in scope
79 |         let task = URLSession.shared.dataTask(with: request) { data, _, error in
80 |             if let error = error {
/host/spi-builder-workspace/Sources/TipsCore/Services/Service.swift:79:31: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
77 |
78 |         let semaphore = DispatchSemaphore(value: 0)
79 |         let task = URLSession.shared.dataTask(with: request) { data, _, error in
   |                               `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
80 |             if let error = error {
81 |                 completion(.failure(error))
BUILD FAILURE 6.1 wasm