Build Information
Failed to build yubatake, reference 4.0.1 (36585b
), with Swift 6.0 for Linux on 28 Nov 2024 03:14:27 UTC.
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
24 | siteInfo: siteInfo,
25 | menuType: menuType,
26 | formData: formData
| `- warning: capture of 'formData' with non-sendable type '(any Encodable)?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
27 | )
28 | return request.application.viewCreator.create(path: path,
Swift.Encodable:1:17: note: protocol 'Encodable' does not conform to the 'Sendable' protocol
1 | public protocol Encodable {
| `- note: protocol 'Encodable' does not conform to the 'Sendable' protocol
2 | func encode(to encoder: any Encoder) throws
3 | }
/host/spi-builder-workspace/Sources/App/Views/Public/PublicViewContext.swift:21:14: warning: type 'View' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
19 | .and(Tag.numberOfPosts(on: request.db)).map { ($0.0.0, $0.0.1, $0.0.2, $0.1) }
20 | .and(Category.numberOfPosts(on: request.db)).map { ($0.0.0, $0.0.1, $0.0.2, $0.0.3, $0.1) }
21 | .flatMap { [path, title] siteInfo, recentPosts, staticContents, tags, categories in
| `- warning: type 'View' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
22 | let context = RenderingContext(
23 | context: context,
/host/spi-builder-workspace/.build/checkouts/vapor/Sources/Vapor/View/View.swift:3:15: note: struct 'View' does not conform to the 'Sendable' protocol
1 | import NIOCore
2 |
3 | public struct View: ResponseEncodable {
| `- note: struct 'View' does not conform to the 'Sendable' protocol
4 | public var data: ByteBuffer
5 |
/host/spi-builder-workspace/Sources/App/Views/Public/PublicViewContext.swift:1:1: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'Vapor'
1 | import Vapor
| `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'Vapor'
2 |
3 | final class PublicViewContext {
/host/spi-builder-workspace/Sources/App/Views/Public/PublicViewContext.swift:23:30: warning: capture of 'context' with non-sendable type 'any Encodable' in a `@Sendable` closure; this is an error in the Swift 6 language mode
21 | .flatMap { [path, title] siteInfo, recentPosts, staticContents, tags, categories in
22 | let context = RenderingContext(
23 | context: context,
| `- warning: capture of 'context' with non-sendable type 'any Encodable' in a `@Sendable` closure; this is an error in the Swift 6 language mode
24 | pageTitle: title,
25 | pageURL: request.url.string,
Swift.Encodable:1:17: note: protocol 'Encodable' does not conform to the 'Sendable' protocol
1 | public protocol Encodable {
| `- note: protocol 'Encodable' does not conform to the 'Sendable' protocol
2 | func encode(to encoder: any Encoder) throws
3 | }
/host/spi-builder-workspace/Sources/App/Views/Tags/LeafTags.swift:15:24: warning: static property 'decodeFormatter' is not concurrency-safe because non-'Sendable' type 'ISO8601DateFormatter' may have shared mutable state; this is an error in the Swift 6 language mode
13 | struct DateTag: LeafTag {
14 |
15 | private static let decodeFormatter = ISO8601DateFormatter()
| |- warning: static property 'decodeFormatter' is not concurrency-safe because non-'Sendable' type 'ISO8601DateFormatter' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'decodeFormatter' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
16 |
17 | func render(_ ctx: LeafContext) throws -> LeafData {
Foundation.ISO8601DateFormatter:1:12: note: class 'ISO8601DateFormatter' does not conform to the 'Sendable' protocol
1 | open class ISO8601DateFormatter : Formatter, NSSecureCoding {
| `- note: class 'ISO8601DateFormatter' does not conform to the 'Sendable' protocol
2 | open var timeZone: TimeZone! { get set }
3 | open var formatOptions: ISO8601DateFormatter.Options { get set }
[2866/2882] Compiling App LeafTags.swift
/host/spi-builder-workspace/Sources/App/Routes/AdminRoutes.swift:10:49: warning: converting non-sendable function value to '@Sendable (Request) throws -> EventLoopFuture<View>' may introduce data races
8 | do {
9 | let controller = LoginController()
10 | routes.get("login", use: controller.index)
| `- warning: converting non-sendable function value to '@Sendable (Request) throws -> EventLoopFuture<View>' may introduce data races
11 | routes.post("login", use: controller.store)
12 | }
/host/spi-builder-workspace/Sources/App/Routes/AdminRoutes.swift:11:50: warning: converting non-sendable function value to '@Sendable (Request) throws -> EventLoopFuture<Response>' may introduce data races
9 | let controller = LoginController()
10 | routes.get("login", use: controller.index)
11 | routes.post("login", use: controller.store)
| `- warning: converting non-sendable function value to '@Sendable (Request) throws -> EventLoopFuture<Response>' may introduce data races
12 | }
13 |
/host/spi-builder-workspace/Sources/App/Routes/AdminRoutes.swift:17:50: warning: converting non-sendable function value to '@Sendable (Request) throws -> Response' may introduce data races
15 | do {
16 | let controller = LogoutController()
17 | routes.get("logout", use: controller.index)
| `- warning: converting non-sendable function value to '@Sendable (Request) throws -> Response' may introduce data races
18 | }
19 |
/host/spi-builder-workspace/Sources/App/Routes/AdminRoutes.swift:27:48: warning: converting non-sendable function value to '@Sendable (Request) throws -> EventLoopFuture<View>' may introduce data races
25 | do {
26 | let controller = AdminPostController()
27 | admin.get("posts", use: controller.index)
| `- warning: converting non-sendable function value to '@Sendable (Request) throws -> EventLoopFuture<View>' may introduce data races
28 | admin.get("static-contents", use: controller.indexStaticContent)
29 | admin.get("posts", "create", use: controller.create)
/host/spi-builder-workspace/Sources/App/Routes/AdminRoutes.swift:28:58: warning: converting non-sendable function value to '@Sendable (Request) throws -> EventLoopFuture<View>' may introduce data races
26 | let controller = AdminPostController()
27 | admin.get("posts", use: controller.index)
28 | admin.get("static-contents", use: controller.indexStaticContent)
| `- warning: converting non-sendable function value to '@Sendable (Request) throws -> EventLoopFuture<View>' may introduce data races
29 | admin.get("posts", "create", use: controller.create)
30 | admin.get("posts", ":id", "edit", use: controller.edit)
/host/spi-builder-workspace/Sources/App/Routes/AdminRoutes.swift:29:58: warning: converting non-sendable function value to '@Sendable (Request) throws -> EventLoopFuture<View>' may introduce data races
27 | admin.get("posts", use: controller.index)
28 | admin.get("static-contents", use: controller.indexStaticContent)
29 | admin.get("posts", "create", use: controller.create)
| `- warning: converting non-sendable function value to '@Sendable (Request) throws -> EventLoopFuture<View>' may introduce data races
30 | admin.get("posts", ":id", "edit", use: controller.edit)
31 | admin.post("posts", use: controller.store)
/host/spi-builder-workspace/Sources/App/Routes/AdminRoutes.swift:30:63: warning: converting non-sendable function value to '@Sendable (Request) throws -> EventLoopFuture<View>' may introduce data races
28 | admin.get("static-contents", use: controller.indexStaticContent)
29 | admin.get("posts", "create", use: controller.create)
30 | admin.get("posts", ":id", "edit", use: controller.edit)
| `- warning: converting non-sendable function value to '@Sendable (Request) throws -> EventLoopFuture<View>' may introduce data races
31 | admin.post("posts", use: controller.store)
32 | admin.post("posts", ":id", "edit", use: controller.update)
/host/spi-builder-workspace/Sources/App/Routes/AdminRoutes.swift:31:49: warning: converting non-sendable function value to '@Sendable (Request) throws -> EventLoopFuture<Response>' may introduce data races
29 | admin.get("posts", "create", use: controller.create)
30 | admin.get("posts", ":id", "edit", use: controller.edit)
31 | admin.post("posts", use: controller.store)
| `- warning: converting non-sendable function value to '@Sendable (Request) throws -> EventLoopFuture<Response>' may introduce data races
32 | admin.post("posts", ":id", "edit", use: controller.update)
33 | admin.post("posts", "delete", use: controller.delete)
/host/spi-builder-workspace/Sources/App/Routes/AdminRoutes.swift:32:64: warning: converting non-sendable function value to '@Sendable (Request) throws -> EventLoopFuture<Response>' may introduce data races
30 | admin.get("posts", ":id", "edit", use: controller.edit)
31 | admin.post("posts", use: controller.store)
32 | admin.post("posts", ":id", "edit", use: controller.update)
| `- warning: converting non-sendable function value to '@Sendable (Request) throws -> EventLoopFuture<Response>' may introduce data races
33 | admin.post("posts", "delete", use: controller.delete)
34 | admin.get("posts", ":id", "preview", use: controller.showPreview)
/host/spi-builder-workspace/Sources/App/Routes/AdminRoutes.swift:33:59: warning: converting non-sendable function value to '@Sendable (Request) throws -> EventLoopFuture<Response>' may introduce data races
31 | admin.post("posts", use: controller.store)
32 | admin.post("posts", ":id", "edit", use: controller.update)
33 | admin.post("posts", "delete", use: controller.delete)
| `- warning: converting non-sendable function value to '@Sendable (Request) throws -> EventLoopFuture<Response>' may introduce data races
34 | admin.get("posts", ":id", "preview", use: controller.showPreview)
35 | }
/host/spi-builder-workspace/Sources/App/Routes/AdminRoutes.swift:34:66: warning: converting non-sendable function value to '@Sendable (Request) throws -> EventLoopFuture<View>' may introduce data races
32 | admin.post("posts", ":id", "edit", use: controller.update)
33 | admin.post("posts", "delete", use: controller.delete)
34 | admin.get("posts", ":id", "preview", use: controller.showPreview)
| `- warning: converting non-sendable function value to '@Sendable (Request) throws -> EventLoopFuture<View>' may introduce data races
35 | }
36 |
/host/spi-builder-workspace/Sources/App/Routes/AdminRoutes.swift:40:47: warning: converting non-sendable function value to '@Sendable (Request) throws -> EventLoopFuture<View>' may introduce data races
38 | do {
39 | let controller = AdminTagController()
40 | admin.get("tags", use: controller.index)
| `- warning: converting non-sendable function value to '@Sendable (Request) throws -> EventLoopFuture<View>' may introduce data races
41 | admin.get("tags", "create", use: controller.create)
42 | admin.get("tags", ":id", "edit", use: controller.edit)
/host/spi-builder-workspace/Sources/App/Routes/AdminRoutes.swift:41:57: warning: converting non-sendable function value to '@Sendable (Request) throws -> EventLoopFuture<View>' may introduce data races
39 | let controller = AdminTagController()
40 | admin.get("tags", use: controller.index)
41 | admin.get("tags", "create", use: controller.create)
| `- warning: converting non-sendable function value to '@Sendable (Request) throws -> EventLoopFuture<View>' may introduce data races
42 | admin.get("tags", ":id", "edit", use: controller.edit)
43 | admin.post("tags", use: controller.store)
/host/spi-builder-workspace/Sources/App/Routes/AdminRoutes.swift:42:62: warning: converting non-sendable function value to '@Sendable (Request) throws -> EventLoopFuture<View>' may introduce data races
40 | admin.get("tags", use: controller.index)
41 | admin.get("tags", "create", use: controller.create)
42 | admin.get("tags", ":id", "edit", use: controller.edit)
| `- warning: converting non-sendable function value to '@Sendable (Request) throws -> EventLoopFuture<View>' may introduce data races
43 | admin.post("tags", use: controller.store)
44 | admin.post("tags", ":id", "edit", use: controller.update)
/host/spi-builder-workspace/Sources/App/Routes/AdminRoutes.swift:43:48: warning: converting non-sendable function value to '@Sendable (Request) throws -> EventLoopFuture<Response>' may introduce data races
41 | admin.get("tags", "create", use: controller.create)
42 | admin.get("tags", ":id", "edit", use: controller.edit)
43 | admin.post("tags", use: controller.store)
| `- warning: converting non-sendable function value to '@Sendable (Request) throws -> EventLoopFuture<Response>' may introduce data races
44 | admin.post("tags", ":id", "edit", use: controller.update)
45 | admin.post("tags", "delete", use: controller.delete)
/host/spi-builder-workspace/Sources/App/Routes/AdminRoutes.swift:44:63: warning: converting non-sendable function value to '@Sendable (Request) throws -> EventLoopFuture<Response>' may introduce data races
42 | admin.get("tags", ":id", "edit", use: controller.edit)
43 | admin.post("tags", use: controller.store)
44 | admin.post("tags", ":id", "edit", use: controller.update)
| `- warning: converting non-sendable function value to '@Sendable (Request) throws -> EventLoopFuture<Response>' may introduce data races
45 | admin.post("tags", "delete", use: controller.delete)
46 | }
/host/spi-builder-workspace/Sources/App/Routes/AdminRoutes.swift:45:58: warning: converting non-sendable function value to '@Sendable (Request) throws -> EventLoopFuture<Response>' may introduce data races
43 | admin.post("tags", use: controller.store)
44 | admin.post("tags", ":id", "edit", use: controller.update)
45 | admin.post("tags", "delete", use: controller.delete)
| `- warning: converting non-sendable function value to '@Sendable (Request) throws -> EventLoopFuture<Response>' may introduce data races
46 | }
47 |
/host/spi-builder-workspace/Sources/App/Routes/AdminRoutes.swift:51:53: warning: converting non-sendable function value to '@Sendable (Request) throws -> EventLoopFuture<View>' may introduce data races
49 | do {
50 | let controller = AdminCategoryController()
51 | admin.get("categories", use: controller.index)
| `- warning: converting non-sendable function value to '@Sendable (Request) throws -> EventLoopFuture<View>' may introduce data races
52 | admin.get("categories", "create", use: controller.create)
53 | admin.get("categories", ":id", "edit", use: controller.edit)
/host/spi-builder-workspace/Sources/App/Routes/AdminRoutes.swift:52:63: warning: converting non-sendable function value to '@Sendable (Request) throws -> EventLoopFuture<View>' may introduce data races
50 | let controller = AdminCategoryController()
51 | admin.get("categories", use: controller.index)
52 | admin.get("categories", "create", use: controller.create)
| `- warning: converting non-sendable function value to '@Sendable (Request) throws -> EventLoopFuture<View>' may introduce data races
53 | admin.get("categories", ":id", "edit", use: controller.edit)
54 | admin.post("categories", use: controller.store)
/host/spi-builder-workspace/Sources/App/Routes/AdminRoutes.swift:53:68: warning: converting non-sendable function value to '@Sendable (Request) throws -> EventLoopFuture<View>' may introduce data races
51 | admin.get("categories", use: controller.index)
52 | admin.get("categories", "create", use: controller.create)
53 | admin.get("categories", ":id", "edit", use: controller.edit)
| `- warning: converting non-sendable function value to '@Sendable (Request) throws -> EventLoopFuture<View>' may introduce data races
54 | admin.post("categories", use: controller.store)
55 | admin.post("categories", ":id", "edit", use: controller.update)
/host/spi-builder-workspace/Sources/App/Routes/AdminRoutes.swift:54:54: warning: converting non-sendable function value to '@Sendable (Request) throws -> EventLoopFuture<Response>' may introduce data races
52 | admin.get("categories", "create", use: controller.create)
53 | admin.get("categories", ":id", "edit", use: controller.edit)
54 | admin.post("categories", use: controller.store)
| `- warning: converting non-sendable function value to '@Sendable (Request) throws -> EventLoopFuture<Response>' may introduce data races
55 | admin.post("categories", ":id", "edit", use: controller.update)
56 | admin.post("categories", "delete", use: controller.delete)
/host/spi-builder-workspace/Sources/App/Routes/AdminRoutes.swift:55:69: warning: converting non-sendable function value to '@Sendable (Request) throws -> EventLoopFuture<Response>' may introduce data races
53 | admin.get("categories", ":id", "edit", use: controller.edit)
54 | admin.post("categories", use: controller.store)
55 | admin.post("categories", ":id", "edit", use: controller.update)
| `- warning: converting non-sendable function value to '@Sendable (Request) throws -> EventLoopFuture<Response>' may introduce data races
56 | admin.post("categories", "delete", use: controller.delete)
57 | }
/host/spi-builder-workspace/Sources/App/Routes/AdminRoutes.swift:56:64: warning: converting non-sendable function value to '@Sendable (Request) throws -> EventLoopFuture<Response>' may introduce data races
54 | admin.post("categories", use: controller.store)
55 | admin.post("categories", ":id", "edit", use: controller.update)
56 | admin.post("categories", "delete", use: controller.delete)
| `- warning: converting non-sendable function value to '@Sendable (Request) throws -> EventLoopFuture<Response>' may introduce data races
57 | }
58 |
/host/spi-builder-workspace/Sources/App/Routes/AdminRoutes.swift:62:49: warning: converting non-sendable function value to '@Sendable (Request) throws -> EventLoopFuture<View>' may introduce data races
60 | do {
61 | let controller = AdminImageController()
62 | admin.get("images", use: controller.index)
| `- warning: converting non-sendable function value to '@Sendable (Request) throws -> EventLoopFuture<View>' may introduce data races
63 | admin.get("images", ":id", "edit", use: controller.edit)
64 | admin.post("images", ":id", "edit", use: controller.update)
/host/spi-builder-workspace/Sources/App/Routes/AdminRoutes.swift:63:64: warning: converting non-sendable function value to '@Sendable (Request) throws -> EventLoopFuture<View>' may introduce data races
61 | let controller = AdminImageController()
62 | admin.get("images", use: controller.index)
63 | admin.get("images", ":id", "edit", use: controller.edit)
| `- warning: converting non-sendable function value to '@Sendable (Request) throws -> EventLoopFuture<View>' may introduce data races
64 | admin.post("images", ":id", "edit", use: controller.update)
65 | admin.post("images", ":id", "delete", use: controller.delete)
/host/spi-builder-workspace/Sources/App/Routes/AdminRoutes.swift:64:65: warning: converting non-sendable function value to '@Sendable (Request) throws -> EventLoopFuture<Response>' may introduce data races
62 | admin.get("images", use: controller.index)
63 | admin.get("images", ":id", "edit", use: controller.edit)
64 | admin.post("images", ":id", "edit", use: controller.update)
| `- warning: converting non-sendable function value to '@Sendable (Request) throws -> EventLoopFuture<Response>' may introduce data races
65 | admin.post("images", ":id", "delete", use: controller.delete)
66 | admin.post("images", "cleanup", use: controller.cleanup)
/host/spi-builder-workspace/Sources/App/Routes/AdminRoutes.swift:65:67: warning: converting non-sendable function value to '@Sendable (Request) throws -> EventLoopFuture<Response>' may introduce data races
63 | admin.get("images", ":id", "edit", use: controller.edit)
64 | admin.post("images", ":id", "edit", use: controller.update)
65 | admin.post("images", ":id", "delete", use: controller.delete)
| `- warning: converting non-sendable function value to '@Sendable (Request) throws -> EventLoopFuture<Response>' may introduce data races
66 | admin.post("images", "cleanup", use: controller.cleanup)
67 | }
/host/spi-builder-workspace/Sources/App/Routes/AdminRoutes.swift:66:61: warning: converting non-sendable function value to '@Sendable (Request) throws -> EventLoopFuture<Response>' may introduce data races
64 | admin.post("images", ":id", "edit", use: controller.update)
65 | admin.post("images", ":id", "delete", use: controller.delete)
66 | admin.post("images", "cleanup", use: controller.cleanup)
| `- warning: converting non-sendable function value to '@Sendable (Request) throws -> EventLoopFuture<Response>' may introduce data races
67 | }
68 |
/host/spi-builder-workspace/Sources/App/Routes/AdminRoutes.swift:72:49: warning: converting non-sendable function value to '@Sendable (Request) throws -> EventLoopFuture<View>' may introduce data races
70 | do {
71 | let controller = AdminThemeController()
72 | admin.get("themes", use: controller.index)
| `- warning: converting non-sendable function value to '@Sendable (Request) throws -> EventLoopFuture<View>' may introduce data races
73 | }
74 |
/host/spi-builder-workspace/Sources/App/Routes/AdminRoutes.swift:78:59: warning: converting non-sendable function value to '@Sendable (Request) throws -> EventLoopFuture<View>' may introduce data races
76 | do {
77 | let controller = AdminSiteInfoController()
78 | admin.get("siteinfo", "edit", use: controller.index)
| `- warning: converting non-sendable function value to '@Sendable (Request) throws -> EventLoopFuture<View>' may introduce data races
79 | admin.post("siteinfo", "edit", use: controller.store)
80 | }
/host/spi-builder-workspace/Sources/App/Routes/AdminRoutes.swift:79:60: warning: converting non-sendable function value to '@Sendable (Request) throws -> EventLoopFuture<Response>' may introduce data races
77 | let controller = AdminSiteInfoController()
78 | admin.get("siteinfo", "edit", use: controller.index)
79 | admin.post("siteinfo", "edit", use: controller.store)
| `- warning: converting non-sendable function value to '@Sendable (Request) throws -> EventLoopFuture<Response>' may introduce data races
80 | }
81 |
/host/spi-builder-workspace/Sources/App/Routes/AdminRoutes.swift:85:55: warning: converting non-sendable function value to '@Sendable (Request) throws -> EventLoopFuture<View>' may introduce data races
83 | do {
84 | let controller = AdminUserController()
85 | admin.get("user", "edit", use: controller.index)
| `- warning: converting non-sendable function value to '@Sendable (Request) throws -> EventLoopFuture<View>' may introduce data races
86 | admin.post("user", "edit", use: controller.store)
87 | }
/host/spi-builder-workspace/Sources/App/Routes/AdminRoutes.swift:86:56: warning: converting non-sendable function value to '@Sendable (Request) throws -> EventLoopFuture<Response>' may introduce data races
84 | let controller = AdminUserController()
85 | admin.get("user", "edit", use: controller.index)
86 | admin.post("user", "edit", use: controller.store)
| `- warning: converting non-sendable function value to '@Sendable (Request) throws -> EventLoopFuture<Response>' may introduce data races
87 | }
88 | }
/host/spi-builder-workspace/Sources/App/Routes/PublicRoutes.swift:10:44: warning: converting non-sendable function value to '@Sendable (Request) throws -> EventLoopFuture<View>' may introduce data races
8 | do {
9 | let controller = PostController()
10 | routes.get("", use: controller.index)
| `- warning: converting non-sendable function value to '@Sendable (Request) throws -> EventLoopFuture<View>' may introduce data races
11 | routes.get("posts", use: controller.index)
12 | routes.get(":id", use: controller.show)
/host/spi-builder-workspace/Sources/App/Routes/PublicRoutes.swift:11:49: warning: converting non-sendable function value to '@Sendable (Request) throws -> EventLoopFuture<View>' may introduce data races
9 | let controller = PostController()
10 | routes.get("", use: controller.index)
11 | routes.get("posts", use: controller.index)
| `- warning: converting non-sendable function value to '@Sendable (Request) throws -> EventLoopFuture<View>' may introduce data races
12 | routes.get(":id", use: controller.show)
13 | routes.get("posts", ":id", use: controller.show)
/host/spi-builder-workspace/Sources/App/Routes/PublicRoutes.swift:12:47: warning: converting non-sendable function value to '@Sendable (Request) throws -> EventLoopFuture<View>' may introduce data races
10 | routes.get("", use: controller.index)
11 | routes.get("posts", use: controller.index)
12 | routes.get(":id", use: controller.show)
| `- warning: converting non-sendable function value to '@Sendable (Request) throws -> EventLoopFuture<View>' may introduce data races
13 | routes.get("posts", ":id", use: controller.show)
14 | routes.get("tags", ":id", "posts", use: controller.indexInTag)
/host/spi-builder-workspace/Sources/App/Routes/PublicRoutes.swift:13:56: warning: converting non-sendable function value to '@Sendable (Request) throws -> EventLoopFuture<View>' may introduce data races
11 | routes.get("posts", use: controller.index)
12 | routes.get(":id", use: controller.show)
13 | routes.get("posts", ":id", use: controller.show)
| `- warning: converting non-sendable function value to '@Sendable (Request) throws -> EventLoopFuture<View>' may introduce data races
14 | routes.get("tags", ":id", "posts", use: controller.indexInTag)
15 | routes.get("categories", ":id", "posts", use: controller.indexInCategory)
/host/spi-builder-workspace/Sources/App/Routes/PublicRoutes.swift:14:64: warning: converting non-sendable function value to '@Sendable (Request) throws -> EventLoopFuture<View>' may introduce data races
12 | routes.get(":id", use: controller.show)
13 | routes.get("posts", ":id", use: controller.show)
14 | routes.get("tags", ":id", "posts", use: controller.indexInTag)
| `- warning: converting non-sendable function value to '@Sendable (Request) throws -> EventLoopFuture<View>' may introduce data races
15 | routes.get("categories", ":id", "posts", use: controller.indexInCategory)
16 | routes.get("categories", "noncategorized", "posts", use: controller.indexNoCategory)
/host/spi-builder-workspace/Sources/App/Routes/PublicRoutes.swift:15:70: warning: converting non-sendable function value to '@Sendable (Request) throws -> EventLoopFuture<View>' may introduce data races
13 | routes.get("posts", ":id", use: controller.show)
14 | routes.get("tags", ":id", "posts", use: controller.indexInTag)
15 | routes.get("categories", ":id", "posts", use: controller.indexInCategory)
| `- warning: converting non-sendable function value to '@Sendable (Request) throws -> EventLoopFuture<View>' may introduce data races
16 | routes.get("categories", "noncategorized", "posts", use: controller.indexNoCategory)
17 | }
/host/spi-builder-workspace/Sources/App/Routes/PublicRoutes.swift:16:81: warning: converting non-sendable function value to '@Sendable (Request) throws -> EventLoopFuture<View>' may introduce data races
14 | routes.get("tags", ":id", "posts", use: controller.indexInTag)
15 | routes.get("categories", ":id", "posts", use: controller.indexInCategory)
16 | routes.get("categories", "noncategorized", "posts", use: controller.indexNoCategory)
| `- warning: converting non-sendable function value to '@Sendable (Request) throws -> EventLoopFuture<View>' may introduce data races
17 | }
18 | }
/host/spi-builder-workspace/Sources/App/Views/Admin/AdminViewContext.swift:19:14: warning: type 'View' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
17 | let formData = try formDataType.restoreFormData(from: request)?.makeRenderingContext()
18 | return SiteInfo.shared(on: request.db)
19 | .flatMap { [path, menuType, title] siteInfo in
| `- warning: type 'View' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
20 | let context = RenderingContext(
21 | context: context,
/host/spi-builder-workspace/.build/checkouts/vapor/Sources/Vapor/View/View.swift:3:15: note: struct 'View' does not conform to the 'Sendable' protocol
1 | import NIOCore
2 |
3 | public struct View: ResponseEncodable {
| `- note: struct 'View' does not conform to the 'Sendable' protocol
4 | public var data: ByteBuffer
5 |
/host/spi-builder-workspace/Sources/App/Views/Admin/AdminViewContext.swift:1:1: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'Vapor'
1 | import Vapor
| `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'Vapor'
2 |
3 | final class AdminViewContext {
/host/spi-builder-workspace/Sources/App/Views/Admin/AdminViewContext.swift:21:30: warning: capture of 'context' with non-sendable type 'any Encodable' in a `@Sendable` closure; this is an error in the Swift 6 language mode
19 | .flatMap { [path, menuType, title] siteInfo in
20 | let context = RenderingContext(
21 | context: context,
| `- warning: capture of 'context' with non-sendable type 'any Encodable' in a `@Sendable` closure; this is an error in the Swift 6 language mode
22 | pageTitle: title,
23 | config: config,
Swift.Encodable:1:17: note: protocol 'Encodable' does not conform to the 'Sendable' protocol
1 | public protocol Encodable {
| `- note: protocol 'Encodable' does not conform to the 'Sendable' protocol
2 | func encode(to encoder: any Encoder) throws
3 | }
/host/spi-builder-workspace/Sources/App/Views/Admin/AdminViewContext.swift:26:31: warning: capture of 'formData' with non-sendable type '(any Encodable)?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
24 | siteInfo: siteInfo,
25 | menuType: menuType,
26 | formData: formData
| `- warning: capture of 'formData' with non-sendable type '(any Encodable)?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
27 | )
28 | return request.application.viewCreator.create(path: path,
Swift.Encodable:1:17: note: protocol 'Encodable' does not conform to the 'Sendable' protocol
1 | public protocol Encodable {
| `- note: protocol 'Encodable' does not conform to the 'Sendable' protocol
2 | func encode(to encoder: any Encoder) throws
3 | }
/host/spi-builder-workspace/Sources/App/Views/Public/PublicViewContext.swift:21:14: warning: type 'View' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
19 | .and(Tag.numberOfPosts(on: request.db)).map { ($0.0.0, $0.0.1, $0.0.2, $0.1) }
20 | .and(Category.numberOfPosts(on: request.db)).map { ($0.0.0, $0.0.1, $0.0.2, $0.0.3, $0.1) }
21 | .flatMap { [path, title] siteInfo, recentPosts, staticContents, tags, categories in
| `- warning: type 'View' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
22 | let context = RenderingContext(
23 | context: context,
/host/spi-builder-workspace/.build/checkouts/vapor/Sources/Vapor/View/View.swift:3:15: note: struct 'View' does not conform to the 'Sendable' protocol
1 | import NIOCore
2 |
3 | public struct View: ResponseEncodable {
| `- note: struct 'View' does not conform to the 'Sendable' protocol
4 | public var data: ByteBuffer
5 |
/host/spi-builder-workspace/Sources/App/Views/Public/PublicViewContext.swift:1:1: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'Vapor'
1 | import Vapor
| `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'Vapor'
2 |
3 | final class PublicViewContext {
/host/spi-builder-workspace/Sources/App/Views/Public/PublicViewContext.swift:23:30: warning: capture of 'context' with non-sendable type 'any Encodable' in a `@Sendable` closure; this is an error in the Swift 6 language mode
21 | .flatMap { [path, title] siteInfo, recentPosts, staticContents, tags, categories in
22 | let context = RenderingContext(
23 | context: context,
| `- warning: capture of 'context' with non-sendable type 'any Encodable' in a `@Sendable` closure; this is an error in the Swift 6 language mode
24 | pageTitle: title,
25 | pageURL: request.url.string,
Swift.Encodable:1:17: note: protocol 'Encodable' does not conform to the 'Sendable' protocol
1 | public protocol Encodable {
| `- note: protocol 'Encodable' does not conform to the 'Sendable' protocol
2 | func encode(to encoder: any Encoder) throws
3 | }
/host/spi-builder-workspace/Sources/App/Views/Tags/LeafTags.swift:15:24: warning: static property 'decodeFormatter' is not concurrency-safe because non-'Sendable' type 'ISO8601DateFormatter' may have shared mutable state; this is an error in the Swift 6 language mode
13 | struct DateTag: LeafTag {
14 |
15 | private static let decodeFormatter = ISO8601DateFormatter()
| |- warning: static property 'decodeFormatter' is not concurrency-safe because non-'Sendable' type 'ISO8601DateFormatter' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'decodeFormatter' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
16 |
17 | func render(_ ctx: LeafContext) throws -> LeafData {
Foundation.ISO8601DateFormatter:1:12: note: class 'ISO8601DateFormatter' does not conform to the 'Sendable' protocol
1 | open class ISO8601DateFormatter : Formatter, NSSecureCoding {
| `- note: class 'ISO8601DateFormatter' does not conform to the 'Sendable' protocol
2 | open var timeZone: TimeZone! { get set }
3 | open var formatOptions: ISO8601DateFormatter.Options { get set }
[2867/2882] Compiling App configure.swift
/host/spi-builder-workspace/Sources/App/Routes/AdminRoutes.swift:10:49: warning: converting non-sendable function value to '@Sendable (Request) throws -> EventLoopFuture<View>' may introduce data races
8 | do {
9 | let controller = LoginController()
10 | routes.get("login", use: controller.index)
| `- warning: converting non-sendable function value to '@Sendable (Request) throws -> EventLoopFuture<View>' may introduce data races
11 | routes.post("login", use: controller.store)
12 | }
/host/spi-builder-workspace/Sources/App/Routes/AdminRoutes.swift:11:50: warning: converting non-sendable function value to '@Sendable (Request) throws -> EventLoopFuture<Response>' may introduce data races
9 | let controller = LoginController()
10 | routes.get("login", use: controller.index)
11 | routes.post("login", use: controller.store)
| `- warning: converting non-sendable function value to '@Sendable (Request) throws -> EventLoopFuture<Response>' may introduce data races
12 | }
13 |
/host/spi-builder-workspace/Sources/App/Routes/AdminRoutes.swift:17:50: warning: converting non-sendable function value to '@Sendable (Request) throws -> Response' may introduce data races
15 | do {
16 | let controller = LogoutController()
17 | routes.get("logout", use: controller.index)
| `- warning: converting non-sendable function value to '@Sendable (Request) throws -> Response' may introduce data races
18 | }
19 |
/host/spi-builder-workspace/Sources/App/Routes/AdminRoutes.swift:27:48: warning: converting non-sendable function value to '@Sendable (Request) throws -> EventLoopFuture<View>' may introduce data races
25 | do {
26 | let controller = AdminPostController()
27 | admin.get("posts", use: controller.index)
| `- warning: converting non-sendable function value to '@Sendable (Request) throws -> EventLoopFuture<View>' may introduce data races
28 | admin.get("static-contents", use: controller.indexStaticContent)
29 | admin.get("posts", "create", use: controller.create)
/host/spi-builder-workspace/Sources/App/Routes/AdminRoutes.swift:28:58: warning: converting non-sendable function value to '@Sendable (Request) throws -> EventLoopFuture<View>' may introduce data races
26 | let controller = AdminPostController()
27 | admin.get("posts", use: controller.index)
28 | admin.get("static-contents", use: controller.indexStaticContent)
| `- warning: converting non-sendable function value to '@Sendable (Request) throws -> EventLoopFuture<View>' may introduce data races
29 | admin.get("posts", "create", use: controller.create)
30 | admin.get("posts", ":id", "edit", use: controller.edit)
/host/spi-builder-workspace/Sources/App/Routes/AdminRoutes.swift:29:58: warning: converting non-sendable function value to '@Sendable (Request) throws -> EventLoopFuture<View>' may introduce data races
27 | admin.get("posts", use: controller.index)
28 | admin.get("static-contents", use: controller.indexStaticContent)
29 | admin.get("posts", "create", use: controller.create)
| `- warning: converting non-sendable function value to '@Sendable (Request) throws -> EventLoopFuture<View>' may introduce data races
30 | admin.get("posts", ":id", "edit", use: controller.edit)
31 | admin.post("posts", use: controller.store)
/host/spi-builder-workspace/Sources/App/Routes/AdminRoutes.swift:30:63: warning: converting non-sendable function value to '@Sendable (Request) throws -> EventLoopFuture<View>' may introduce data races
28 | admin.get("static-contents", use: controller.indexStaticContent)
29 | admin.get("posts", "create", use: controller.create)
30 | admin.get("posts", ":id", "edit", use: controller.edit)
| `- warning: converting non-sendable function value to '@Sendable (Request) throws -> EventLoopFuture<View>' may introduce data races
31 | admin.post("posts", use: controller.store)
32 | admin.post("posts", ":id", "edit", use: controller.update)
/host/spi-builder-workspace/Sources/App/Routes/AdminRoutes.swift:31:49: warning: converting non-sendable function value to '@Sendable (Request) throws -> EventLoopFuture<Response>' may introduce data races
29 | admin.get("posts", "create", use: controller.create)
30 | admin.get("posts", ":id", "edit", use: controller.edit)
31 | admin.post("posts", use: controller.store)
| `- warning: converting non-sendable function value to '@Sendable (Request) throws -> EventLoopFuture<Response>' may introduce data races
32 | admin.post("posts", ":id", "edit", use: controller.update)
33 | admin.post("posts", "delete", use: controller.delete)
/host/spi-builder-workspace/Sources/App/Routes/AdminRoutes.swift:32:64: warning: converting non-sendable function value to '@Sendable (Request) throws -> EventLoopFuture<Response>' may introduce data races
30 | admin.get("posts", ":id", "edit", use: controller.edit)
31 | admin.post("posts", use: controller.store)
32 | admin.post("posts", ":id", "edit", use: controller.update)
| `- warning: converting non-sendable function value to '@Sendable (Request) throws -> EventLoopFuture<Response>' may introduce data races
33 | admin.post("posts", "delete", use: controller.delete)
34 | admin.get("posts", ":id", "preview", use: controller.showPreview)
/host/spi-builder-workspace/Sources/App/Routes/AdminRoutes.swift:33:59: warning: converting non-sendable function value to '@Sendable (Request) throws -> EventLoopFuture<Response>' may introduce data races
31 | admin.post("posts", use: controller.store)
32 | admin.post("posts", ":id", "edit", use: controller.update)
33 | admin.post("posts", "delete", use: controller.delete)
| `- warning: converting non-sendable function value to '@Sendable (Request) throws -> EventLoopFuture<Response>' may introduce data races
34 | admin.get("posts", ":id", "preview", use: controller.showPreview)
35 | }
/host/spi-builder-workspace/Sources/App/Routes/AdminRoutes.swift:34:66: warning: converting non-sendable function value to '@Sendable (Request) throws -> EventLoopFuture<View>' may introduce data races
32 | admin.post("posts", ":id", "edit", use: controller.update)
33 | admin.post("posts", "delete", use: controller.delete)
34 | admin.get("posts", ":id", "preview", use: controller.showPreview)
| `- warning: converting non-sendable function value to '@Sendable (Request) throws -> EventLoopFuture<View>' may introduce data races
35 | }
36 |
/host/spi-builder-workspace/Sources/App/Routes/AdminRoutes.swift:40:47: warning: converting non-sendable function value to '@Sendable (Request) throws -> EventLoopFuture<View>' may introduce data races
38 | do {
39 | let controller = AdminTagController()
40 | admin.get("tags", use: controller.index)
| `- warning: converting non-sendable function value to '@Sendable (Request) throws -> EventLoopFuture<View>' may introduce data races
41 | admin.get("tags", "create", use: controller.create)
42 | admin.get("tags", ":id", "edit", use: controller.edit)
/host/spi-builder-workspace/Sources/App/Routes/AdminRoutes.swift:41:57: warning: converting non-sendable function value to '@Sendable (Request) throws -> EventLoopFuture<View>' may introduce data races
39 | let controller = AdminTagController()
40 | admin.get("tags", use: controller.index)
41 | admin.get("tags", "create", use: controller.create)
| `- warning: converting non-sendable function value to '@Sendable (Request) throws -> EventLoopFuture<View>' may introduce data races
42 | admin.get("tags", ":id", "edit", use: controller.edit)
43 | admin.post("tags", use: controller.store)
/host/spi-builder-workspace/Sources/App/Routes/AdminRoutes.swift:42:62: warning: converting non-sendable function value to '@Sendable (Request) throws -> EventLoopFuture<View>' may introduce data races
40 | admin.get("tags", use: controller.index)
41 | admin.get("tags", "create", use: controller.create)
42 | admin.get("tags", ":id", "edit", use: controller.edit)
| `- warning: converting non-sendable function value to '@Sendable (Request) throws -> EventLoopFuture<View>' may introduce data races
43 | admin.post("tags", use: controller.store)
44 | admin.post("tags", ":id", "edit", use: controller.update)
/host/spi-builder-workspace/Sources/App/Routes/AdminRoutes.swift:43:48: warning: converting non-sendable function value to '@Sendable (Request) throws -> EventLoopFuture<Response>' may introduce data races
41 | admin.get("tags", "create", use: controller.create)
42 | admin.get("tags", ":id", "edit", use: controller.edit)
43 | admin.post("tags", use: controller.store)
| `- warning: converting non-sendable function value to '@Sendable (Request) throws -> EventLoopFuture<Response>' may introduce data races
44 | admin.post("tags", ":id", "edit", use: controller.update)
45 | admin.post("tags", "delete", use: controller.delete)
/host/spi-builder-workspace/Sources/App/Routes/AdminRoutes.swift:44:63: warning: converting non-sendable function value to '@Sendable (Request) throws -> EventLoopFuture<Response>' may introduce data races
42 | admin.get("tags", ":id", "edit", use: controller.edit)
43 | admin.post("tags", use: controller.store)
44 | admin.post("tags", ":id", "edit", use: controller.update)
| `- warning: converting non-sendable function value to '@Sendable (Request) throws -> EventLoopFuture<Response>' may introduce data races
45 | admin.post("tags", "delete", use: controller.delete)
46 | }
/host/spi-builder-workspace/Sources/App/Routes/AdminRoutes.swift:45:58: warning: converting non-sendable function value to '@Sendable (Request) throws -> EventLoopFuture<Response>' may introduce data races
43 | admin.post("tags", use: controller.store)
44 | admin.post("tags", ":id", "edit", use: controller.update)
45 | admin.post("tags", "delete", use: controller.delete)
| `- warning: converting non-sendable function value to '@Sendable (Request) throws -> EventLoopFuture<Response>' may introduce data races
46 | }
47 |
/host/spi-builder-workspace/Sources/App/Routes/AdminRoutes.swift:51:53: warning: converting non-sendable function value to '@Sendable (Request) throws -> EventLoopFuture<View>' may introduce data races
49 | do {
50 | let controller = AdminCategoryController()
51 | admin.get("categories", use: controller.index)
| `- warning: converting non-sendable function value to '@Sendable (Request) throws -> EventLoopFuture<View>' may introduce data races
52 | admin.get("categories", "create", use: controller.create)
53 | admin.get("categories", ":id", "edit", use: controller.edit)
/host/spi-builder-workspace/Sources/App/Routes/AdminRoutes.swift:52:63: warning: converting non-sendable function value to '@Sendable (Request) throws -> EventLoopFuture<View>' may introduce data races
50 | let controller = AdminCategoryController()
51 | admin.get("categories", use: controller.index)
52 | admin.get("categories", "create", use: controller.create)
| `- warning: converting non-sendable function value to '@Sendable (Request) throws -> EventLoopFuture<View>' may introduce data races
53 | admin.get("categories", ":id", "edit", use: controller.edit)
54 | admin.post("categories", use: controller.store)
/host/spi-builder-workspace/Sources/App/Routes/AdminRoutes.swift:53:68: warning: converting non-sendable function value to '@Sendable (Request) throws -> EventLoopFuture<View>' may introduce data races
51 | admin.get("categories", use: controller.index)
52 | admin.get("categories", "create", use: controller.create)
53 | admin.get("categories", ":id", "edit", use: controller.edit)
| `- warning: converting non-sendable function value to '@Sendable (Request) throws -> EventLoopFuture<View>' may introduce data races
54 | admin.post("categories", use: controller.store)
55 | admin.post("categories", ":id", "edit", use: controller.update)
/host/spi-builder-workspace/Sources/App/Routes/AdminRoutes.swift:54:54: warning: converting non-sendable function value to '@Sendable (Request) throws -> EventLoopFuture<Response>' may introduce data races
52 | admin.get("categories", "create", use: controller.create)
53 | admin.get("categories", ":id", "edit", use: controller.edit)
54 | admin.post("categories", use: controller.store)
| `- warning: converting non-sendable function value to '@Sendable (Request) throws -> EventLoopFuture<Response>' may introduce data races
55 | admin.post("categories", ":id", "edit", use: controller.update)
56 | admin.post("categories", "delete", use: controller.delete)
/host/spi-builder-workspace/Sources/App/Routes/AdminRoutes.swift:55:69: warning: converting non-sendable function value to '@Sendable (Request) throws -> EventLoopFuture<Response>' may introduce data races
53 | admin.get("categories", ":id", "edit", use: controller.edit)
54 | admin.post("categories", use: controller.store)
55 | admin.post("categories", ":id", "edit", use: controller.update)
| `- warning: converting non-sendable function value to '@Sendable (Request) throws -> EventLoopFuture<Response>' may introduce data races
56 | admin.post("categories", "delete", use: controller.delete)
57 | }
/host/spi-builder-workspace/Sources/App/Routes/AdminRoutes.swift:56:64: warning: converting non-sendable function value to '@Sendable (Request) throws -> EventLoopFuture<Response>' may introduce data races
54 | admin.post("categories", use: controller.store)
55 | admin.post("categories", ":id", "edit", use: controller.update)
56 | admin.post("categories", "delete", use: controller.delete)
| `- warning: converting non-sendable function value to '@Sendable (Request) throws -> EventLoopFuture<Response>' may introduce data races
57 | }
58 |
/host/spi-builder-workspace/Sources/App/Routes/AdminRoutes.swift:62:49: warning: converting non-sendable function value to '@Sendable (Request) throws -> EventLoopFuture<View>' may introduce data races
60 | do {
61 | let controller = AdminImageController()
62 | admin.get("images", use: controller.index)
| `- warning: converting non-sendable function value to '@Sendable (Request) throws -> EventLoopFuture<View>' may introduce data races
63 | admin.get("images", ":id", "edit", use: controller.edit)
64 | admin.post("images", ":id", "edit", use: controller.update)
/host/spi-builder-workspace/Sources/App/Routes/AdminRoutes.swift:63:64: warning: converting non-sendable function value to '@Sendable (Request) throws -> EventLoopFuture<View>' may introduce data races
61 | let controller = AdminImageController()
62 | admin.get("images", use: controller.index)
63 | admin.get("images", ":id", "edit", use: controller.edit)
| `- warning: converting non-sendable function value to '@Sendable (Request) throws -> EventLoopFuture<View>' may introduce data races
64 | admin.post("images", ":id", "edit", use: controller.update)
65 | admin.post("images", ":id", "delete", use: controller.delete)
/host/spi-builder-workspace/Sources/App/Routes/AdminRoutes.swift:64:65: warning: converting non-sendable function value to '@Sendable (Request) throws -> EventLoopFuture<Response>' may introduce data races
62 | admin.get("images", use: controller.index)
63 | admin.get("images", ":id", "edit", use: controller.edit)
64 | admin.post("images", ":id", "edit", use: controller.update)
| `- warning: converting non-sendable function value to '@Sendable (Request) throws -> EventLoopFuture<Response>' may introduce data races
65 | admin.post("images", ":id", "delete", use: controller.delete)
66 | admin.post("images", "cleanup", use: controller.cleanup)
/host/spi-builder-workspace/Sources/App/Routes/AdminRoutes.swift:65:67: warning: converting non-sendable function value to '@Sendable (Request) throws -> EventLoopFuture<Response>' may introduce data races
63 | admin.get("images", ":id", "edit", use: controller.edit)
64 | admin.post("images", ":id", "edit", use: controller.update)
65 | admin.post("images", ":id", "delete", use: controller.delete)
| `- warning: converting non-sendable function value to '@Sendable (Request) throws -> EventLoopFuture<Response>' may introduce data races
66 | admin.post("images", "cleanup", use: controller.cleanup)
67 | }
/host/spi-builder-workspace/Sources/App/Routes/AdminRoutes.swift:66:61: warning: converting non-sendable function value to '@Sendable (Request) throws -> EventLoopFuture<Response>' may introduce data races
64 | admin.post("images", ":id", "edit", use: controller.update)
65 | admin.post("images", ":id", "delete", use: controller.delete)
66 | admin.post("images", "cleanup", use: controller.cleanup)
| `- warning: converting non-sendable function value to '@Sendable (Request) throws -> EventLoopFuture<Response>' may introduce data races
67 | }
68 |
/host/spi-builder-workspace/Sources/App/Routes/AdminRoutes.swift:72:49: warning: converting non-sendable function value to '@Sendable (Request) throws -> EventLoopFuture<View>' may introduce data races
70 | do {
71 | let controller = AdminThemeController()
72 | admin.get("themes", use: controller.index)
| `- warning: converting non-sendable function value to '@Sendable (Request) throws -> EventLoopFuture<View>' may introduce data races
73 | }
74 |
/host/spi-builder-workspace/Sources/App/Routes/AdminRoutes.swift:78:59: warning: converting non-sendable function value to '@Sendable (Request) throws -> EventLoopFuture<View>' may introduce data races
76 | do {
77 | let controller = AdminSiteInfoController()
78 | admin.get("siteinfo", "edit", use: controller.index)
| `- warning: converting non-sendable function value to '@Sendable (Request) throws -> EventLoopFuture<View>' may introduce data races
79 | admin.post("siteinfo", "edit", use: controller.store)
80 | }
/host/spi-builder-workspace/Sources/App/Routes/AdminRoutes.swift:79:60: warning: converting non-sendable function value to '@Sendable (Request) throws -> EventLoopFuture<Response>' may introduce data races
77 | let controller = AdminSiteInfoController()
78 | admin.get("siteinfo", "edit", use: controller.index)
79 | admin.post("siteinfo", "edit", use: controller.store)
| `- warning: converting non-sendable function value to '@Sendable (Request) throws -> EventLoopFuture<Response>' may introduce data races
80 | }
81 |
/host/spi-builder-workspace/Sources/App/Routes/AdminRoutes.swift:85:55: warning: converting non-sendable function value to '@Sendable (Request) throws -> EventLoopFuture<View>' may introduce data races
83 | do {
84 | let controller = AdminUserController()
85 | admin.get("user", "edit", use: controller.index)
| `- warning: converting non-sendable function value to '@Sendable (Request) throws -> EventLoopFuture<View>' may introduce data races
86 | admin.post("user", "edit", use: controller.store)
87 | }
/host/spi-builder-workspace/Sources/App/Routes/AdminRoutes.swift:86:56: warning: converting non-sendable function value to '@Sendable (Request) throws -> EventLoopFuture<Response>' may introduce data races
84 | let controller = AdminUserController()
85 | admin.get("user", "edit", use: controller.index)
86 | admin.post("user", "edit", use: controller.store)
| `- warning: converting non-sendable function value to '@Sendable (Request) throws -> EventLoopFuture<Response>' may introduce data races
87 | }
88 | }
/host/spi-builder-workspace/Sources/App/Routes/PublicRoutes.swift:10:44: warning: converting non-sendable function value to '@Sendable (Request) throws -> EventLoopFuture<View>' may introduce data races
8 | do {
9 | let controller = PostController()
10 | routes.get("", use: controller.index)
| `- warning: converting non-sendable function value to '@Sendable (Request) throws -> EventLoopFuture<View>' may introduce data races
11 | routes.get("posts", use: controller.index)
12 | routes.get(":id", use: controller.show)
/host/spi-builder-workspace/Sources/App/Routes/PublicRoutes.swift:11:49: warning: converting non-sendable function value to '@Sendable (Request) throws -> EventLoopFuture<View>' may introduce data races
9 | let controller = PostController()
10 | routes.get("", use: controller.index)
11 | routes.get("posts", use: controller.index)
| `- warning: converting non-sendable function value to '@Sendable (Request) throws -> EventLoopFuture<View>' may introduce data races
12 | routes.get(":id", use: controller.show)
13 | routes.get("posts", ":id", use: controller.show)
/host/spi-builder-workspace/Sources/App/Routes/PublicRoutes.swift:12:47: warning: converting non-sendable function value to '@Sendable (Request) throws -> EventLoopFuture<View>' may introduce data races
10 | routes.get("", use: controller.index)
11 | routes.get("posts", use: controller.index)
12 | routes.get(":id", use: controller.show)
| `- warning: converting non-sendable function value to '@Sendable (Request) throws -> EventLoopFuture<View>' may introduce data races
13 | routes.get("posts", ":id", use: controller.show)
14 | routes.get("tags", ":id", "posts", use: controller.indexInTag)
/host/spi-builder-workspace/Sources/App/Routes/PublicRoutes.swift:13:56: warning: converting non-sendable function value to '@Sendable (Request) throws -> EventLoopFuture<View>' may introduce data races
11 | routes.get("posts", use: controller.index)
12 | routes.get(":id", use: controller.show)
13 | routes.get("posts", ":id", use: controller.show)
| `- warning: converting non-sendable function value to '@Sendable (Request) throws -> EventLoopFuture<View>' may introduce data races
14 | routes.get("tags", ":id", "posts", use: controller.indexInTag)
15 | routes.get("categories", ":id", "posts", use: controller.indexInCategory)
/host/spi-builder-workspace/Sources/App/Routes/PublicRoutes.swift:14:64: warning: converting non-sendable function value to '@Sendable (Request) throws -> EventLoopFuture<View>' may introduce data races
12 | routes.get(":id", use: controller.show)
13 | routes.get("posts", ":id", use: controller.show)
14 | routes.get("tags", ":id", "posts", use: controller.indexInTag)
| `- warning: converting non-sendable function value to '@Sendable (Request) throws -> EventLoopFuture<View>' may introduce data races
15 | routes.get("categories", ":id", "posts", use: controller.indexInCategory)
16 | routes.get("categories", "noncategorized", "posts", use: controller.indexNoCategory)
/host/spi-builder-workspace/Sources/App/Routes/PublicRoutes.swift:15:70: warning: converting non-sendable function value to '@Sendable (Request) throws -> EventLoopFuture<View>' may introduce data races
13 | routes.get("posts", ":id", use: controller.show)
14 | routes.get("tags", ":id", "posts", use: controller.indexInTag)
15 | routes.get("categories", ":id", "posts", use: controller.indexInCategory)
| `- warning: converting non-sendable function value to '@Sendable (Request) throws -> EventLoopFuture<View>' may introduce data races
16 | routes.get("categories", "noncategorized", "posts", use: controller.indexNoCategory)
17 | }
/host/spi-builder-workspace/Sources/App/Routes/PublicRoutes.swift:16:81: warning: converting non-sendable function value to '@Sendable (Request) throws -> EventLoopFuture<View>' may introduce data races
14 | routes.get("tags", ":id", "posts", use: controller.indexInTag)
15 | routes.get("categories", ":id", "posts", use: controller.indexInCategory)
16 | routes.get("categories", "noncategorized", "posts", use: controller.indexNoCategory)
| `- warning: converting non-sendable function value to '@Sendable (Request) throws -> EventLoopFuture<View>' may introduce data races
17 | }
18 | }
/host/spi-builder-workspace/Sources/App/Views/Admin/AdminViewContext.swift:19:14: warning: type 'View' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
17 | let formData = try formDataType.restoreFormData(from: request)?.makeRenderingContext()
18 | return SiteInfo.shared(on: request.db)
19 | .flatMap { [path, menuType, title] siteInfo in
| `- warning: type 'View' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
20 | let context = RenderingContext(
21 | context: context,
/host/spi-builder-workspace/.build/checkouts/vapor/Sources/Vapor/View/View.swift:3:15: note: struct 'View' does not conform to the 'Sendable' protocol
1 | import NIOCore
2 |
3 | public struct View: ResponseEncodable {
| `- note: struct 'View' does not conform to the 'Sendable' protocol
4 | public var data: ByteBuffer
5 |
/host/spi-builder-workspace/Sources/App/Views/Admin/AdminViewContext.swift:1:1: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'Vapor'
1 | import Vapor
| `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'Vapor'
2 |
3 | final class AdminViewContext {
/host/spi-builder-workspace/Sources/App/Views/Admin/AdminViewContext.swift:21:30: warning: capture of 'context' with non-sendable type 'any Encodable' in a `@Sendable` closure; this is an error in the Swift 6 language mode
19 | .flatMap { [path, menuType, title] siteInfo in
20 | let context = RenderingContext(
21 | context: context,
| `- warning: capture of 'context' with non-sendable type 'any Encodable' in a `@Sendable` closure; this is an error in the Swift 6 language mode
22 | pageTitle: title,
23 | config: config,
Swift.Encodable:1:17: note: protocol 'Encodable' does not conform to the 'Sendable' protocol
1 | public protocol Encodable {
| `- note: protocol 'Encodable' does not conform to the 'Sendable' protocol
2 | func encode(to encoder: any Encoder) throws
3 | }
/host/spi-builder-workspace/Sources/App/Views/Admin/AdminViewContext.swift:26:31: warning: capture of 'formData' with non-sendable type '(any Encodable)?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
24 | siteInfo: siteInfo,
25 | menuType: menuType,
26 | formData: formData
| `- warning: capture of 'formData' with non-sendable type '(any Encodable)?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
27 | )
28 | return request.application.viewCreator.create(path: path,
Swift.Encodable:1:17: note: protocol 'Encodable' does not conform to the 'Sendable' protocol
1 | public protocol Encodable {
| `- note: protocol 'Encodable' does not conform to the 'Sendable' protocol
2 | func encode(to encoder: any Encoder) throws
3 | }
/host/spi-builder-workspace/Sources/App/Views/Public/PublicViewContext.swift:21:14: warning: type 'View' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
19 | .and(Tag.numberOfPosts(on: request.db)).map { ($0.0.0, $0.0.1, $0.0.2, $0.1) }
20 | .and(Category.numberOfPosts(on: request.db)).map { ($0.0.0, $0.0.1, $0.0.2, $0.0.3, $0.1) }
21 | .flatMap { [path, title] siteInfo, recentPosts, staticContents, tags, categories in
| `- warning: type 'View' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
22 | let context = RenderingContext(
23 | context: context,
/host/spi-builder-workspace/.build/checkouts/vapor/Sources/Vapor/View/View.swift:3:15: note: struct 'View' does not conform to the 'Sendable' protocol
1 | import NIOCore
2 |
3 | public struct View: ResponseEncodable {
| `- note: struct 'View' does not conform to the 'Sendable' protocol
4 | public var data: ByteBuffer
5 |
/host/spi-builder-workspace/Sources/App/Views/Public/PublicViewContext.swift:1:1: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'Vapor'
1 | import Vapor
| `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'Vapor'
2 |
3 | final class PublicViewContext {
/host/spi-builder-workspace/Sources/App/Views/Public/PublicViewContext.swift:23:30: warning: capture of 'context' with non-sendable type 'any Encodable' in a `@Sendable` closure; this is an error in the Swift 6 language mode
21 | .flatMap { [path, title] siteInfo, recentPosts, staticContents, tags, categories in
22 | let context = RenderingContext(
23 | context: context,
| `- warning: capture of 'context' with non-sendable type 'any Encodable' in a `@Sendable` closure; this is an error in the Swift 6 language mode
24 | pageTitle: title,
25 | pageURL: request.url.string,
Swift.Encodable:1:17: note: protocol 'Encodable' does not conform to the 'Sendable' protocol
1 | public protocol Encodable {
| `- note: protocol 'Encodable' does not conform to the 'Sendable' protocol
2 | func encode(to encoder: any Encoder) throws
3 | }
/host/spi-builder-workspace/Sources/App/Views/Tags/LeafTags.swift:15:24: warning: static property 'decodeFormatter' is not concurrency-safe because non-'Sendable' type 'ISO8601DateFormatter' may have shared mutable state; this is an error in the Swift 6 language mode
13 | struct DateTag: LeafTag {
14 |
15 | private static let decodeFormatter = ISO8601DateFormatter()
| |- warning: static property 'decodeFormatter' is not concurrency-safe because non-'Sendable' type 'ISO8601DateFormatter' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'decodeFormatter' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
16 |
17 | func render(_ ctx: LeafContext) throws -> LeafData {
Foundation.ISO8601DateFormatter:1:12: note: class 'ISO8601DateFormatter' does not conform to the 'Sendable' protocol
1 | open class ISO8601DateFormatter : Formatter, NSSecureCoding {
| `- note: class 'ISO8601DateFormatter' does not conform to the 'Sendable' protocol
2 | open var timeZone: TimeZone! { get set }
3 | open var formatOptions: ISO8601DateFormatter.Options { get set }
[2868/2882] Compiling App routes.swift
/host/spi-builder-workspace/Sources/App/Routes/AdminRoutes.swift:10:49: warning: converting non-sendable function value to '@Sendable (Request) throws -> EventLoopFuture<View>' may introduce data races
8 | do {
9 | let controller = LoginController()
10 | routes.get("login", use: controller.index)
| `- warning: converting non-sendable function value to '@Sendable (Request) throws -> EventLoopFuture<View>' may introduce data races
11 | routes.post("login", use: controller.store)
12 | }
/host/spi-builder-workspace/Sources/App/Routes/AdminRoutes.swift:11:50: warning: converting non-sendable function value to '@Sendable (Request) throws -> EventLoopFuture<Response>' may introduce data races
9 | let controller = LoginController()
10 | routes.get("login", use: controller.index)
11 | routes.post("login", use: controller.store)
| `- warning: converting non-sendable function value to '@Sendable (Request) throws -> EventLoopFuture<Response>' may introduce data races
12 | }
13 |
/host/spi-builder-workspace/Sources/App/Routes/AdminRoutes.swift:17:50: warning: converting non-sendable function value to '@Sendable (Request) throws -> Response' may introduce data races
15 | do {
16 | let controller = LogoutController()
17 | routes.get("logout", use: controller.index)
| `- warning: converting non-sendable function value to '@Sendable (Request) throws -> Response' may introduce data races
18 | }
19 |
/host/spi-builder-workspace/Sources/App/Routes/AdminRoutes.swift:27:48: warning: converting non-sendable function value to '@Sendable (Request) throws -> EventLoopFuture<View>' may introduce data races
25 | do {
26 | let controller = AdminPostController()
27 | admin.get("posts", use: controller.index)
| `- warning: converting non-sendable function value to '@Sendable (Request) throws -> EventLoopFuture<View>' may introduce data races
28 | admin.get("static-contents", use: controller.indexStaticContent)
29 | admin.get("posts", "create", use: controller.create)
/host/spi-builder-workspace/Sources/App/Routes/AdminRoutes.swift:28:58: warning: converting non-sendable function value to '@Sendable (Request) throws -> EventLoopFuture<View>' may introduce data races
26 | let controller = AdminPostController()
27 | admin.get("posts", use: controller.index)
28 | admin.get("static-contents", use: controller.indexStaticContent)
| `- warning: converting non-sendable function value to '@Sendable (Request) throws -> EventLoopFuture<View>' may introduce data races
29 | admin.get("posts", "create", use: controller.create)
30 | admin.get("posts", ":id", "edit", use: controller.edit)
/host/spi-builder-workspace/Sources/App/Routes/AdminRoutes.swift:29:58: warning: converting non-sendable function value to '@Sendable (Request) throws -> EventLoopFuture<View>' may introduce data races
27 | admin.get("posts", use: controller.index)
28 | admin.get("static-contents", use: controller.indexStaticContent)
29 | admin.get("posts", "create", use: controller.create)
| `- warning: converting non-sendable function value to '@Sendable (Request) throws -> EventLoopFuture<View>' may introduce data races
30 | admin.get("posts", ":id", "edit", use: controller.edit)
31 | admin.post("posts", use: controller.store)
/host/spi-builder-workspace/Sources/App/Routes/AdminRoutes.swift:30:63: warning: converting non-sendable function value to '@Sendable (Request) throws -> EventLoopFuture<View>' may introduce data races
28 | admin.get("static-contents", use: controller.indexStaticContent)
29 | admin.get("posts", "create", use: controller.create)
30 | admin.get("posts", ":id", "edit", use: controller.edit)
| `- warning: converting non-sendable function value to '@Sendable (Request) throws -> EventLoopFuture<View>' may introduce data races
31 | admin.post("posts", use: controller.store)
32 | admin.post("posts", ":id", "edit", use: controller.update)
/host/spi-builder-workspace/Sources/App/Routes/AdminRoutes.swift:31:49: warning: converting non-sendable function value to '@Sendable (Request) throws -> EventLoopFuture<Response>' may introduce data races
29 | admin.get("posts", "create", use: controller.create)
30 | admin.get("posts", ":id", "edit", use: controller.edit)
31 | admin.post("posts", use: controller.store)
| `- warning: converting non-sendable function value to '@Sendable (Request) throws -> EventLoopFuture<Response>' may introduce data races
32 | admin.post("posts", ":id", "edit", use: controller.update)
33 | admin.post("posts", "delete", use: controller.delete)
/host/spi-builder-workspace/Sources/App/Routes/AdminRoutes.swift:32:64: warning: converting non-sendable function value to '@Sendable (Request) throws -> EventLoopFuture<Response>' may introduce data races
30 | admin.get("posts", ":id", "edit", use: controller.edit)
31 | admin.post("posts", use: controller.store)
32 | admin.post("posts", ":id", "edit", use: controller.update)
| `- warning: converting non-sendable function value to '@Sendable (Request) throws -> EventLoopFuture<Response>' may introduce data races
33 | admin.post("posts", "delete", use: controller.delete)
34 | admin.get("posts", ":id", "preview", use: controller.showPreview)
/host/spi-builder-workspace/Sources/App/Routes/AdminRoutes.swift:33:59: warning: converting non-sendable function value to '@Sendable (Request) throws -> EventLoopFuture<Response>' may introduce data races
31 | admin.post("posts", use: controller.store)
32 | admin.post("posts", ":id", "edit", use: controller.update)
33 | admin.post("posts", "delete", use: controller.delete)
| `- warning: converting non-sendable function value to '@Sendable (Request) throws -> EventLoopFuture<Response>' may introduce data races
34 | admin.get("posts", ":id", "preview", use: controller.showPreview)
35 | }
/host/spi-builder-workspace/Sources/App/Routes/AdminRoutes.swift:34:66: warning: converting non-sendable function value to '@Sendable (Request) throws -> EventLoopFuture<View>' may introduce data races
32 | admin.post("posts", ":id", "edit", use: controller.update)
33 | admin.post("posts", "delete", use: controller.delete)
34 | admin.get("posts", ":id", "preview", use: controller.showPreview)
| `- warning: converting non-sendable function value to '@Sendable (Request) throws -> EventLoopFuture<View>' may introduce data races
35 | }
36 |
/host/spi-builder-workspace/Sources/App/Routes/AdminRoutes.swift:40:47: warning: converting non-sendable function value to '@Sendable (Request) throws -> EventLoopFuture<View>' may introduce data races
38 | do {
39 | let controller = AdminTagController()
40 | admin.get("tags", use: controller.index)
| `- warning: converting non-sendable function value to '@Sendable (Request) throws -> EventLoopFuture<View>' may introduce data races
41 | admin.get("tags", "create", use: controller.create)
42 | admin.get("tags", ":id", "edit", use: controller.edit)
/host/spi-builder-workspace/Sources/App/Routes/AdminRoutes.swift:41:57: warning: converting non-sendable function value to '@Sendable (Request) throws -> EventLoopFuture<View>' may introduce data races
39 | let controller = AdminTagController()
40 | admin.get("tags", use: controller.index)
41 | admin.get("tags", "create", use: controller.create)
| `- warning: converting non-sendable function value to '@Sendable (Request) throws -> EventLoopFuture<View>' may introduce data races
42 | admin.get("tags", ":id", "edit", use: controller.edit)
43 | admin.post("tags", use: controller.store)
/host/spi-builder-workspace/Sources/App/Routes/AdminRoutes.swift:42:62: warning: converting non-sendable function value to '@Sendable (Request) throws -> EventLoopFuture<View>' may introduce data races
40 | admin.get("tags", use: controller.index)
41 | admin.get("tags", "create", use: controller.create)
42 | admin.get("tags", ":id", "edit", use: controller.edit)
| `- warning: converting non-sendable function value to '@Sendable (Request) throws -> EventLoopFuture<View>' may introduce data races
43 | admin.post("tags", use: controller.store)
44 | admin.post("tags", ":id", "edit", use: controller.update)
/host/spi-builder-workspace/Sources/App/Routes/AdminRoutes.swift:43:48: warning: converting non-sendable function value to '@Sendable (Request) throws -> EventLoopFuture<Response>' may introduce data races
41 | admin.get("tags", "create", use: controller.create)
42 | admin.get("tags", ":id", "edit", use: controller.edit)
43 | admin.post("tags", use: controller.store)
| `- warning: converting non-sendable function value to '@Sendable (Request) throws -> EventLoopFuture<Response>' may introduce data races
44 | admin.post("tags", ":id", "edit", use: controller.update)
45 | admin.post("tags", "delete", use: controller.delete)
/host/spi-builder-workspace/Sources/App/Routes/AdminRoutes.swift:44:63: warning: converting non-sendable function value to '@Sendable (Request) throws -> EventLoopFuture<Response>' may introduce data races
42 | admin.get("tags", ":id", "edit", use: controller.edit)
43 | admin.post("tags", use: controller.store)
44 | admin.post("tags", ":id", "edit", use: controller.update)
| `- warning: converting non-sendable function value to '@Sendable (Request) throws -> EventLoopFuture<Response>' may introduce data races
45 | admin.post("tags", "delete", use: controller.delete)
46 | }
/host/spi-builder-workspace/Sources/App/Routes/AdminRoutes.swift:45:58: warning: converting non-sendable function value to '@Sendable (Request) throws -> EventLoopFuture<Response>' may introduce data races
43 | admin.post("tags", use: controller.store)
44 | admin.post("tags", ":id", "edit", use: controller.update)
45 | admin.post("tags", "delete", use: controller.delete)
| `- warning: converting non-sendable function value to '@Sendable (Request) throws -> EventLoopFuture<Response>' may introduce data races
46 | }
47 |
/host/spi-builder-workspace/Sources/App/Routes/AdminRoutes.swift:51:53: warning: converting non-sendable function value to '@Sendable (Request) throws -> EventLoopFuture<View>' may introduce data races
49 | do {
50 | let controller = AdminCategoryController()
51 | admin.get("categories", use: controller.index)
| `- warning: converting non-sendable function value to '@Sendable (Request) throws -> EventLoopFuture<View>' may introduce data races
52 | admin.get("categories", "create", use: controller.create)
53 | admin.get("categories", ":id", "edit", use: controller.edit)
/host/spi-builder-workspace/Sources/App/Routes/AdminRoutes.swift:52:63: warning: converting non-sendable function value to '@Sendable (Request) throws -> EventLoopFuture<View>' may introduce data races
50 | let controller = AdminCategoryController()
51 | admin.get("categories", use: controller.index)
52 | admin.get("categories", "create", use: controller.create)
| `- warning: converting non-sendable function value to '@Sendable (Request) throws -> EventLoopFuture<View>' may introduce data races
53 | admin.get("categories", ":id", "edit", use: controller.edit)
54 | admin.post("categories", use: controller.store)
/host/spi-builder-workspace/Sources/App/Routes/AdminRoutes.swift:53:68: warning: converting non-sendable function value to '@Sendable (Request) throws -> EventLoopFuture<View>' may introduce data races
51 | admin.get("categories", use: controller.index)
52 | admin.get("categories", "create", use: controller.create)
53 | admin.get("categories", ":id", "edit", use: controller.edit)
| `- warning: converting non-sendable function value to '@Sendable (Request) throws -> EventLoopFuture<View>' may introduce data races
54 | admin.post("categories", use: controller.store)
55 | admin.post("categories", ":id", "edit", use: controller.update)
/host/spi-builder-workspace/Sources/App/Routes/AdminRoutes.swift:54:54: warning: converting non-sendable function value to '@Sendable (Request) throws -> EventLoopFuture<Response>' may introduce data races
52 | admin.get("categories", "create", use: controller.create)
53 | admin.get("categories", ":id", "edit", use: controller.edit)
54 | admin.post("categories", use: controller.store)
| `- warning: converting non-sendable function value to '@Sendable (Request) throws -> EventLoopFuture<Response>' may introduce data races
55 | admin.post("categories", ":id", "edit", use: controller.update)
56 | admin.post("categories", "delete", use: controller.delete)
/host/spi-builder-workspace/Sources/App/Routes/AdminRoutes.swift:55:69: warning: converting non-sendable function value to '@Sendable (Request) throws -> EventLoopFuture<Response>' may introduce data races
53 | admin.get("categories", ":id", "edit", use: controller.edit)
54 | admin.post("categories", use: controller.store)
55 | admin.post("categories", ":id", "edit", use: controller.update)
| `- warning: converting non-sendable function value to '@Sendable (Request) throws -> EventLoopFuture<Response>' may introduce data races
56 | admin.post("categories", "delete", use: controller.delete)
57 | }
/host/spi-builder-workspace/Sources/App/Routes/AdminRoutes.swift:56:64: warning: converting non-sendable function value to '@Sendable (Request) throws -> EventLoopFuture<Response>' may introduce data races
54 | admin.post("categories", use: controller.store)
55 | admin.post("categories", ":id", "edit", use: controller.update)
56 | admin.post("categories", "delete", use: controller.delete)
| `- warning: converting non-sendable function value to '@Sendable (Request) throws -> EventLoopFuture<Response>' may introduce data races
57 | }
58 |
/host/spi-builder-workspace/Sources/App/Routes/AdminRoutes.swift:62:49: warning: converting non-sendable function value to '@Sendable (Request) throws -> EventLoopFuture<View>' may introduce data races
60 | do {
61 | let controller = AdminImageController()
62 | admin.get("images", use: controller.index)
| `- warning: converting non-sendable function value to '@Sendable (Request) throws -> EventLoopFuture<View>' may introduce data races
63 | admin.get("images", ":id", "edit", use: controller.edit)
64 | admin.post("images", ":id", "edit", use: controller.update)
/host/spi-builder-workspace/Sources/App/Routes/AdminRoutes.swift:63:64: warning: converting non-sendable function value to '@Sendable (Request) throws -> EventLoopFuture<View>' may introduce data races
61 | let controller = AdminImageController()
62 | admin.get("images", use: controller.index)
63 | admin.get("images", ":id", "edit", use: controller.edit)
| `- warning: converting non-sendable function value to '@Sendable (Request) throws -> EventLoopFuture<View>' may introduce data races
64 | admin.post("images", ":id", "edit", use: controller.update)
65 | admin.post("images", ":id", "delete", use: controller.delete)
/host/spi-builder-workspace/Sources/App/Routes/AdminRoutes.swift:64:65: warning: converting non-sendable function value to '@Sendable (Request) throws -> EventLoopFuture<Response>' may introduce data races
62 | admin.get("images", use: controller.index)
63 | admin.get("images", ":id", "edit", use: controller.edit)
64 | admin.post("images", ":id", "edit", use: controller.update)
| `- warning: converting non-sendable function value to '@Sendable (Request) throws -> EventLoopFuture<Response>' may introduce data races
65 | admin.post("images", ":id", "delete", use: controller.delete)
66 | admin.post("images", "cleanup", use: controller.cleanup)
/host/spi-builder-workspace/Sources/App/Routes/AdminRoutes.swift:65:67: warning: converting non-sendable function value to '@Sendable (Request) throws -> EventLoopFuture<Response>' may introduce data races
63 | admin.get("images", ":id", "edit", use: controller.edit)
64 | admin.post("images", ":id", "edit", use: controller.update)
65 | admin.post("images", ":id", "delete", use: controller.delete)
| `- warning: converting non-sendable function value to '@Sendable (Request) throws -> EventLoopFuture<Response>' may introduce data races
66 | admin.post("images", "cleanup", use: controller.cleanup)
67 | }
/host/spi-builder-workspace/Sources/App/Routes/AdminRoutes.swift:66:61: warning: converting non-sendable function value to '@Sendable (Request) throws -> EventLoopFuture<Response>' may introduce data races
64 | admin.post("images", ":id", "edit", use: controller.update)
65 | admin.post("images", ":id", "delete", use: controller.delete)
66 | admin.post("images", "cleanup", use: controller.cleanup)
| `- warning: converting non-sendable function value to '@Sendable (Request) throws -> EventLoopFuture<Response>' may introduce data races
67 | }
68 |
/host/spi-builder-workspace/Sources/App/Routes/AdminRoutes.swift:72:49: warning: converting non-sendable function value to '@Sendable (Request) throws -> EventLoopFuture<View>' may introduce data races
70 | do {
71 | let controller = AdminThemeController()
72 | admin.get("themes", use: controller.index)
| `- warning: converting non-sendable function value to '@Sendable (Request) throws -> EventLoopFuture<View>' may introduce data races
73 | }
74 |
/host/spi-builder-workspace/Sources/App/Routes/AdminRoutes.swift:78:59: warning: converting non-sendable function value to '@Sendable (Request) throws -> EventLoopFuture<View>' may introduce data races
76 | do {
77 | let controller = AdminSiteInfoController()
78 | admin.get("siteinfo", "edit", use: controller.index)
| `- warning: converting non-sendable function value to '@Sendable (Request) throws -> EventLoopFuture<View>' may introduce data races
79 | admin.post("siteinfo", "edit", use: controller.store)
80 | }
/host/spi-builder-workspace/Sources/App/Routes/AdminRoutes.swift:79:60: warning: converting non-sendable function value to '@Sendable (Request) throws -> EventLoopFuture<Response>' may introduce data races
77 | let controller = AdminSiteInfoController()
78 | admin.get("siteinfo", "edit", use: controller.index)
79 | admin.post("siteinfo", "edit", use: controller.store)
| `- warning: converting non-sendable function value to '@Sendable (Request) throws -> EventLoopFuture<Response>' may introduce data races
80 | }
81 |
/host/spi-builder-workspace/Sources/App/Routes/AdminRoutes.swift:85:55: warning: converting non-sendable function value to '@Sendable (Request) throws -> EventLoopFuture<View>' may introduce data races
83 | do {
84 | let controller = AdminUserController()
85 | admin.get("user", "edit", use: controller.index)
| `- warning: converting non-sendable function value to '@Sendable (Request) throws -> EventLoopFuture<View>' may introduce data races
86 | admin.post("user", "edit", use: controller.store)
87 | }
/host/spi-builder-workspace/Sources/App/Routes/AdminRoutes.swift:86:56: warning: converting non-sendable function value to '@Sendable (Request) throws -> EventLoopFuture<Response>' may introduce data races
84 | let controller = AdminUserController()
85 | admin.get("user", "edit", use: controller.index)
86 | admin.post("user", "edit", use: controller.store)
| `- warning: converting non-sendable function value to '@Sendable (Request) throws -> EventLoopFuture<Response>' may introduce data races
87 | }
88 | }
/host/spi-builder-workspace/Sources/App/Routes/PublicRoutes.swift:10:44: warning: converting non-sendable function value to '@Sendable (Request) throws -> EventLoopFuture<View>' may introduce data races
8 | do {
9 | let controller = PostController()
10 | routes.get("", use: controller.index)
| `- warning: converting non-sendable function value to '@Sendable (Request) throws -> EventLoopFuture<View>' may introduce data races
11 | routes.get("posts", use: controller.index)
12 | routes.get(":id", use: controller.show)
/host/spi-builder-workspace/Sources/App/Routes/PublicRoutes.swift:11:49: warning: converting non-sendable function value to '@Sendable (Request) throws -> EventLoopFuture<View>' may introduce data races
9 | let controller = PostController()
10 | routes.get("", use: controller.index)
11 | routes.get("posts", use: controller.index)
| `- warning: converting non-sendable function value to '@Sendable (Request) throws -> EventLoopFuture<View>' may introduce data races
12 | routes.get(":id", use: controller.show)
13 | routes.get("posts", ":id", use: controller.show)
/host/spi-builder-workspace/Sources/App/Routes/PublicRoutes.swift:12:47: warning: converting non-sendable function value to '@Sendable (Request) throws -> EventLoopFuture<View>' may introduce data races
10 | routes.get("", use: controller.index)
11 | routes.get("posts", use: controller.index)
12 | routes.get(":id", use: controller.show)
| `- warning: converting non-sendable function value to '@Sendable (Request) throws -> EventLoopFuture<View>' may introduce data races
13 | routes.get("posts", ":id", use: controller.show)
14 | routes.get("tags", ":id", "posts", use: controller.indexInTag)
/host/spi-builder-workspace/Sources/App/Routes/PublicRoutes.swift:13:56: warning: converting non-sendable function value to '@Sendable (Request) throws -> EventLoopFuture<View>' may introduce data races
11 | routes.get("posts", use: controller.index)
12 | routes.get(":id", use: controller.show)
13 | routes.get("posts", ":id", use: controller.show)
| `- warning: converting non-sendable function value to '@Sendable (Request) throws -> EventLoopFuture<View>' may introduce data races
14 | routes.get("tags", ":id", "posts", use: controller.indexInTag)
15 | routes.get("categories", ":id", "posts", use: controller.indexInCategory)
/host/spi-builder-workspace/Sources/App/Routes/PublicRoutes.swift:14:64: warning: converting non-sendable function value to '@Sendable (Request) throws -> EventLoopFuture<View>' may introduce data races
12 | routes.get(":id", use: controller.show)
13 | routes.get("posts", ":id", use: controller.show)
14 | routes.get("tags", ":id", "posts", use: controller.indexInTag)
| `- warning: converting non-sendable function value to '@Sendable (Request) throws -> EventLoopFuture<View>' may introduce data races
15 | routes.get("categories", ":id", "posts", use: controller.indexInCategory)
16 | routes.get("categories", "noncategorized", "posts", use: controller.indexNoCategory)
/host/spi-builder-workspace/Sources/App/Routes/PublicRoutes.swift:15:70: warning: converting non-sendable function value to '@Sendable (Request) throws -> EventLoopFuture<View>' may introduce data races
13 | routes.get("posts", ":id", use: controller.show)
14 | routes.get("tags", ":id", "posts", use: controller.indexInTag)
15 | routes.get("categories", ":id", "posts", use: controller.indexInCategory)
| `- warning: converting non-sendable function value to '@Sendable (Request) throws -> EventLoopFuture<View>' may introduce data races
16 | routes.get("categories", "noncategorized", "posts", use: controller.indexNoCategory)
17 | }
/host/spi-builder-workspace/Sources/App/Routes/PublicRoutes.swift:16:81: warning: converting non-sendable function value to '@Sendable (Request) throws -> EventLoopFuture<View>' may introduce data races
14 | routes.get("tags", ":id", "posts", use: controller.indexInTag)
15 | routes.get("categories", ":id", "posts", use: controller.indexInCategory)
16 | routes.get("categories", "noncategorized", "posts", use: controller.indexNoCategory)
| `- warning: converting non-sendable function value to '@Sendable (Request) throws -> EventLoopFuture<View>' may introduce data races
17 | }
18 | }
/host/spi-builder-workspace/Sources/App/Views/Admin/AdminViewContext.swift:19:14: warning: type 'View' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
17 | let formData = try formDataType.restoreFormData(from: request)?.makeRenderingContext()
18 | return SiteInfo.shared(on: request.db)
19 | .flatMap { [path, menuType, title] siteInfo in
| `- warning: type 'View' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
20 | let context = RenderingContext(
21 | context: context,
/host/spi-builder-workspace/.build/checkouts/vapor/Sources/Vapor/View/View.swift:3:15: note: struct 'View' does not conform to the 'Sendable' protocol
1 | import NIOCore
2 |
3 | public struct View: ResponseEncodable {
| `- note: struct 'View' does not conform to the 'Sendable' protocol
4 | public var data: ByteBuffer
5 |
/host/spi-builder-workspace/Sources/App/Views/Admin/AdminViewContext.swift:1:1: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'Vapor'
1 | import Vapor
| `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'Vapor'
2 |
3 | final class AdminViewContext {
/host/spi-builder-workspace/Sources/App/Views/Admin/AdminViewContext.swift:21:30: warning: capture of 'context' with non-sendable type 'any Encodable' in a `@Sendable` closure; this is an error in the Swift 6 language mode
19 | .flatMap { [path, menuType, title] siteInfo in
20 | let context = RenderingContext(
21 | context: context,
| `- warning: capture of 'context' with non-sendable type 'any Encodable' in a `@Sendable` closure; this is an error in the Swift 6 language mode
22 | pageTitle: title,
23 | config: config,
Swift.Encodable:1:17: note: protocol 'Encodable' does not conform to the 'Sendable' protocol
1 | public protocol Encodable {
| `- note: protocol 'Encodable' does not conform to the 'Sendable' protocol
2 | func encode(to encoder: any Encoder) throws
3 | }
/host/spi-builder-workspace/Sources/App/Views/Admin/AdminViewContext.swift:26:31: warning: capture of 'formData' with non-sendable type '(any Encodable)?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
24 | siteInfo: siteInfo,
25 | menuType: menuType,
26 | formData: formData
| `- warning: capture of 'formData' with non-sendable type '(any Encodable)?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
27 | )
28 | return request.application.viewCreator.create(path: path,
Swift.Encodable:1:17: note: protocol 'Encodable' does not conform to the 'Sendable' protocol
1 | public protocol Encodable {
| `- note: protocol 'Encodable' does not conform to the 'Sendable' protocol
2 | func encode(to encoder: any Encoder) throws
3 | }
/host/spi-builder-workspace/Sources/App/Views/Public/PublicViewContext.swift:21:14: warning: type 'View' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
19 | .and(Tag.numberOfPosts(on: request.db)).map { ($0.0.0, $0.0.1, $0.0.2, $0.1) }
20 | .and(Category.numberOfPosts(on: request.db)).map { ($0.0.0, $0.0.1, $0.0.2, $0.0.3, $0.1) }
21 | .flatMap { [path, title] siteInfo, recentPosts, staticContents, tags, categories in
| `- warning: type 'View' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
22 | let context = RenderingContext(
23 | context: context,
/host/spi-builder-workspace/.build/checkouts/vapor/Sources/Vapor/View/View.swift:3:15: note: struct 'View' does not conform to the 'Sendable' protocol
1 | import NIOCore
2 |
3 | public struct View: ResponseEncodable {
| `- note: struct 'View' does not conform to the 'Sendable' protocol
4 | public var data: ByteBuffer
5 |
/host/spi-builder-workspace/Sources/App/Views/Public/PublicViewContext.swift:1:1: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'Vapor'
1 | import Vapor
| `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'Vapor'
2 |
3 | final class PublicViewContext {
/host/spi-builder-workspace/Sources/App/Views/Public/PublicViewContext.swift:23:30: warning: capture of 'context' with non-sendable type 'any Encodable' in a `@Sendable` closure; this is an error in the Swift 6 language mode
21 | .flatMap { [path, title] siteInfo, recentPosts, staticContents, tags, categories in
22 | let context = RenderingContext(
23 | context: context,
| `- warning: capture of 'context' with non-sendable type 'any Encodable' in a `@Sendable` closure; this is an error in the Swift 6 language mode
24 | pageTitle: title,
25 | pageURL: request.url.string,
Swift.Encodable:1:17: note: protocol 'Encodable' does not conform to the 'Sendable' protocol
1 | public protocol Encodable {
| `- note: protocol 'Encodable' does not conform to the 'Sendable' protocol
2 | func encode(to encoder: any Encoder) throws
3 | }
/host/spi-builder-workspace/Sources/App/Views/Tags/LeafTags.swift:15:24: warning: static property 'decodeFormatter' is not concurrency-safe because non-'Sendable' type 'ISO8601DateFormatter' may have shared mutable state; this is an error in the Swift 6 language mode
13 | struct DateTag: LeafTag {
14 |
15 | private static let decodeFormatter = ISO8601DateFormatter()
| |- warning: static property 'decodeFormatter' is not concurrency-safe because non-'Sendable' type 'ISO8601DateFormatter' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'decodeFormatter' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
16 |
17 | func render(_ ctx: LeafContext) throws -> LeafData {
Foundation.ISO8601DateFormatter:1:12: note: class 'ISO8601DateFormatter' does not conform to the 'Sendable' protocol
1 | open class ISO8601DateFormatter : Formatter, NSSecureCoding {
| `- note: class 'ISO8601DateFormatter' does not conform to the 'Sendable' protocol
2 | open var timeZone: TimeZone! { get set }
3 | open var formatOptions: ISO8601DateFormatter.Options { get set }
[2869/2882] Compiling App UserForm.swift
/host/spi-builder-workspace/Sources/App/Models/Scheme/Category.swift:9:9: warning: stored property '_id' of 'Sendable'-conforming class 'Category' is mutable; this is an error in the Swift 6 language mode
7 |
8 | @ID(custom: .id)
9 | var id: Int?
| `- warning: stored property '_id' of 'Sendable'-conforming class 'Category' is mutable; this is an error in the Swift 6 language mode
10 |
11 | @Field(key: "name")
/host/spi-builder-workspace/Sources/App/Models/Scheme/Image.swift:9:9: warning: stored property '_id' of 'Sendable'-conforming class 'Image' is mutable; this is an error in the Swift 6 language mode
7 |
8 | @ID(custom: .id)
9 | var id: Int?
| `- warning: stored property '_id' of 'Sendable'-conforming class 'Image' is mutable; this is an error in the Swift 6 language mode
10 |
11 | @Field(key: "path")
/host/spi-builder-workspace/Sources/App/Models/Scheme/Post.swift:10:9: warning: stored property '_id' of 'Sendable'-conforming class 'Post' is mutable; this is an error in the Swift 6 language mode
8 |
9 | @ID(custom: .id)
10 | var id: Int?
| `- warning: stored property '_id' of 'Sendable'-conforming class 'Post' is mutable; this is an error in the Swift 6 language mode
11 |
12 | @Field(key: "title")
/host/spi-builder-workspace/Sources/App/Models/Scheme/Post.swift:137:42: warning: 'sql(raw:)' is deprecated: Renamed to `.sql(unsafeRaw:)`. Please use caution when embedding raw SQL.
135 | extension QueryBuilder where Model == Post {
136 | func publicAll() -> Self {
137 | return filter(\.$isPublished == .sql(raw: "1"))
| |- warning: 'sql(raw:)' is deprecated: Renamed to `.sql(unsafeRaw:)`. Please use caution when embedding raw SQL.
| `- note: use 'sql(unsafeRaw:)' instead
138 | }
139 |
/host/spi-builder-workspace/Sources/App/Models/Scheme/Post.swift:141:39: warning: 'sql(raw:)' is deprecated: Renamed to `.sql(unsafeRaw:)`. Please use caution when embedding raw SQL.
139 |
140 | func noStaticAll() -> Self {
141 | return filter(\.$isStatic == .sql(raw: "0"))
| |- warning: 'sql(raw:)' is deprecated: Renamed to `.sql(unsafeRaw:)`. Please use caution when embedding raw SQL.
| `- note: use 'sql(unsafeRaw:)' instead
142 | }
143 |
/host/spi-builder-workspace/Sources/App/Models/Scheme/Post.swift:145:39: warning: 'sql(raw:)' is deprecated: Renamed to `.sql(unsafeRaw:)`. Please use caution when embedding raw SQL.
143 |
144 | func staticAll() -> Self {
145 | return filter(\.$isStatic == .sql(raw: "1"))
| |- warning: 'sql(raw:)' is deprecated: Renamed to `.sql(unsafeRaw:)`. Please use caution when embedding raw SQL.
| `- note: use 'sql(unsafeRaw:)' instead
146 | }
147 |
/host/spi-builder-workspace/Sources/App/Models/Scheme/PostTag.swift:9:9: warning: stored property '_id' of 'Sendable'-conforming class 'PostTag' is mutable; this is an error in the Swift 6 language mode
7 |
8 | @ID(custom: .id)
9 | var id: Int?
| `- warning: stored property '_id' of 'Sendable'-conforming class 'PostTag' is mutable; this is an error in the Swift 6 language mode
10 |
11 | @Parent(key: "post_id")
/host/spi-builder-workspace/Sources/App/Models/Scheme/SiteInfo.swift:9:9: warning: stored property '_id' of 'Sendable'-conforming class 'SiteInfo' is mutable; this is an error in the Swift 6 language mode
7 |
8 | @ID(custom: .id)
9 | var id: Int?
| `- warning: stored property '_id' of 'Sendable'-conforming class 'SiteInfo' is mutable; this is an error in the Swift 6 language mode
10 |
11 | @Field(key: "name")
/host/spi-builder-workspace/Sources/App/Models/Scheme/Tag.swift:9:9: warning: stored property '_id' of 'Sendable'-conforming class 'Tag' is mutable; this is an error in the Swift 6 language mode
7 |
8 | @ID(custom: .id)
9 | var id: Int?
| `- warning: stored property '_id' of 'Sendable'-conforming class 'Tag' is mutable; this is an error in the Swift 6 language mode
10 |
11 | @Field(key: "name")
/host/spi-builder-workspace/Sources/App/Models/Scheme/User.swift:11:9: warning: stored property '_id' of 'Sendable'-conforming class 'User' is mutable; this is an error in the Swift 6 language mode
9 |
10 | @ID(custom: .id)
11 | var id: Int?
| `- warning: stored property '_id' of 'Sendable'-conforming class 'User' is mutable; this is an error in the Swift 6 language mode
12 |
13 | @Field(key: "name")
/host/spi-builder-workspace/Sources/App/Routes/APIRoutes.swift:14:47: warning: converting non-sendable function value to '@Sendable (Request) throws -> EventLoopFuture<PageResponse<ImageGroup>>' may introduce data races
12 | do {
13 | let controller = API.ImageController()
14 | api.get("images", use: controller.index)
| `- warning: converting non-sendable function value to '@Sendable (Request) throws -> EventLoopFuture<PageResponse<ImageGroup>>' may introduce data races
15 | api.on(.POST, "images", body: .collect(maxSize: nil), use: controller.store)
16 | }
/host/spi-builder-workspace/Sources/App/Routes/APIRoutes.swift:15:83: warning: converting non-sendable function value to '@Sendable (Request) throws -> EventLoopFuture<Response>' may introduce data races
13 | let controller = API.ImageController()
14 | api.get("images", use: controller.index)
15 | api.on(.POST, "images", body: .collect(maxSize: nil), use: controller.store)
| `- warning: converting non-sendable function value to '@Sendable (Request) throws -> EventLoopFuture<Response>' may introduce data races
16 | }
17 |
/host/spi-builder-workspace/Sources/App/Routes/APIRoutes.swift:21:47: warning: converting non-sendable function value to '@Sendable (Request) throws -> EventLoopFuture<[Theme]>' may introduce data races
19 | do {
20 | let controller = API.ThemeController()
21 | api.get("themes", use: controller.index)
| `- warning: converting non-sendable function value to '@Sendable (Request) throws -> EventLoopFuture<[Theme]>' may introduce data races
22 | api.post("themes", use: controller.store)
23 | }
/host/spi-builder-workspace/Sources/App/Routes/APIRoutes.swift:22:48: warning: converting non-sendable function value to '@Sendable (Request) throws -> EventLoopFuture<Response>' may introduce data races
20 | let controller = API.ThemeController()
21 | api.get("themes", use: controller.index)
22 | api.post("themes", use: controller.store)
| `- warning: converting non-sendable function value to '@Sendable (Request) throws -> EventLoopFuture<Response>' may introduce data races
23 | }
24 |
/host/spi-builder-workspace/Sources/App/Routes/APIRoutes.swift:28:65: warning: converting non-sendable function value to '@Sendable (Request) throws -> EventLoopFuture<[EditableFileGroup]>' may introduce data races
26 | do {
27 | let controller = API.FileController()
28 | api.get("themes", ":name", "files", use: controller.index)
| `- warning: converting non-sendable function value to '@Sendable (Request) throws -> EventLoopFuture<[EditableFileGroup]>' may introduce data races
29 | api.get("files", use: controller.show)
30 | api.post("files", use: controller.store)
/host/spi-builder-workspace/Sources/App/Routes/APIRoutes.swift:29:46: warning: converting non-sendable function value to '@Sendable (Request) throws -> EventLoopFuture<EditableFileBody>' may introduce data races
27 | let controller = API.FileController()
28 | api.get("themes", ":name", "files", use: controller.index)
29 | api.get("files", use: controller.show)
| `- warning: converting non-sendable function value to '@Sendable (Request) throws -> EventLoopFuture<EditableFileBody>' may introduce data races
30 | api.post("files", use: controller.store)
31 | }
/host/spi-builder-workspace/Sources/App/Routes/APIRoutes.swift:30:47: warning: converting non-sendable function value to '@Sendable (Request) throws -> EventLoopFuture<Response>' may introduce data races
28 | api.get("themes", ":name", "files", use: controller.index)
29 | api.get("files", use: controller.show)
30 | api.post("files", use: controller.store)
| `- warning: converting non-sendable function value to '@Sendable (Request) throws -> EventLoopFuture<Response>' may introduce data races
31 | }
32 | }
[2870/2882] Compiling App Category.swift
/host/spi-builder-workspace/Sources/App/Models/Scheme/Category.swift:9:9: warning: stored property '_id' of 'Sendable'-conforming class 'Category' is mutable; this is an error in the Swift 6 language mode
7 |
8 | @ID(custom: .id)
9 | var id: Int?
| `- warning: stored property '_id' of 'Sendable'-conforming class 'Category' is mutable; this is an error in the Swift 6 language mode
10 |
11 | @Field(key: "name")
/host/spi-builder-workspace/Sources/App/Models/Scheme/Image.swift:9:9: warning: stored property '_id' of 'Sendable'-conforming class 'Image' is mutable; this is an error in the Swift 6 language mode
7 |
8 | @ID(custom: .id)
9 | var id: Int?
| `- warning: stored property '_id' of 'Sendable'-conforming class 'Image' is mutable; this is an error in the Swift 6 language mode
10 |
11 | @Field(key: "path")
/host/spi-builder-workspace/Sources/App/Models/Scheme/Post.swift:10:9: warning: stored property '_id' of 'Sendable'-conforming class 'Post' is mutable; this is an error in the Swift 6 language mode
8 |
9 | @ID(custom: .id)
10 | var id: Int?
| `- warning: stored property '_id' of 'Sendable'-conforming class 'Post' is mutable; this is an error in the Swift 6 language mode
11 |
12 | @Field(key: "title")
/host/spi-builder-workspace/Sources/App/Models/Scheme/Post.swift:137:42: warning: 'sql(raw:)' is deprecated: Renamed to `.sql(unsafeRaw:)`. Please use caution when embedding raw SQL.
135 | extension QueryBuilder where Model == Post {
136 | func publicAll() -> Self {
137 | return filter(\.$isPublished == .sql(raw: "1"))
| |- warning: 'sql(raw:)' is deprecated: Renamed to `.sql(unsafeRaw:)`. Please use caution when embedding raw SQL.
| `- note: use 'sql(unsafeRaw:)' instead
138 | }
139 |
/host/spi-builder-workspace/Sources/App/Models/Scheme/Post.swift:141:39: warning: 'sql(raw:)' is deprecated: Renamed to `.sql(unsafeRaw:)`. Please use caution when embedding raw SQL.
139 |
140 | func noStaticAll() -> Self {
141 | return filter(\.$isStatic == .sql(raw: "0"))
| |- warning: 'sql(raw:)' is deprecated: Renamed to `.sql(unsafeRaw:)`. Please use caution when embedding raw SQL.
| `- note: use 'sql(unsafeRaw:)' instead
142 | }
143 |
/host/spi-builder-workspace/Sources/App/Models/Scheme/Post.swift:145:39: warning: 'sql(raw:)' is deprecated: Renamed to `.sql(unsafeRaw:)`. Please use caution when embedding raw SQL.
143 |
144 | func staticAll() -> Self {
145 | return filter(\.$isStatic == .sql(raw: "1"))
| |- warning: 'sql(raw:)' is deprecated: Renamed to `.sql(unsafeRaw:)`. Please use caution when embedding raw SQL.
| `- note: use 'sql(unsafeRaw:)' instead
146 | }
147 |
/host/spi-builder-workspace/Sources/App/Models/Scheme/PostTag.swift:9:9: warning: stored property '_id' of 'Sendable'-conforming class 'PostTag' is mutable; this is an error in the Swift 6 language mode
7 |
8 | @ID(custom: .id)
9 | var id: Int?
| `- warning: stored property '_id' of 'Sendable'-conforming class 'PostTag' is mutable; this is an error in the Swift 6 language mode
10 |
11 | @Parent(key: "post_id")
/host/spi-builder-workspace/Sources/App/Models/Scheme/SiteInfo.swift:9:9: warning: stored property '_id' of 'Sendable'-conforming class 'SiteInfo' is mutable; this is an error in the Swift 6 language mode
7 |
8 | @ID(custom: .id)
9 | var id: Int?
| `- warning: stored property '_id' of 'Sendable'-conforming class 'SiteInfo' is mutable; this is an error in the Swift 6 language mode
10 |
11 | @Field(key: "name")
/host/spi-builder-workspace/Sources/App/Models/Scheme/Tag.swift:9:9: warning: stored property '_id' of 'Sendable'-conforming class 'Tag' is mutable; this is an error in the Swift 6 language mode
7 |
8 | @ID(custom: .id)
9 | var id: Int?
| `- warning: stored property '_id' of 'Sendable'-conforming class 'Tag' is mutable; this is an error in the Swift 6 language mode
10 |
11 | @Field(key: "name")
/host/spi-builder-workspace/Sources/App/Models/Scheme/User.swift:11:9: warning: stored property '_id' of 'Sendable'-conforming class 'User' is mutable; this is an error in the Swift 6 language mode
9 |
10 | @ID(custom: .id)
11 | var id: Int?
| `- warning: stored property '_id' of 'Sendable'-conforming class 'User' is mutable; this is an error in the Swift 6 language mode
12 |
13 | @Field(key: "name")
/host/spi-builder-workspace/Sources/App/Routes/APIRoutes.swift:14:47: warning: converting non-sendable function value to '@Sendable (Request) throws -> EventLoopFuture<PageResponse<ImageGroup>>' may introduce data races
12 | do {
13 | let controller = API.ImageController()
14 | api.get("images", use: controller.index)
| `- warning: converting non-sendable function value to '@Sendable (Request) throws -> EventLoopFuture<PageResponse<ImageGroup>>' may introduce data races
15 | api.on(.POST, "images", body: .collect(maxSize: nil), use: controller.store)
16 | }
/host/spi-builder-workspace/Sources/App/Routes/APIRoutes.swift:15:83: warning: converting non-sendable function value to '@Sendable (Request) throws -> EventLoopFuture<Response>' may introduce data races
13 | let controller = API.ImageController()
14 | api.get("images", use: controller.index)
15 | api.on(.POST, "images", body: .collect(maxSize: nil), use: controller.store)
| `- warning: converting non-sendable function value to '@Sendable (Request) throws -> EventLoopFuture<Response>' may introduce data races
16 | }
17 |
/host/spi-builder-workspace/Sources/App/Routes/APIRoutes.swift:21:47: warning: converting non-sendable function value to '@Sendable (Request) throws -> EventLoopFuture<[Theme]>' may introduce data races
19 | do {
20 | let controller = API.ThemeController()
21 | api.get("themes", use: controller.index)
| `- warning: converting non-sendable function value to '@Sendable (Request) throws -> EventLoopFuture<[Theme]>' may introduce data races
22 | api.post("themes", use: controller.store)
23 | }
/host/spi-builder-workspace/Sources/App/Routes/APIRoutes.swift:22:48: warning: converting non-sendable function value to '@Sendable (Request) throws -> EventLoopFuture<Response>' may introduce data races
20 | let controller = API.ThemeController()
21 | api.get("themes", use: controller.index)
22 | api.post("themes", use: controller.store)
| `- warning: converting non-sendable function value to '@Sendable (Request) throws -> EventLoopFuture<Response>' may introduce data races
23 | }
24 |
/host/spi-builder-workspace/Sources/App/Routes/APIRoutes.swift:28:65: warning: converting non-sendable function value to '@Sendable (Request) throws -> EventLoopFuture<[EditableFileGroup]>' may introduce data races
26 | do {
27 | let controller = API.FileController()
28 | api.get("themes", ":name", "files", use: controller.index)
| `- warning: converting non-sendable function value to '@Sendable (Request) throws -> EventLoopFuture<[EditableFileGroup]>' may introduce data races
29 | api.get("files", use: controller.show)
30 | api.post("files", use: controller.store)
/host/spi-builder-workspace/Sources/App/Routes/APIRoutes.swift:29:46: warning: converting non-sendable function value to '@Sendable (Request) throws -> EventLoopFuture<EditableFileBody>' may introduce data races
27 | let controller = API.FileController()
28 | api.get("themes", ":name", "files", use: controller.index)
29 | api.get("files", use: controller.show)
| `- warning: converting non-sendable function value to '@Sendable (Request) throws -> EventLoopFuture<EditableFileBody>' may introduce data races
30 | api.post("files", use: controller.store)
31 | }
/host/spi-builder-workspace/Sources/App/Routes/APIRoutes.swift:30:47: warning: converting non-sendable function value to '@Sendable (Request) throws -> EventLoopFuture<Response>' may introduce data races
28 | api.get("themes", ":name", "files", use: controller.index)
29 | api.get("files", use: controller.show)
30 | api.post("files", use: controller.store)
| `- warning: converting non-sendable function value to '@Sendable (Request) throws -> EventLoopFuture<Response>' may introduce data races
31 | }
32 | }
[2871/2882] Compiling App Image.swift
/host/spi-builder-workspace/Sources/App/Models/Scheme/Category.swift:9:9: warning: stored property '_id' of 'Sendable'-conforming class 'Category' is mutable; this is an error in the Swift 6 language mode
7 |
8 | @ID(custom: .id)
9 | var id: Int?
| `- warning: stored property '_id' of 'Sendable'-conforming class 'Category' is mutable; this is an error in the Swift 6 language mode
10 |
11 | @Field(key: "name")
/host/spi-builder-workspace/Sources/App/Models/Scheme/Image.swift:9:9: warning: stored property '_id' of 'Sendable'-conforming class 'Image' is mutable; this is an error in the Swift 6 language mode
7 |
8 | @ID(custom: .id)
9 | var id: Int?
| `- warning: stored property '_id' of 'Sendable'-conforming class 'Image' is mutable; this is an error in the Swift 6 language mode
10 |
11 | @Field(key: "path")
/host/spi-builder-workspace/Sources/App/Models/Scheme/Post.swift:10:9: warning: stored property '_id' of 'Sendable'-conforming class 'Post' is mutable; this is an error in the Swift 6 language mode
8 |
9 | @ID(custom: .id)
10 | var id: Int?
| `- warning: stored property '_id' of 'Sendable'-conforming class 'Post' is mutable; this is an error in the Swift 6 language mode
11 |
12 | @Field(key: "title")
/host/spi-builder-workspace/Sources/App/Models/Scheme/Post.swift:137:42: warning: 'sql(raw:)' is deprecated: Renamed to `.sql(unsafeRaw:)`. Please use caution when embedding raw SQL.
135 | extension QueryBuilder where Model == Post {
136 | func publicAll() -> Self {
137 | return filter(\.$isPublished == .sql(raw: "1"))
| |- warning: 'sql(raw:)' is deprecated: Renamed to `.sql(unsafeRaw:)`. Please use caution when embedding raw SQL.
| `- note: use 'sql(unsafeRaw:)' instead
138 | }
139 |
/host/spi-builder-workspace/Sources/App/Models/Scheme/Post.swift:141:39: warning: 'sql(raw:)' is deprecated: Renamed to `.sql(unsafeRaw:)`. Please use caution when embedding raw SQL.
139 |
140 | func noStaticAll() -> Self {
141 | return filter(\.$isStatic == .sql(raw: "0"))
| |- warning: 'sql(raw:)' is deprecated: Renamed to `.sql(unsafeRaw:)`. Please use caution when embedding raw SQL.
| `- note: use 'sql(unsafeRaw:)' instead
142 | }
143 |
/host/spi-builder-workspace/Sources/App/Models/Scheme/Post.swift:145:39: warning: 'sql(raw:)' is deprecated: Renamed to `.sql(unsafeRaw:)`. Please use caution when embedding raw SQL.
143 |
144 | func staticAll() -> Self {
145 | return filter(\.$isStatic == .sql(raw: "1"))
| |- warning: 'sql(raw:)' is deprecated: Renamed to `.sql(unsafeRaw:)`. Please use caution when embedding raw SQL.
| `- note: use 'sql(unsafeRaw:)' instead
146 | }
147 |
/host/spi-builder-workspace/Sources/App/Models/Scheme/PostTag.swift:9:9: warning: stored property '_id' of 'Sendable'-conforming class 'PostTag' is mutable; this is an error in the Swift 6 language mode
7 |
8 | @ID(custom: .id)
9 | var id: Int?
| `- warning: stored property '_id' of 'Sendable'-conforming class 'PostTag' is mutable; this is an error in the Swift 6 language mode
10 |
11 | @Parent(key: "post_id")
/host/spi-builder-workspace/Sources/App/Models/Scheme/SiteInfo.swift:9:9: warning: stored property '_id' of 'Sendable'-conforming class 'SiteInfo' is mutable; this is an error in the Swift 6 language mode
7 |
8 | @ID(custom: .id)
9 | var id: Int?
| `- warning: stored property '_id' of 'Sendable'-conforming class 'SiteInfo' is mutable; this is an error in the Swift 6 language mode
10 |
11 | @Field(key: "name")
/host/spi-builder-workspace/Sources/App/Models/Scheme/Tag.swift:9:9: warning: stored property '_id' of 'Sendable'-conforming class 'Tag' is mutable; this is an error in the Swift 6 language mode
7 |
8 | @ID(custom: .id)
9 | var id: Int?
| `- warning: stored property '_id' of 'Sendable'-conforming class 'Tag' is mutable; this is an error in the Swift 6 language mode
10 |
11 | @Field(key: "name")
/host/spi-builder-workspace/Sources/App/Models/Scheme/User.swift:11:9: warning: stored property '_id' of 'Sendable'-conforming class 'User' is mutable; this is an error in the Swift 6 language mode
9 |
10 | @ID(custom: .id)
11 | var id: Int?
| `- warning: stored property '_id' of 'Sendable'-conforming class 'User' is mutable; this is an error in the Swift 6 language mode
12 |
13 | @Field(key: "name")
/host/spi-builder-workspace/Sources/App/Routes/APIRoutes.swift:14:47: warning: converting non-sendable function value to '@Sendable (Request) throws -> EventLoopFuture<PageResponse<ImageGroup>>' may introduce data races
12 | do {
13 | let controller = API.ImageController()
14 | api.get("images", use: controller.index)
| `- warning: converting non-sendable function value to '@Sendable (Request) throws -> EventLoopFuture<PageResponse<ImageGroup>>' may introduce data races
15 | api.on(.POST, "images", body: .collect(maxSize: nil), use: controller.store)
16 | }
/host/spi-builder-workspace/Sources/App/Routes/APIRoutes.swift:15:83: warning: converting non-sendable function value to '@Sendable (Request) throws -> EventLoopFuture<Response>' may introduce data races
13 | let controller = API.ImageController()
14 | api.get("images", use: controller.index)
15 | api.on(.POST, "images", body: .collect(maxSize: nil), use: controller.store)
| `- warning: converting non-sendable function value to '@Sendable (Request) throws -> EventLoopFuture<Response>' may introduce data races
16 | }
17 |
/host/spi-builder-workspace/Sources/App/Routes/APIRoutes.swift:21:47: warning: converting non-sendable function value to '@Sendable (Request) throws -> EventLoopFuture<[Theme]>' may introduce data races
19 | do {
20 | let controller = API.ThemeController()
21 | api.get("themes", use: controller.index)
| `- warning: converting non-sendable function value to '@Sendable (Request) throws -> EventLoopFuture<[Theme]>' may introduce data races
22 | api.post("themes", use: controller.store)
23 | }
/host/spi-builder-workspace/Sources/App/Routes/APIRoutes.swift:22:48: warning: converting non-sendable function value to '@Sendable (Request) throws -> EventLoopFuture<Response>' may introduce data races
20 | let controller = API.ThemeController()
21 | api.get("themes", use: controller.index)
22 | api.post("themes", use: controller.store)
| `- warning: converting non-sendable function value to '@Sendable (Request) throws -> EventLoopFuture<Response>' may introduce data races
23 | }
24 |
/host/spi-builder-workspace/Sources/App/Routes/APIRoutes.swift:28:65: warning: converting non-sendable function value to '@Sendable (Request) throws -> EventLoopFuture<[EditableFileGroup]>' may introduce data races
26 | do {
27 | let controller = API.FileController()
28 | api.get("themes", ":name", "files", use: controller.index)
| `- warning: converting non-sendable function value to '@Sendable (Request) throws -> EventLoopFuture<[EditableFileGroup]>' may introduce data races
29 | api.get("files", use: controller.show)
30 | api.post("files", use: controller.store)
/host/spi-builder-workspace/Sources/App/Routes/APIRoutes.swift:29:46: warning: converting non-sendable function value to '@Sendable (Request) throws -> EventLoopFuture<EditableFileBody>' may introduce data races
27 | let controller = API.FileController()
28 | api.get("themes", ":name", "files", use: controller.index)
29 | api.get("files", use: controller.show)
| `- warning: converting non-sendable function value to '@Sendable (Request) throws -> EventLoopFuture<EditableFileBody>' may introduce data races
30 | api.post("files", use: controller.store)
31 | }
/host/spi-builder-workspace/Sources/App/Routes/APIRoutes.swift:30:47: warning: converting non-sendable function value to '@Sendable (Request) throws -> EventLoopFuture<Response>' may introduce data races
28 | api.get("themes", ":name", "files", use: controller.index)
29 | api.get("files", use: controller.show)
30 | api.post("files", use: controller.store)
| `- warning: converting non-sendable function value to '@Sendable (Request) throws -> EventLoopFuture<Response>' may introduce data races
31 | }
32 | }
[2872/2882] Compiling App Post.swift
/host/spi-builder-workspace/Sources/App/Models/Scheme/Category.swift:9:9: warning: stored property '_id' of 'Sendable'-conforming class 'Category' is mutable; this is an error in the Swift 6 language mode
7 |
8 | @ID(custom: .id)
9 | var id: Int?
| `- warning: stored property '_id' of 'Sendable'-conforming class 'Category' is mutable; this is an error in the Swift 6 language mode
10 |
11 | @Field(key: "name")
/host/spi-builder-workspace/Sources/App/Models/Scheme/Image.swift:9:9: warning: stored property '_id' of 'Sendable'-conforming class 'Image' is mutable; this is an error in the Swift 6 language mode
7 |
8 | @ID(custom: .id)
9 | var id: Int?
| `- warning: stored property '_id' of 'Sendable'-conforming class 'Image' is mutable; this is an error in the Swift 6 language mode
10 |
11 | @Field(key: "path")
/host/spi-builder-workspace/Sources/App/Models/Scheme/Post.swift:10:9: warning: stored property '_id' of 'Sendable'-conforming class 'Post' is mutable; this is an error in the Swift 6 language mode
8 |
9 | @ID(custom: .id)
10 | var id: Int?
| `- warning: stored property '_id' of 'Sendable'-conforming class 'Post' is mutable; this is an error in the Swift 6 language mode
11 |
12 | @Field(key: "title")
/host/spi-builder-workspace/Sources/App/Models/Scheme/Post.swift:137:42: warning: 'sql(raw:)' is deprecated: Renamed to `.sql(unsafeRaw:)`. Please use caution when embedding raw SQL.
135 | extension QueryBuilder where Model == Post {
136 | func publicAll() -> Self {
137 | return filter(\.$isPublished == .sql(raw: "1"))
| |- warning: 'sql(raw:)' is deprecated: Renamed to `.sql(unsafeRaw:)`. Please use caution when embedding raw SQL.
| `- note: use 'sql(unsafeRaw:)' instead
138 | }
139 |
/host/spi-builder-workspace/Sources/App/Models/Scheme/Post.swift:141:39: warning: 'sql(raw:)' is deprecated: Renamed to `.sql(unsafeRaw:)`. Please use caution when embedding raw SQL.
139 |
140 | func noStaticAll() -> Self {
141 | return filter(\.$isStatic == .sql(raw: "0"))
| |- warning: 'sql(raw:)' is deprecated: Renamed to `.sql(unsafeRaw:)`. Please use caution when embedding raw SQL.
| `- note: use 'sql(unsafeRaw:)' instead
142 | }
143 |
/host/spi-builder-workspace/Sources/App/Models/Scheme/Post.swift:145:39: warning: 'sql(raw:)' is deprecated: Renamed to `.sql(unsafeRaw:)`. Please use caution when embedding raw SQL.
143 |
144 | func staticAll() -> Self {
145 | return filter(\.$isStatic == .sql(raw: "1"))
| |- warning: 'sql(raw:)' is deprecated: Renamed to `.sql(unsafeRaw:)`. Please use caution when embedding raw SQL.
| `- note: use 'sql(unsafeRaw:)' instead
146 | }
147 |
/host/spi-builder-workspace/Sources/App/Models/Scheme/PostTag.swift:9:9: warning: stored property '_id' of 'Sendable'-conforming class 'PostTag' is mutable; this is an error in the Swift 6 language mode
7 |
8 | @ID(custom: .id)
9 | var id: Int?
| `- warning: stored property '_id' of 'Sendable'-conforming class 'PostTag' is mutable; this is an error in the Swift 6 language mode
10 |
11 | @Parent(key: "post_id")
/host/spi-builder-workspace/Sources/App/Models/Scheme/SiteInfo.swift:9:9: warning: stored property '_id' of 'Sendable'-conforming class 'SiteInfo' is mutable; this is an error in the Swift 6 language mode
7 |
8 | @ID(custom: .id)
9 | var id: Int?
| `- warning: stored property '_id' of 'Sendable'-conforming class 'SiteInfo' is mutable; this is an error in the Swift 6 language mode
10 |
11 | @Field(key: "name")
/host/spi-builder-workspace/Sources/App/Models/Scheme/Tag.swift:9:9: warning: stored property '_id' of 'Sendable'-conforming class 'Tag' is mutable; this is an error in the Swift 6 language mode
7 |
8 | @ID(custom: .id)
9 | var id: Int?
| `- warning: stored property '_id' of 'Sendable'-conforming class 'Tag' is mutable; this is an error in the Swift 6 language mode
10 |
11 | @Field(key: "name")
/host/spi-builder-workspace/Sources/App/Models/Scheme/User.swift:11:9: warning: stored property '_id' of 'Sendable'-conforming class 'User' is mutable; this is an error in the Swift 6 language mode
9 |
10 | @ID(custom: .id)
11 | var id: Int?
| `- warning: stored property '_id' of 'Sendable'-conforming class 'User' is mutable; this is an error in the Swift 6 language mode
12 |
13 | @Field(key: "name")
/host/spi-builder-workspace/Sources/App/Routes/APIRoutes.swift:14:47: warning: converting non-sendable function value to '@Sendable (Request) throws -> EventLoopFuture<PageResponse<ImageGroup>>' may introduce data races
12 | do {
13 | let controller = API.ImageController()
14 | api.get("images", use: controller.index)
| `- warning: converting non-sendable function value to '@Sendable (Request) throws -> EventLoopFuture<PageResponse<ImageGroup>>' may introduce data races
15 | api.on(.POST, "images", body: .collect(maxSize: nil), use: controller.store)
16 | }
/host/spi-builder-workspace/Sources/App/Routes/APIRoutes.swift:15:83: warning: converting non-sendable function value to '@Sendable (Request) throws -> EventLoopFuture<Response>' may introduce data races
13 | let controller = API.ImageController()
14 | api.get("images", use: controller.index)
15 | api.on(.POST, "images", body: .collect(maxSize: nil), use: controller.store)
| `- warning: converting non-sendable function value to '@Sendable (Request) throws -> EventLoopFuture<Response>' may introduce data races
16 | }
17 |
/host/spi-builder-workspace/Sources/App/Routes/APIRoutes.swift:21:47: warning: converting non-sendable function value to '@Sendable (Request) throws -> EventLoopFuture<[Theme]>' may introduce data races
19 | do {
20 | let controller = API.ThemeController()
21 | api.get("themes", use: controller.index)
| `- warning: converting non-sendable function value to '@Sendable (Request) throws -> EventLoopFuture<[Theme]>' may introduce data races
22 | api.post("themes", use: controller.store)
23 | }
/host/spi-builder-workspace/Sources/App/Routes/APIRoutes.swift:22:48: warning: converting non-sendable function value to '@Sendable (Request) throws -> EventLoopFuture<Response>' may introduce data races
20 | let controller = API.ThemeController()
21 | api.get("themes", use: controller.index)
22 | api.post("themes", use: controller.store)
| `- warning: converting non-sendable function value to '@Sendable (Request) throws -> EventLoopFuture<Response>' may introduce data races
23 | }
24 |
/host/spi-builder-workspace/Sources/App/Routes/APIRoutes.swift:28:65: warning: converting non-sendable function value to '@Sendable (Request) throws -> EventLoopFuture<[EditableFileGroup]>' may introduce data races
26 | do {
27 | let controller = API.FileController()
28 | api.get("themes", ":name", "files", use: controller.index)
| `- warning: converting non-sendable function value to '@Sendable (Request) throws -> EventLoopFuture<[EditableFileGroup]>' may introduce data races
29 | api.get("files", use: controller.show)
30 | api.post("files", use: controller.store)
/host/spi-builder-workspace/Sources/App/Routes/APIRoutes.swift:29:46: warning: converting non-sendable function value to '@Sendable (Request) throws -> EventLoopFuture<EditableFileBody>' may introduce data races
27 | let controller = API.FileController()
28 | api.get("themes", ":name", "files", use: controller.index)
29 | api.get("files", use: controller.show)
| `- warning: converting non-sendable function value to '@Sendable (Request) throws -> EventLoopFuture<EditableFileBody>' may introduce data races
30 | api.post("files", use: controller.store)
31 | }
/host/spi-builder-workspace/Sources/App/Routes/APIRoutes.swift:30:47: warning: converting non-sendable function value to '@Sendable (Request) throws -> EventLoopFuture<Response>' may introduce data races
28 | api.get("themes", ":name", "files", use: controller.index)
29 | api.get("files", use: controller.show)
30 | api.post("files", use: controller.store)
| `- warning: converting non-sendable function value to '@Sendable (Request) throws -> EventLoopFuture<Response>' may introduce data races
31 | }
32 | }
[2873/2882] Compiling App PostTag.swift
/host/spi-builder-workspace/Sources/App/Models/Scheme/Category.swift:9:9: warning: stored property '_id' of 'Sendable'-conforming class 'Category' is mutable; this is an error in the Swift 6 language mode
7 |
8 | @ID(custom: .id)
9 | var id: Int?
| `- warning: stored property '_id' of 'Sendable'-conforming class 'Category' is mutable; this is an error in the Swift 6 language mode
10 |
11 | @Field(key: "name")
/host/spi-builder-workspace/Sources/App/Models/Scheme/Image.swift:9:9: warning: stored property '_id' of 'Sendable'-conforming class 'Image' is mutable; this is an error in the Swift 6 language mode
7 |
8 | @ID(custom: .id)
9 | var id: Int?
| `- warning: stored property '_id' of 'Sendable'-conforming class 'Image' is mutable; this is an error in the Swift 6 language mode
10 |
11 | @Field(key: "path")
/host/spi-builder-workspace/Sources/App/Models/Scheme/Post.swift:10:9: warning: stored property '_id' of 'Sendable'-conforming class 'Post' is mutable; this is an error in the Swift 6 language mode
8 |
9 | @ID(custom: .id)
10 | var id: Int?
| `- warning: stored property '_id' of 'Sendable'-conforming class 'Post' is mutable; this is an error in the Swift 6 language mode
11 |
12 | @Field(key: "title")
/host/spi-builder-workspace/Sources/App/Models/Scheme/Post.swift:137:42: warning: 'sql(raw:)' is deprecated: Renamed to `.sql(unsafeRaw:)`. Please use caution when embedding raw SQL.
135 | extension QueryBuilder where Model == Post {
136 | func publicAll() -> Self {
137 | return filter(\.$isPublished == .sql(raw: "1"))
| |- warning: 'sql(raw:)' is deprecated: Renamed to `.sql(unsafeRaw:)`. Please use caution when embedding raw SQL.
| `- note: use 'sql(unsafeRaw:)' instead
138 | }
139 |
/host/spi-builder-workspace/Sources/App/Models/Scheme/Post.swift:141:39: warning: 'sql(raw:)' is deprecated: Renamed to `.sql(unsafeRaw:)`. Please use caution when embedding raw SQL.
139 |
140 | func noStaticAll() -> Self {
141 | return filter(\.$isStatic == .sql(raw: "0"))
| |- warning: 'sql(raw:)' is deprecated: Renamed to `.sql(unsafeRaw:)`. Please use caution when embedding raw SQL.
| `- note: use 'sql(unsafeRaw:)' instead
142 | }
143 |
/host/spi-builder-workspace/Sources/App/Models/Scheme/Post.swift:145:39: warning: 'sql(raw:)' is deprecated: Renamed to `.sql(unsafeRaw:)`. Please use caution when embedding raw SQL.
143 |
144 | func staticAll() -> Self {
145 | return filter(\.$isStatic == .sql(raw: "1"))
| |- warning: 'sql(raw:)' is deprecated: Renamed to `.sql(unsafeRaw:)`. Please use caution when embedding raw SQL.
| `- note: use 'sql(unsafeRaw:)' instead
146 | }
147 |
/host/spi-builder-workspace/Sources/App/Models/Scheme/PostTag.swift:9:9: warning: stored property '_id' of 'Sendable'-conforming class 'PostTag' is mutable; this is an error in the Swift 6 language mode
7 |
8 | @ID(custom: .id)
9 | var id: Int?
| `- warning: stored property '_id' of 'Sendable'-conforming class 'PostTag' is mutable; this is an error in the Swift 6 language mode
10 |
11 | @Parent(key: "post_id")
/host/spi-builder-workspace/Sources/App/Models/Scheme/SiteInfo.swift:9:9: warning: stored property '_id' of 'Sendable'-conforming class 'SiteInfo' is mutable; this is an error in the Swift 6 language mode
7 |
8 | @ID(custom: .id)
9 | var id: Int?
| `- warning: stored property '_id' of 'Sendable'-conforming class 'SiteInfo' is mutable; this is an error in the Swift 6 language mode
10 |
11 | @Field(key: "name")
/host/spi-builder-workspace/Sources/App/Models/Scheme/Tag.swift:9:9: warning: stored property '_id' of 'Sendable'-conforming class 'Tag' is mutable; this is an error in the Swift 6 language mode
7 |
8 | @ID(custom: .id)
9 | var id: Int?
| `- warning: stored property '_id' of 'Sendable'-conforming class 'Tag' is mutable; this is an error in the Swift 6 language mode
10 |
11 | @Field(key: "name")
/host/spi-builder-workspace/Sources/App/Models/Scheme/User.swift:11:9: warning: stored property '_id' of 'Sendable'-conforming class 'User' is mutable; this is an error in the Swift 6 language mode
9 |
10 | @ID(custom: .id)
11 | var id: Int?
| `- warning: stored property '_id' of 'Sendable'-conforming class 'User' is mutable; this is an error in the Swift 6 language mode
12 |
13 | @Field(key: "name")
/host/spi-builder-workspace/Sources/App/Routes/APIRoutes.swift:14:47: warning: converting non-sendable function value to '@Sendable (Request) throws -> EventLoopFuture<PageResponse<ImageGroup>>' may introduce data races
12 | do {
13 | let controller = API.ImageController()
14 | api.get("images", use: controller.index)
| `- warning: converting non-sendable function value to '@Sendable (Request) throws -> EventLoopFuture<PageResponse<ImageGroup>>' may introduce data races
15 | api.on(.POST, "images", body: .collect(maxSize: nil), use: controller.store)
16 | }
/host/spi-builder-workspace/Sources/App/Routes/APIRoutes.swift:15:83: warning: converting non-sendable function value to '@Sendable (Request) throws -> EventLoopFuture<Response>' may introduce data races
13 | let controller = API.ImageController()
14 | api.get("images", use: controller.index)
15 | api.on(.POST, "images", body: .collect(maxSize: nil), use: controller.store)
| `- warning: converting non-sendable function value to '@Sendable (Request) throws -> EventLoopFuture<Response>' may introduce data races
16 | }
17 |
/host/spi-builder-workspace/Sources/App/Routes/APIRoutes.swift:21:47: warning: converting non-sendable function value to '@Sendable (Request) throws -> EventLoopFuture<[Theme]>' may introduce data races
19 | do {
20 | let controller = API.ThemeController()
21 | api.get("themes", use: controller.index)
| `- warning: converting non-sendable function value to '@Sendable (Request) throws -> EventLoopFuture<[Theme]>' may introduce data races
22 | api.post("themes", use: controller.store)
23 | }
/host/spi-builder-workspace/Sources/App/Routes/APIRoutes.swift:22:48: warning: converting non-sendable function value to '@Sendable (Request) throws -> EventLoopFuture<Response>' may introduce data races
20 | let controller = API.ThemeController()
21 | api.get("themes", use: controller.index)
22 | api.post("themes", use: controller.store)
| `- warning: converting non-sendable function value to '@Sendable (Request) throws -> EventLoopFuture<Response>' may introduce data races
23 | }
24 |
/host/spi-builder-workspace/Sources/App/Routes/APIRoutes.swift:28:65: warning: converting non-sendable function value to '@Sendable (Request) throws -> EventLoopFuture<[EditableFileGroup]>' may introduce data races
26 | do {
27 | let controller = API.FileController()
28 | api.get("themes", ":name", "files", use: controller.index)
| `- warning: converting non-sendable function value to '@Sendable (Request) throws -> EventLoopFuture<[EditableFileGroup]>' may introduce data races
29 | api.get("files", use: controller.show)
30 | api.post("files", use: controller.store)
/host/spi-builder-workspace/Sources/App/Routes/APIRoutes.swift:29:46: warning: converting non-sendable function value to '@Sendable (Request) throws -> EventLoopFuture<EditableFileBody>' may introduce data races
27 | let controller = API.FileController()
28 | api.get("themes", ":name", "files", use: controller.index)
29 | api.get("files", use: controller.show)
| `- warning: converting non-sendable function value to '@Sendable (Request) throws -> EventLoopFuture<EditableFileBody>' may introduce data races
30 | api.post("files", use: controller.store)
31 | }
/host/spi-builder-workspace/Sources/App/Routes/APIRoutes.swift:30:47: warning: converting non-sendable function value to '@Sendable (Request) throws -> EventLoopFuture<Response>' may introduce data races
28 | api.get("themes", ":name", "files", use: controller.index)
29 | api.get("files", use: controller.show)
30 | api.post("files", use: controller.store)
| `- warning: converting non-sendable function value to '@Sendable (Request) throws -> EventLoopFuture<Response>' may introduce data races
31 | }
32 | }
[2874/2882] Compiling App SiteInfo.swift
/host/spi-builder-workspace/Sources/App/Models/Scheme/Category.swift:9:9: warning: stored property '_id' of 'Sendable'-conforming class 'Category' is mutable; this is an error in the Swift 6 language mode
7 |
8 | @ID(custom: .id)
9 | var id: Int?
| `- warning: stored property '_id' of 'Sendable'-conforming class 'Category' is mutable; this is an error in the Swift 6 language mode
10 |
11 | @Field(key: "name")
/host/spi-builder-workspace/Sources/App/Models/Scheme/Image.swift:9:9: warning: stored property '_id' of 'Sendable'-conforming class 'Image' is mutable; this is an error in the Swift 6 language mode
7 |
8 | @ID(custom: .id)
9 | var id: Int?
| `- warning: stored property '_id' of 'Sendable'-conforming class 'Image' is mutable; this is an error in the Swift 6 language mode
10 |
11 | @Field(key: "path")
/host/spi-builder-workspace/Sources/App/Models/Scheme/Post.swift:10:9: warning: stored property '_id' of 'Sendable'-conforming class 'Post' is mutable; this is an error in the Swift 6 language mode
8 |
9 | @ID(custom: .id)
10 | var id: Int?
| `- warning: stored property '_id' of 'Sendable'-conforming class 'Post' is mutable; this is an error in the Swift 6 language mode
11 |
12 | @Field(key: "title")
/host/spi-builder-workspace/Sources/App/Models/Scheme/Post.swift:137:42: warning: 'sql(raw:)' is deprecated: Renamed to `.sql(unsafeRaw:)`. Please use caution when embedding raw SQL.
135 | extension QueryBuilder where Model == Post {
136 | func publicAll() -> Self {
137 | return filter(\.$isPublished == .sql(raw: "1"))
| |- warning: 'sql(raw:)' is deprecated: Renamed to `.sql(unsafeRaw:)`. Please use caution when embedding raw SQL.
| `- note: use 'sql(unsafeRaw:)' instead
138 | }
139 |
/host/spi-builder-workspace/Sources/App/Models/Scheme/Post.swift:141:39: warning: 'sql(raw:)' is deprecated: Renamed to `.sql(unsafeRaw:)`. Please use caution when embedding raw SQL.
139 |
140 | func noStaticAll() -> Self {
141 | return filter(\.$isStatic == .sql(raw: "0"))
| |- warning: 'sql(raw:)' is deprecated: Renamed to `.sql(unsafeRaw:)`. Please use caution when embedding raw SQL.
| `- note: use 'sql(unsafeRaw:)' instead
142 | }
143 |
/host/spi-builder-workspace/Sources/App/Models/Scheme/Post.swift:145:39: warning: 'sql(raw:)' is deprecated: Renamed to `.sql(unsafeRaw:)`. Please use caution when embedding raw SQL.
143 |
144 | func staticAll() -> Self {
145 | return filter(\.$isStatic == .sql(raw: "1"))
| |- warning: 'sql(raw:)' is deprecated: Renamed to `.sql(unsafeRaw:)`. Please use caution when embedding raw SQL.
| `- note: use 'sql(unsafeRaw:)' instead
146 | }
147 |
/host/spi-builder-workspace/Sources/App/Models/Scheme/PostTag.swift:9:9: warning: stored property '_id' of 'Sendable'-conforming class 'PostTag' is mutable; this is an error in the Swift 6 language mode
7 |
8 | @ID(custom: .id)
9 | var id: Int?
| `- warning: stored property '_id' of 'Sendable'-conforming class 'PostTag' is mutable; this is an error in the Swift 6 language mode
10 |
11 | @Parent(key: "post_id")
/host/spi-builder-workspace/Sources/App/Models/Scheme/SiteInfo.swift:9:9: warning: stored property '_id' of 'Sendable'-conforming class 'SiteInfo' is mutable; this is an error in the Swift 6 language mode
7 |
8 | @ID(custom: .id)
9 | var id: Int?
| `- warning: stored property '_id' of 'Sendable'-conforming class 'SiteInfo' is mutable; this is an error in the Swift 6 language mode
10 |
11 | @Field(key: "name")
/host/spi-builder-workspace/Sources/App/Models/Scheme/Tag.swift:9:9: warning: stored property '_id' of 'Sendable'-conforming class 'Tag' is mutable; this is an error in the Swift 6 language mode
7 |
8 | @ID(custom: .id)
9 | var id: Int?
| `- warning: stored property '_id' of 'Sendable'-conforming class 'Tag' is mutable; this is an error in the Swift 6 language mode
10 |
11 | @Field(key: "name")
/host/spi-builder-workspace/Sources/App/Models/Scheme/User.swift:11:9: warning: stored property '_id' of 'Sendable'-conforming class 'User' is mutable; this is an error in the Swift 6 language mode
9 |
10 | @ID(custom: .id)
11 | var id: Int?
| `- warning: stored property '_id' of 'Sendable'-conforming class 'User' is mutable; this is an error in the Swift 6 language mode
12 |
13 | @Field(key: "name")
/host/spi-builder-workspace/Sources/App/Routes/APIRoutes.swift:14:47: warning: converting non-sendable function value to '@Sendable (Request) throws -> EventLoopFuture<PageResponse<ImageGroup>>' may introduce data races
12 | do {
13 | let controller = API.ImageController()
14 | api.get("images", use: controller.index)
| `- warning: converting non-sendable function value to '@Sendable (Request) throws -> EventLoopFuture<PageResponse<ImageGroup>>' may introduce data races
15 | api.on(.POST, "images", body: .collect(maxSize: nil), use: controller.store)
16 | }
/host/spi-builder-workspace/Sources/App/Routes/APIRoutes.swift:15:83: warning: converting non-sendable function value to '@Sendable (Request) throws -> EventLoopFuture<Response>' may introduce data races
13 | let controller = API.ImageController()
14 | api.get("images", use: controller.index)
15 | api.on(.POST, "images", body: .collect(maxSize: nil), use: controller.store)
| `- warning: converting non-sendable function value to '@Sendable (Request) throws -> EventLoopFuture<Response>' may introduce data races
16 | }
17 |
/host/spi-builder-workspace/Sources/App/Routes/APIRoutes.swift:21:47: warning: converting non-sendable function value to '@Sendable (Request) throws -> EventLoopFuture<[Theme]>' may introduce data races
19 | do {
20 | let controller = API.ThemeController()
21 | api.get("themes", use: controller.index)
| `- warning: converting non-sendable function value to '@Sendable (Request) throws -> EventLoopFuture<[Theme]>' may introduce data races
22 | api.post("themes", use: controller.store)
23 | }
/host/spi-builder-workspace/Sources/App/Routes/APIRoutes.swift:22:48: warning: converting non-sendable function value to '@Sendable (Request) throws -> EventLoopFuture<Response>' may introduce data races
20 | let controller = API.ThemeController()
21 | api.get("themes", use: controller.index)
22 | api.post("themes", use: controller.store)
| `- warning: converting non-sendable function value to '@Sendable (Request) throws -> EventLoopFuture<Response>' may introduce data races
23 | }
24 |
/host/spi-builder-workspace/Sources/App/Routes/APIRoutes.swift:28:65: warning: converting non-sendable function value to '@Sendable (Request) throws -> EventLoopFuture<[EditableFileGroup]>' may introduce data races
26 | do {
27 | let controller = API.FileController()
28 | api.get("themes", ":name", "files", use: controller.index)
| `- warning: converting non-sendable function value to '@Sendable (Request) throws -> EventLoopFuture<[EditableFileGroup]>' may introduce data races
29 | api.get("files", use: controller.show)
30 | api.post("files", use: controller.store)
/host/spi-builder-workspace/Sources/App/Routes/APIRoutes.swift:29:46: warning: converting non-sendable function value to '@Sendable (Request) throws -> EventLoopFuture<EditableFileBody>' may introduce data races
27 | let controller = API.FileController()
28 | api.get("themes", ":name", "files", use: controller.index)
29 | api.get("files", use: controller.show)
| `- warning: converting non-sendable function value to '@Sendable (Request) throws -> EventLoopFuture<EditableFileBody>' may introduce data races
30 | api.post("files", use: controller.store)
31 | }
/host/spi-builder-workspace/Sources/App/Routes/APIRoutes.swift:30:47: warning: converting non-sendable function value to '@Sendable (Request) throws -> EventLoopFuture<Response>' may introduce data races
28 | api.get("themes", ":name", "files", use: controller.index)
29 | api.get("files", use: controller.show)
30 | api.post("files", use: controller.store)
| `- warning: converting non-sendable function value to '@Sendable (Request) throws -> EventLoopFuture<Response>' may introduce data races
31 | }
32 | }
[2875/2882] Compiling App Tag.swift
/host/spi-builder-workspace/Sources/App/Models/Scheme/Category.swift:9:9: warning: stored property '_id' of 'Sendable'-conforming class 'Category' is mutable; this is an error in the Swift 6 language mode
7 |
8 | @ID(custom: .id)
9 | var id: Int?
| `- warning: stored property '_id' of 'Sendable'-conforming class 'Category' is mutable; this is an error in the Swift 6 language mode
10 |
11 | @Field(key: "name")
/host/spi-builder-workspace/Sources/App/Models/Scheme/Image.swift:9:9: warning: stored property '_id' of 'Sendable'-conforming class 'Image' is mutable; this is an error in the Swift 6 language mode
7 |
8 | @ID(custom: .id)
9 | var id: Int?
| `- warning: stored property '_id' of 'Sendable'-conforming class 'Image' is mutable; this is an error in the Swift 6 language mode
10 |
11 | @Field(key: "path")
/host/spi-builder-workspace/Sources/App/Models/Scheme/Post.swift:10:9: warning: stored property '_id' of 'Sendable'-conforming class 'Post' is mutable; this is an error in the Swift 6 language mode
8 |
9 | @ID(custom: .id)
10 | var id: Int?
| `- warning: stored property '_id' of 'Sendable'-conforming class 'Post' is mutable; this is an error in the Swift 6 language mode
11 |
12 | @Field(key: "title")
/host/spi-builder-workspace/Sources/App/Models/Scheme/Post.swift:137:42: warning: 'sql(raw:)' is deprecated: Renamed to `.sql(unsafeRaw:)`. Please use caution when embedding raw SQL.
135 | extension QueryBuilder where Model == Post {
136 | func publicAll() -> Self {
137 | return filter(\.$isPublished == .sql(raw: "1"))
| |- warning: 'sql(raw:)' is deprecated: Renamed to `.sql(unsafeRaw:)`. Please use caution when embedding raw SQL.
| `- note: use 'sql(unsafeRaw:)' instead
138 | }
139 |
/host/spi-builder-workspace/Sources/App/Models/Scheme/Post.swift:141:39: warning: 'sql(raw:)' is deprecated: Renamed to `.sql(unsafeRaw:)`. Please use caution when embedding raw SQL.
139 |
140 | func noStaticAll() -> Self {
141 | return filter(\.$isStatic == .sql(raw: "0"))
| |- warning: 'sql(raw:)' is deprecated: Renamed to `.sql(unsafeRaw:)`. Please use caution when embedding raw SQL.
| `- note: use 'sql(unsafeRaw:)' instead
142 | }
143 |
/host/spi-builder-workspace/Sources/App/Models/Scheme/Post.swift:145:39: warning: 'sql(raw:)' is deprecated: Renamed to `.sql(unsafeRaw:)`. Please use caution when embedding raw SQL.
143 |
144 | func staticAll() -> Self {
145 | return filter(\.$isStatic == .sql(raw: "1"))
| |- warning: 'sql(raw:)' is deprecated: Renamed to `.sql(unsafeRaw:)`. Please use caution when embedding raw SQL.
| `- note: use 'sql(unsafeRaw:)' instead
146 | }
147 |
/host/spi-builder-workspace/Sources/App/Models/Scheme/PostTag.swift:9:9: warning: stored property '_id' of 'Sendable'-conforming class 'PostTag' is mutable; this is an error in the Swift 6 language mode
7 |
8 | @ID(custom: .id)
9 | var id: Int?
| `- warning: stored property '_id' of 'Sendable'-conforming class 'PostTag' is mutable; this is an error in the Swift 6 language mode
10 |
11 | @Parent(key: "post_id")
/host/spi-builder-workspace/Sources/App/Models/Scheme/SiteInfo.swift:9:9: warning: stored property '_id' of 'Sendable'-conforming class 'SiteInfo' is mutable; this is an error in the Swift 6 language mode
7 |
8 | @ID(custom: .id)
9 | var id: Int?
| `- warning: stored property '_id' of 'Sendable'-conforming class 'SiteInfo' is mutable; this is an error in the Swift 6 language mode
10 |
11 | @Field(key: "name")
/host/spi-builder-workspace/Sources/App/Models/Scheme/Tag.swift:9:9: warning: stored property '_id' of 'Sendable'-conforming class 'Tag' is mutable; this is an error in the Swift 6 language mode
7 |
8 | @ID(custom: .id)
9 | var id: Int?
| `- warning: stored property '_id' of 'Sendable'-conforming class 'Tag' is mutable; this is an error in the Swift 6 language mode
10 |
11 | @Field(key: "name")
/host/spi-builder-workspace/Sources/App/Models/Scheme/User.swift:11:9: warning: stored property '_id' of 'Sendable'-conforming class 'User' is mutable; this is an error in the Swift 6 language mode
9 |
10 | @ID(custom: .id)
11 | var id: Int?
| `- warning: stored property '_id' of 'Sendable'-conforming class 'User' is mutable; this is an error in the Swift 6 language mode
12 |
13 | @Field(key: "name")
/host/spi-builder-workspace/Sources/App/Routes/APIRoutes.swift:14:47: warning: converting non-sendable function value to '@Sendable (Request) throws -> EventLoopFuture<PageResponse<ImageGroup>>' may introduce data races
12 | do {
13 | let controller = API.ImageController()
14 | api.get("images", use: controller.index)
| `- warning: converting non-sendable function value to '@Sendable (Request) throws -> EventLoopFuture<PageResponse<ImageGroup>>' may introduce data races
15 | api.on(.POST, "images", body: .collect(maxSize: nil), use: controller.store)
16 | }
/host/spi-builder-workspace/Sources/App/Routes/APIRoutes.swift:15:83: warning: converting non-sendable function value to '@Sendable (Request) throws -> EventLoopFuture<Response>' may introduce data races
13 | let controller = API.ImageController()
14 | api.get("images", use: controller.index)
15 | api.on(.POST, "images", body: .collect(maxSize: nil), use: controller.store)
| `- warning: converting non-sendable function value to '@Sendable (Request) throws -> EventLoopFuture<Response>' may introduce data races
16 | }
17 |
/host/spi-builder-workspace/Sources/App/Routes/APIRoutes.swift:21:47: warning: converting non-sendable function value to '@Sendable (Request) throws -> EventLoopFuture<[Theme]>' may introduce data races
19 | do {
20 | let controller = API.ThemeController()
21 | api.get("themes", use: controller.index)
| `- warning: converting non-sendable function value to '@Sendable (Request) throws -> EventLoopFuture<[Theme]>' may introduce data races
22 | api.post("themes", use: controller.store)
23 | }
/host/spi-builder-workspace/Sources/App/Routes/APIRoutes.swift:22:48: warning: converting non-sendable function value to '@Sendable (Request) throws -> EventLoopFuture<Response>' may introduce data races
20 | let controller = API.ThemeController()
21 | api.get("themes", use: controller.index)
22 | api.post("themes", use: controller.store)
| `- warning: converting non-sendable function value to '@Sendable (Request) throws -> EventLoopFuture<Response>' may introduce data races
23 | }
24 |
/host/spi-builder-workspace/Sources/App/Routes/APIRoutes.swift:28:65: warning: converting non-sendable function value to '@Sendable (Request) throws -> EventLoopFuture<[EditableFileGroup]>' may introduce data races
26 | do {
27 | let controller = API.FileController()
28 | api.get("themes", ":name", "files", use: controller.index)
| `- warning: converting non-sendable function value to '@Sendable (Request) throws -> EventLoopFuture<[EditableFileGroup]>' may introduce data races
29 | api.get("files", use: controller.show)
30 | api.post("files", use: controller.store)
/host/spi-builder-workspace/Sources/App/Routes/APIRoutes.swift:29:46: warning: converting non-sendable function value to '@Sendable (Request) throws -> EventLoopFuture<EditableFileBody>' may introduce data races
27 | let controller = API.FileController()
28 | api.get("themes", ":name", "files", use: controller.index)
29 | api.get("files", use: controller.show)
| `- warning: converting non-sendable function value to '@Sendable (Request) throws -> EventLoopFuture<EditableFileBody>' may introduce data races
30 | api.post("files", use: controller.store)
31 | }
/host/spi-builder-workspace/Sources/App/Routes/APIRoutes.swift:30:47: warning: converting non-sendable function value to '@Sendable (Request) throws -> EventLoopFuture<Response>' may introduce data races
28 | api.get("themes", ":name", "files", use: controller.index)
29 | api.get("files", use: controller.show)
30 | api.post("files", use: controller.store)
| `- warning: converting non-sendable function value to '@Sendable (Request) throws -> EventLoopFuture<Response>' may introduce data races
31 | }
32 | }
[2876/2882] Compiling App User.swift
/host/spi-builder-workspace/Sources/App/Models/Scheme/Category.swift:9:9: warning: stored property '_id' of 'Sendable'-conforming class 'Category' is mutable; this is an error in the Swift 6 language mode
7 |
8 | @ID(custom: .id)
9 | var id: Int?
| `- warning: stored property '_id' of 'Sendable'-conforming class 'Category' is mutable; this is an error in the Swift 6 language mode
10 |
11 | @Field(key: "name")
/host/spi-builder-workspace/Sources/App/Models/Scheme/Image.swift:9:9: warning: stored property '_id' of 'Sendable'-conforming class 'Image' is mutable; this is an error in the Swift 6 language mode
7 |
8 | @ID(custom: .id)
9 | var id: Int?
| `- warning: stored property '_id' of 'Sendable'-conforming class 'Image' is mutable; this is an error in the Swift 6 language mode
10 |
11 | @Field(key: "path")
/host/spi-builder-workspace/Sources/App/Models/Scheme/Post.swift:10:9: warning: stored property '_id' of 'Sendable'-conforming class 'Post' is mutable; this is an error in the Swift 6 language mode
8 |
9 | @ID(custom: .id)
10 | var id: Int?
| `- warning: stored property '_id' of 'Sendable'-conforming class 'Post' is mutable; this is an error in the Swift 6 language mode
11 |
12 | @Field(key: "title")
/host/spi-builder-workspace/Sources/App/Models/Scheme/Post.swift:137:42: warning: 'sql(raw:)' is deprecated: Renamed to `.sql(unsafeRaw:)`. Please use caution when embedding raw SQL.
135 | extension QueryBuilder where Model == Post {
136 | func publicAll() -> Self {
137 | return filter(\.$isPublished == .sql(raw: "1"))
| |- warning: 'sql(raw:)' is deprecated: Renamed to `.sql(unsafeRaw:)`. Please use caution when embedding raw SQL.
| `- note: use 'sql(unsafeRaw:)' instead
138 | }
139 |
/host/spi-builder-workspace/Sources/App/Models/Scheme/Post.swift:141:39: warning: 'sql(raw:)' is deprecated: Renamed to `.sql(unsafeRaw:)`. Please use caution when embedding raw SQL.
139 |
140 | func noStaticAll() -> Self {
141 | return filter(\.$isStatic == .sql(raw: "0"))
| |- warning: 'sql(raw:)' is deprecated: Renamed to `.sql(unsafeRaw:)`. Please use caution when embedding raw SQL.
| `- note: use 'sql(unsafeRaw:)' instead
142 | }
143 |
/host/spi-builder-workspace/Sources/App/Models/Scheme/Post.swift:145:39: warning: 'sql(raw:)' is deprecated: Renamed to `.sql(unsafeRaw:)`. Please use caution when embedding raw SQL.
143 |
144 | func staticAll() -> Self {
145 | return filter(\.$isStatic == .sql(raw: "1"))
| |- warning: 'sql(raw:)' is deprecated: Renamed to `.sql(unsafeRaw:)`. Please use caution when embedding raw SQL.
| `- note: use 'sql(unsafeRaw:)' instead
146 | }
147 |
/host/spi-builder-workspace/Sources/App/Models/Scheme/PostTag.swift:9:9: warning: stored property '_id' of 'Sendable'-conforming class 'PostTag' is mutable; this is an error in the Swift 6 language mode
7 |
8 | @ID(custom: .id)
9 | var id: Int?
| `- warning: stored property '_id' of 'Sendable'-conforming class 'PostTag' is mutable; this is an error in the Swift 6 language mode
10 |
11 | @Parent(key: "post_id")
/host/spi-builder-workspace/Sources/App/Models/Scheme/SiteInfo.swift:9:9: warning: stored property '_id' of 'Sendable'-conforming class 'SiteInfo' is mutable; this is an error in the Swift 6 language mode
7 |
8 | @ID(custom: .id)
9 | var id: Int?
| `- warning: stored property '_id' of 'Sendable'-conforming class 'SiteInfo' is mutable; this is an error in the Swift 6 language mode
10 |
11 | @Field(key: "name")
/host/spi-builder-workspace/Sources/App/Models/Scheme/Tag.swift:9:9: warning: stored property '_id' of 'Sendable'-conforming class 'Tag' is mutable; this is an error in the Swift 6 language mode
7 |
8 | @ID(custom: .id)
9 | var id: Int?
| `- warning: stored property '_id' of 'Sendable'-conforming class 'Tag' is mutable; this is an error in the Swift 6 language mode
10 |
11 | @Field(key: "name")
/host/spi-builder-workspace/Sources/App/Models/Scheme/User.swift:11:9: warning: stored property '_id' of 'Sendable'-conforming class 'User' is mutable; this is an error in the Swift 6 language mode
9 |
10 | @ID(custom: .id)
11 | var id: Int?
| `- warning: stored property '_id' of 'Sendable'-conforming class 'User' is mutable; this is an error in the Swift 6 language mode
12 |
13 | @Field(key: "name")
/host/spi-builder-workspace/Sources/App/Routes/APIRoutes.swift:14:47: warning: converting non-sendable function value to '@Sendable (Request) throws -> EventLoopFuture<PageResponse<ImageGroup>>' may introduce data races
12 | do {
13 | let controller = API.ImageController()
14 | api.get("images", use: controller.index)
| `- warning: converting non-sendable function value to '@Sendable (Request) throws -> EventLoopFuture<PageResponse<ImageGroup>>' may introduce data races
15 | api.on(.POST, "images", body: .collect(maxSize: nil), use: controller.store)
16 | }
/host/spi-builder-workspace/Sources/App/Routes/APIRoutes.swift:15:83: warning: converting non-sendable function value to '@Sendable (Request) throws -> EventLoopFuture<Response>' may introduce data races
13 | let controller = API.ImageController()
14 | api.get("images", use: controller.index)
15 | api.on(.POST, "images", body: .collect(maxSize: nil), use: controller.store)
| `- warning: converting non-sendable function value to '@Sendable (Request) throws -> EventLoopFuture<Response>' may introduce data races
16 | }
17 |
/host/spi-builder-workspace/Sources/App/Routes/APIRoutes.swift:21:47: warning: converting non-sendable function value to '@Sendable (Request) throws -> EventLoopFuture<[Theme]>' may introduce data races
19 | do {
20 | let controller = API.ThemeController()
21 | api.get("themes", use: controller.index)
| `- warning: converting non-sendable function value to '@Sendable (Request) throws -> EventLoopFuture<[Theme]>' may introduce data races
22 | api.post("themes", use: controller.store)
23 | }
/host/spi-builder-workspace/Sources/App/Routes/APIRoutes.swift:22:48: warning: converting non-sendable function value to '@Sendable (Request) throws -> EventLoopFuture<Response>' may introduce data races
20 | let controller = API.ThemeController()
21 | api.get("themes", use: controller.index)
22 | api.post("themes", use: controller.store)
| `- warning: converting non-sendable function value to '@Sendable (Request) throws -> EventLoopFuture<Response>' may introduce data races
23 | }
24 |
/host/spi-builder-workspace/Sources/App/Routes/APIRoutes.swift:28:65: warning: converting non-sendable function value to '@Sendable (Request) throws -> EventLoopFuture<[EditableFileGroup]>' may introduce data races
26 | do {
27 | let controller = API.FileController()
28 | api.get("themes", ":name", "files", use: controller.index)
| `- warning: converting non-sendable function value to '@Sendable (Request) throws -> EventLoopFuture<[EditableFileGroup]>' may introduce data races
29 | api.get("files", use: controller.show)
30 | api.post("files", use: controller.store)
/host/spi-builder-workspace/Sources/App/Routes/APIRoutes.swift:29:46: warning: converting non-sendable function value to '@Sendable (Request) throws -> EventLoopFuture<EditableFileBody>' may introduce data races
27 | let controller = API.FileController()
28 | api.get("themes", ":name", "files", use: controller.index)
29 | api.get("files", use: controller.show)
| `- warning: converting non-sendable function value to '@Sendable (Request) throws -> EventLoopFuture<EditableFileBody>' may introduce data races
30 | api.post("files", use: controller.store)
31 | }
/host/spi-builder-workspace/Sources/App/Routes/APIRoutes.swift:30:47: warning: converting non-sendable function value to '@Sendable (Request) throws -> EventLoopFuture<Response>' may introduce data races
28 | api.get("themes", ":name", "files", use: controller.index)
29 | api.get("files", use: controller.show)
30 | api.post("files", use: controller.store)
| `- warning: converting non-sendable function value to '@Sendable (Request) throws -> EventLoopFuture<Response>' may introduce data races
31 | }
32 | }
[2877/2882] Compiling App APIRoutes.swift
/host/spi-builder-workspace/Sources/App/Models/Scheme/Category.swift:9:9: warning: stored property '_id' of 'Sendable'-conforming class 'Category' is mutable; this is an error in the Swift 6 language mode
7 |
8 | @ID(custom: .id)
9 | var id: Int?
| `- warning: stored property '_id' of 'Sendable'-conforming class 'Category' is mutable; this is an error in the Swift 6 language mode
10 |
11 | @Field(key: "name")
/host/spi-builder-workspace/Sources/App/Models/Scheme/Image.swift:9:9: warning: stored property '_id' of 'Sendable'-conforming class 'Image' is mutable; this is an error in the Swift 6 language mode
7 |
8 | @ID(custom: .id)
9 | var id: Int?
| `- warning: stored property '_id' of 'Sendable'-conforming class 'Image' is mutable; this is an error in the Swift 6 language mode
10 |
11 | @Field(key: "path")
/host/spi-builder-workspace/Sources/App/Models/Scheme/Post.swift:10:9: warning: stored property '_id' of 'Sendable'-conforming class 'Post' is mutable; this is an error in the Swift 6 language mode
8 |
9 | @ID(custom: .id)
10 | var id: Int?
| `- warning: stored property '_id' of 'Sendable'-conforming class 'Post' is mutable; this is an error in the Swift 6 language mode
11 |
12 | @Field(key: "title")
/host/spi-builder-workspace/Sources/App/Models/Scheme/Post.swift:137:42: warning: 'sql(raw:)' is deprecated: Renamed to `.sql(unsafeRaw:)`. Please use caution when embedding raw SQL.
135 | extension QueryBuilder where Model == Post {
136 | func publicAll() -> Self {
137 | return filter(\.$isPublished == .sql(raw: "1"))
| |- warning: 'sql(raw:)' is deprecated: Renamed to `.sql(unsafeRaw:)`. Please use caution when embedding raw SQL.
| `- note: use 'sql(unsafeRaw:)' instead
138 | }
139 |
/host/spi-builder-workspace/Sources/App/Models/Scheme/Post.swift:141:39: warning: 'sql(raw:)' is deprecated: Renamed to `.sql(unsafeRaw:)`. Please use caution when embedding raw SQL.
139 |
140 | func noStaticAll() -> Self {
141 | return filter(\.$isStatic == .sql(raw: "0"))
| |- warning: 'sql(raw:)' is deprecated: Renamed to `.sql(unsafeRaw:)`. Please use caution when embedding raw SQL.
| `- note: use 'sql(unsafeRaw:)' instead
142 | }
143 |
/host/spi-builder-workspace/Sources/App/Models/Scheme/Post.swift:145:39: warning: 'sql(raw:)' is deprecated: Renamed to `.sql(unsafeRaw:)`. Please use caution when embedding raw SQL.
143 |
144 | func staticAll() -> Self {
145 | return filter(\.$isStatic == .sql(raw: "1"))
| |- warning: 'sql(raw:)' is deprecated: Renamed to `.sql(unsafeRaw:)`. Please use caution when embedding raw SQL.
| `- note: use 'sql(unsafeRaw:)' instead
146 | }
147 |
/host/spi-builder-workspace/Sources/App/Models/Scheme/PostTag.swift:9:9: warning: stored property '_id' of 'Sendable'-conforming class 'PostTag' is mutable; this is an error in the Swift 6 language mode
7 |
8 | @ID(custom: .id)
9 | var id: Int?
| `- warning: stored property '_id' of 'Sendable'-conforming class 'PostTag' is mutable; this is an error in the Swift 6 language mode
10 |
11 | @Parent(key: "post_id")
/host/spi-builder-workspace/Sources/App/Models/Scheme/SiteInfo.swift:9:9: warning: stored property '_id' of 'Sendable'-conforming class 'SiteInfo' is mutable; this is an error in the Swift 6 language mode
7 |
8 | @ID(custom: .id)
9 | var id: Int?
| `- warning: stored property '_id' of 'Sendable'-conforming class 'SiteInfo' is mutable; this is an error in the Swift 6 language mode
10 |
11 | @Field(key: "name")
/host/spi-builder-workspace/Sources/App/Models/Scheme/Tag.swift:9:9: warning: stored property '_id' of 'Sendable'-conforming class 'Tag' is mutable; this is an error in the Swift 6 language mode
7 |
8 | @ID(custom: .id)
9 | var id: Int?
| `- warning: stored property '_id' of 'Sendable'-conforming class 'Tag' is mutable; this is an error in the Swift 6 language mode
10 |
11 | @Field(key: "name")
/host/spi-builder-workspace/Sources/App/Models/Scheme/User.swift:11:9: warning: stored property '_id' of 'Sendable'-conforming class 'User' is mutable; this is an error in the Swift 6 language mode
9 |
10 | @ID(custom: .id)
11 | var id: Int?
| `- warning: stored property '_id' of 'Sendable'-conforming class 'User' is mutable; this is an error in the Swift 6 language mode
12 |
13 | @Field(key: "name")
/host/spi-builder-workspace/Sources/App/Routes/APIRoutes.swift:14:47: warning: converting non-sendable function value to '@Sendable (Request) throws -> EventLoopFuture<PageResponse<ImageGroup>>' may introduce data races
12 | do {
13 | let controller = API.ImageController()
14 | api.get("images", use: controller.index)
| `- warning: converting non-sendable function value to '@Sendable (Request) throws -> EventLoopFuture<PageResponse<ImageGroup>>' may introduce data races
15 | api.on(.POST, "images", body: .collect(maxSize: nil), use: controller.store)
16 | }
/host/spi-builder-workspace/Sources/App/Routes/APIRoutes.swift:15:83: warning: converting non-sendable function value to '@Sendable (Request) throws -> EventLoopFuture<Response>' may introduce data races
13 | let controller = API.ImageController()
14 | api.get("images", use: controller.index)
15 | api.on(.POST, "images", body: .collect(maxSize: nil), use: controller.store)
| `- warning: converting non-sendable function value to '@Sendable (Request) throws -> EventLoopFuture<Response>' may introduce data races
16 | }
17 |
/host/spi-builder-workspace/Sources/App/Routes/APIRoutes.swift:21:47: warning: converting non-sendable function value to '@Sendable (Request) throws -> EventLoopFuture<[Theme]>' may introduce data races
19 | do {
20 | let controller = API.ThemeController()
21 | api.get("themes", use: controller.index)
| `- warning: converting non-sendable function value to '@Sendable (Request) throws -> EventLoopFuture<[Theme]>' may introduce data races
22 | api.post("themes", use: controller.store)
23 | }
/host/spi-builder-workspace/Sources/App/Routes/APIRoutes.swift:22:48: warning: converting non-sendable function value to '@Sendable (Request) throws -> EventLoopFuture<Response>' may introduce data races
20 | let controller = API.ThemeController()
21 | api.get("themes", use: controller.index)
22 | api.post("themes", use: controller.store)
| `- warning: converting non-sendable function value to '@Sendable (Request) throws -> EventLoopFuture<Response>' may introduce data races
23 | }
24 |
/host/spi-builder-workspace/Sources/App/Routes/APIRoutes.swift:28:65: warning: converting non-sendable function value to '@Sendable (Request) throws -> EventLoopFuture<[EditableFileGroup]>' may introduce data races
26 | do {
27 | let controller = API.FileController()
28 | api.get("themes", ":name", "files", use: controller.index)
| `- warning: converting non-sendable function value to '@Sendable (Request) throws -> EventLoopFuture<[EditableFileGroup]>' may introduce data races
29 | api.get("files", use: controller.show)
30 | api.post("files", use: controller.store)
/host/spi-builder-workspace/Sources/App/Routes/APIRoutes.swift:29:46: warning: converting non-sendable function value to '@Sendable (Request) throws -> EventLoopFuture<EditableFileBody>' may introduce data races
27 | let controller = API.FileController()
28 | api.get("themes", ":name", "files", use: controller.index)
29 | api.get("files", use: controller.show)
| `- warning: converting non-sendable function value to '@Sendable (Request) throws -> EventLoopFuture<EditableFileBody>' may introduce data races
30 | api.post("files", use: controller.store)
31 | }
/host/spi-builder-workspace/Sources/App/Routes/APIRoutes.swift:30:47: warning: converting non-sendable function value to '@Sendable (Request) throws -> EventLoopFuture<Response>' may introduce data races
28 | api.get("themes", ":name", "files", use: controller.index)
29 | api.get("files", use: controller.show)
30 | api.post("files", use: controller.store)
| `- warning: converting non-sendable function value to '@Sendable (Request) throws -> EventLoopFuture<Response>' may introduce data races
31 | }
32 | }
[2878/2882] Emitting module App
/host/spi-builder-workspace/Sources/App/Application/Services/Helper/ImageNameGenerator.swift:16:1: warning: type 'any ImageNameGeneratorKey.Value' (aka 'any ImageNameGenerator') does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
2 | import Vapor
3 |
4 | protocol ImageNameGenerator {
| `- note: protocol 'ImageNameGenerator' does not conform to the 'Sendable' protocol
5 | func generateImageName(from string: String) throws -> String
6 | }
:
14 | struct ImageNameGeneratorKey {}
15 |
16 | extension ImageNameGeneratorKey: StorageKey {
| `- warning: type 'any ImageNameGeneratorKey.Value' (aka 'any ImageNameGenerator') does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
17 | typealias Value = ImageNameGenerator
18 | }
/host/spi-builder-workspace/Sources/App/Application/Services/Repository/FileRepository.swift:79:1: warning: type 'any FileRepositoryKey.Value' (aka 'any FileRepository') does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
1 | import Vapor
2 |
3 | protocol FileRepository {
| `- note: protocol 'FileRepository' does not conform to the 'Sendable' protocol
4 | func allThemes() throws -> [String]
5 | func isExistTheme(name: String) -> Bool
:
77 | struct FileRepositoryKey {}
78 |
79 | extension FileRepositoryKey: StorageKey {
| `- warning: type 'any FileRepositoryKey.Value' (aka 'any FileRepository') does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
80 | typealias Value = FileRepository
81 | }
/host/spi-builder-workspace/Sources/App/Application/Services/Repository/ImageRepository.swift:52:1: warning: type 'any ImageRepositoryKey.Value' (aka 'any ImageRepository') does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
2 | import Vapor
3 |
4 | protocol ImageRepository {
| `- note: protocol 'ImageRepository' does not conform to the 'Sendable' protocol
5 |
6 | func isExist(at name: String) -> Bool
:
50 | struct ImageRepositoryKey {}
51 |
52 | extension ImageRepositoryKey: StorageKey {
| `- warning: type 'any ImageRepositoryKey.Value' (aka 'any ImageRepository') does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
53 | typealias Value = ImageRepository
54 | }
/host/spi-builder-workspace/Sources/App/Application/Services/Repository/TwitterRepository.swift:45:1: warning: type 'any TwitterRepositoryKey.Value' (aka 'any TwitterRepository') does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
2 | import Vapor
3 |
4 | protocol TwitterRepository {
| `- note: protocol 'TwitterRepository' does not conform to the 'Sendable' protocol
5 | func post(_ post: Post, on request: Request) throws
6 | }
:
43 | struct TwitterRepositoryKey {}
44 |
45 | extension TwitterRepositoryKey: StorageKey {
| `- warning: type 'any TwitterRepositoryKey.Value' (aka 'any TwitterRepository') does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
46 | typealias Value = TwitterRepository
47 | }
/host/spi-builder-workspace/Sources/App/Application/Services/View/ViewCreator.swift:58:1: warning: type 'ViewCreator.Value' (aka 'ViewCreator') does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
3 | import Vapor
4 |
5 | final class ViewCreator {
| `- note: class 'ViewCreator' does not conform to the 'Sendable' protocol
6 |
7 | let decorators: [ViewDecorator]
:
56 | }
57 |
58 | extension ViewCreator: StorageKey {
| `- warning: type 'ViewCreator.Value' (aka 'ViewCreator') does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
59 | typealias Value = ViewCreator
60 | }
/host/spi-builder-workspace/Sources/App/Models/Scheme/Category.swift:9:9: warning: stored property '_id' of 'Sendable'-conforming class 'Category' is mutable; this is an error in the Swift 6 language mode
7 |
8 | @ID(custom: .id)
9 | var id: Int?
| `- warning: stored property '_id' of 'Sendable'-conforming class 'Category' is mutable; this is an error in the Swift 6 language mode
10 |
11 | @Field(key: "name")
/host/spi-builder-workspace/Sources/App/Models/Scheme/Image.swift:9:9: warning: stored property '_id' of 'Sendable'-conforming class 'Image' is mutable; this is an error in the Swift 6 language mode
7 |
8 | @ID(custom: .id)
9 | var id: Int?
| `- warning: stored property '_id' of 'Sendable'-conforming class 'Image' is mutable; this is an error in the Swift 6 language mode
10 |
11 | @Field(key: "path")
/host/spi-builder-workspace/Sources/App/Models/Scheme/Post.swift:10:9: warning: stored property '_id' of 'Sendable'-conforming class 'Post' is mutable; this is an error in the Swift 6 language mode
8 |
9 | @ID(custom: .id)
10 | var id: Int?
| `- warning: stored property '_id' of 'Sendable'-conforming class 'Post' is mutable; this is an error in the Swift 6 language mode
11 |
12 | @Field(key: "title")
/host/spi-builder-workspace/Sources/App/Models/Scheme/PostTag.swift:9:9: warning: stored property '_id' of 'Sendable'-conforming class 'PostTag' is mutable; this is an error in the Swift 6 language mode
7 |
8 | @ID(custom: .id)
9 | var id: Int?
| `- warning: stored property '_id' of 'Sendable'-conforming class 'PostTag' is mutable; this is an error in the Swift 6 language mode
10 |
11 | @Parent(key: "post_id")
/host/spi-builder-workspace/Sources/App/Models/Scheme/SiteInfo.swift:9:9: warning: stored property '_id' of 'Sendable'-conforming class 'SiteInfo' is mutable; this is an error in the Swift 6 language mode
7 |
8 | @ID(custom: .id)
9 | var id: Int?
| `- warning: stored property '_id' of 'Sendable'-conforming class 'SiteInfo' is mutable; this is an error in the Swift 6 language mode
10 |
11 | @Field(key: "name")
/host/spi-builder-workspace/Sources/App/Models/Scheme/Tag.swift:9:9: warning: stored property '_id' of 'Sendable'-conforming class 'Tag' is mutable; this is an error in the Swift 6 language mode
7 |
8 | @ID(custom: .id)
9 | var id: Int?
| `- warning: stored property '_id' of 'Sendable'-conforming class 'Tag' is mutable; this is an error in the Swift 6 language mode
10 |
11 | @Field(key: "name")
/host/spi-builder-workspace/Sources/App/Models/Scheme/User.swift:11:9: warning: stored property '_id' of 'Sendable'-conforming class 'User' is mutable; this is an error in the Swift 6 language mode
9 |
10 | @ID(custom: .id)
11 | var id: Int?
| `- warning: stored property '_id' of 'Sendable'-conforming class 'User' is mutable; this is an error in the Swift 6 language mode
12 |
13 | @Field(key: "name")
/host/spi-builder-workspace/Sources/App/Views/Tags/LeafTags.swift:15:24: warning: static property 'decodeFormatter' is not concurrency-safe because non-'Sendable' type 'ISO8601DateFormatter' may have shared mutable state; this is an error in the Swift 6 language mode
13 | struct DateTag: LeafTag {
14 |
15 | private static let decodeFormatter = ISO8601DateFormatter()
| |- warning: static property 'decodeFormatter' is not concurrency-safe because non-'Sendable' type 'ISO8601DateFormatter' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'decodeFormatter' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
16 |
17 | func render(_ ctx: LeafContext) throws -> LeafData {
Foundation.ISO8601DateFormatter:1:12: note: class 'ISO8601DateFormatter' does not conform to the 'Sendable' protocol
1 | open class ISO8601DateFormatter : Formatter, NSSecureCoding {
| `- note: class 'ISO8601DateFormatter' does not conform to the 'Sendable' protocol
2 | open var timeZone: TimeZone! { get set }
3 | open var formatOptions: ISO8601DateFormatter.Options { get set }
BUILD FAILURE 6.0 linux