运行 'swift build' 当依赖名称等于项目名称时崩溃并出现分段错误

Running 'swift build' crashes with segmentation fault when dependency name equals project's name

示例:

> mkdir myProject && cd myProject
> swift package init --type executable

编辑Package.swift(添加了 1 个依赖项):

// swift-tools-version:4.0
// The swift-tools-version declares the minimum version of Swift required to build this package.

import PackageDescription

let package = Package(
    name: "myProject",
    dependencies: [
        // Dependencies declare other packages that this package depends on. 
        // .package(url: /* package url */, from: "1.0.0"),
        .package(url: "https://github.com/someone/myProject.git", from: "1.0.0"),
    ],  
    targets: [
        // Targets are the basic building blocks of a package. A target can define a module or a test suite.
        // Targets can depend on other targets in this package, and on products in packages which this package depends on. 
        .target(
            name: "myProject",
            dependencies: []),
    ]   
)

构建它:

> swift build
Segmentation fault (core dumped)

环境

有人知道这是否是最近引入的 and/or 其他版本的 swift 也会出现这种情况吗?

这是一个错误:

Swift 漏洞 SR-7597

https://bugs.swift.org/browse/SR-7597