Skip to content

Release 1.7.0 failed to compile with swift 5.9 #845

@xiazhvera

Description

@xiazhvera

Compile failed with swfit 5.9 on latest release 1.7.0.

ArgumentParser version: 1.7.0
Swift version: 5.9

Checklist

  • If possible, I've reproduced the issue using the main branch of this package
  • I've searched for existing GitHub issues

Steps to Reproduce

We got following compile error with latest release 1.7.0 (https://github.com/apple/swift-argument-parser/releases/tag/1.7.0)

[305/390] Compiling ArgumentParser ArgumentSet.swift
--
/private/tmp/codebuild-6ded34a5-c198-4684-8596-425fb8e3f0a8/output/src204/src/github.com/awslabs/aws-crt-swift/.build/checkouts/swift-argument-parser/Sources/ArgumentParser/Parsing/CommandParser.swift:18:17: remark: '@preconcurrency' attribute on module 'Dispatch' is unused
@preconcurrency import class Dispatch.DispatchSemaphore
~~~~~~~~~~~~~~~~^
[306/390] Compiling ArgumentParser CommandParser.swift
/private/tmp/codebuild-6ded34a5-c198-4684-8596-425fb8e3f0a8/output/src204/src/github.com/awslabs/aws-crt-swift/.build/checkouts/swift-argument-parser/Sources/ArgumentParser/Parsing/CommandParser.swift:18:17: remark: '@preconcurrency' attribute on module 'Dispatch' is unused
@preconcurrency import class Dispatch.DispatchSemaphore
~~~~~~~~~~~~~~~~^
[307/390] Compiling ArgumentParser InputKey.swift
/private/tmp/codebuild-6ded34a5-c198-4684-8596-425fb8e3f0a8/output/src204/src/github.com/awslabs/aws-crt-swift/.build/checkouts/swift-argument-parser/Sources/ArgumentParser/Parsing/CommandParser.swift:18:17: remark: '@preconcurrency' attribute on module 'Dispatch' is unused
@preconcurrency import class Dispatch.DispatchSemaphore
~~~~~~~~~~~~~~~~^


Expected behavior

Compiled properly with swift 5.7+, which is declared as the minimal supported version.

Actual behavior

Failed to compile with swift 5.9.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions