Skip to content

The Vapor example uses deprecated APIs and should be updated #61

Closed
@euanh

Description

@euanh
/home/runner/work/swift-container-plugin/swift-container-plugin/Examples/HelloWorldVapor/Sources/main.swift:20:15: warning: 'init(_:_:)' is deprecated: Migrate to using the async APIs. Use use Application.make(_:_:) instead
18 | let myos = ProcessInfo.processInfo.operatingSystemVersionString
19 | 
20 | let app = try Application(.detect())
   |               `- warning: 'init(_:_:)' is deprecated: Migrate to using the async APIs. Use use Application.make(_:_:) instead
21 | app.http.server.configuration.hostname = "0.0.0.0"
22 | defer { app.shutdown() }
[2262/2265] Compiling hello_world main.swift
/home/runner/work/swift-container-plugin/swift-container-plugin/Examples/HelloWorldVapor/Sources/main.swift:20:15: warning: 'init(_:_:)' is deprecated: Migrate to using the async APIs. Use use Application.make(_:_:) instead
18 | let myos = ProcessInfo.processInfo.operatingSystemVersionString
19 | 
20 | let app = try Application(.detect())
   |               `- warning: 'init(_:_:)' is deprecated: Migrate to using the async APIs. Use use Application.make(_:_:) instead
21 | app.http.server.configuration.hostname = "0.0.0.0"
22 | defer { app.shutdown() }
[2263/2266] Wrapping AST for hello-world for debugging
[2264/2266] Write Objects.LinkFileList
clang: warning: argument unused during compilation: '-pie' [-Wunused-command-line-argument]

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions