Skip to content

Fix a compilation error - #2119

Merged
jglogan merged 2 commits into
mainfrom
error
Aug 14, 2026
Merged

Fix a compilation error#2119
jglogan merged 2 commits into
mainfrom
error

Conversation

@dkovba

@dkovba dkovba commented Aug 14, 2026

Copy link
Copy Markdown
Contributor

Type of Change

  • Bug fix

Motivation and Context

Fixes a compilation error:

error: SwiftCompile normal arm64 .../Sources/ContainerBuild/Builder.swift failed with a nonzero exit code. Command line:     cd ...
    builtin-SwiftPerFileCompile Builder.swift
.../Sources/ContainerBuild/Builder.swift:111:13: error: unstructured throwing task created by 'init(name:priority:operation:)' is not used, which may accidentally ignore errors thrown inside the task [#NoUseUnstructuredThrowingTask]
109 | 
110 |         if let terminal = config.terminal {
111 |             Task {
    |             |- error: unstructured throwing task created by 'init(name:priority:operation:)' is not used, which may accidentally ignore errors thrown inside the task [#NoUseUnstructuredThrowingTask]
    |             `- note: to silence this warning, handle the error inside the task, or store/discard the task value explicitly
112 |                 let winchHandler = AsyncSignalHandler.create(notify: [SIGWINCH])
113 |                 let setWinch = { (rows: UInt16, cols: UInt16) in

Also, fixes compilation warnings:

.../Sources/Plugins/RuntimeLinux/RuntimeLinuxHelper+Start.swift:46:13: warning: cannot use struct 'FilePath' in a property declaration member of a type not marked '@_implementationOnly'; 'SystemPackage' was not imported by this file
 44 |         var root: String
 45 | 
 46 |         var logRoot = LogRoot.path
    |             `- warning: cannot use struct 'FilePath' in a property declaration member of a type not marked '@_implementationOnly'; 'SystemPackage' was not imported by this file
 47 | 
 48 |         var machServiceLabel: String {

SystemPackage.FilePath:2:15: note: struct declared here
1 | @available(macOS 10.10, iOS 8.0, watchOS 2.0, tvOS 9.0, visionOS 1.0, *)
2 | public struct FilePath : Sendable {
  |               `- note: struct declared here
3 |     public init()
4 | }
.../Sources/Plugins/NetworkVmnet/NetworkVmnetHelper+Start.swift:70:13: warning: cannot use struct 'FilePath' in a property declaration member of a type not marked '@_implementationOnly'; 'SystemPackage' was not imported by this file
 68 |         }()
 69 | 
 70 |         var logRoot = LogRoot.path
    |             `- warning: cannot use struct 'FilePath' in a property declaration member of a type not marked '@_implementationOnly'; 'SystemPackage' was not imported by this file
 71 | 
 72 |         func run() async throws {

SystemPackage.FilePath:2:15: note: struct declared here
1 | @available(macOS 10.10, iOS 8.0, watchOS 2.0, tvOS 9.0, visionOS 1.0, *)
2 | public struct FilePath : Sendable {
  |               `- note: struct declared here
3 |     public init()
4 | }

Testing

  • Tested locally

@dkovba
dkovba requested a review from jglogan August 14, 2026 00:45
@github-actions

Copy link
Copy Markdown

Code Coverage

Tier Line Coverage
Unit 24.29%
Integration 66.86%
Combined 76.23%

@jglogan
jglogan merged commit 7d4ffb6 into main Aug 14, 2026
4 checks passed
@jglogan
jglogan deleted the error branch August 14, 2026 03:03
This was referenced Sep 3, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants