Skip to content

PR #414 broke displaying packages with different name from id #425

Closed
@adam-fowler

Description

@adam-fowler

Describe the bug
SwiftPM versions using Package.resolved format version 1 (ie 5.5 or earlier) do not deal with packages that have the different name and id. This appears to have been caused by PR#414

To Reproduce
This package does not show the realm dependencies

// swift-tools-version:5.3
import PackageDescription

let package = Package(
    name: "my-package",
    products: [
        // Products define the executables and libraries a package produces, and make them visible to other packages.
        .library(name: "my-package", targets: ["my-package"]),
    ],
    dependencies: [
        .package(url: "https://github.com/realm/realm-swift", .upToNextMajor(from: "10.28.0")),
    ],
    targets: [
        .target(name: "my-package", dependencies: ["realm-swift"])
    ]
)

cc @stevapple

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions