Skip to content

Swift Package Index is overcounting package dependencies #3591

@tayloraswift

Description

@tayloraswift

Which package(s) are showing incorrect data?

hey guys, i noticed a while back that Swift Package Index is overcounting package dependencies, and wanted to open this issue to finally start discussions about resolving this issue.

the current formula is rather unfavorable towards my libraries, because they count every transitive dependency reachable from the Package.swift manifest, regardless of whether they are actually included in the library or not.

in the case of swift-bson, the library has two truthful dependencies (swift-unixtime and swift-grammar), and Swift Package Index seems to be augmenting that count with swift-hash and swift-atomics.

  • swift-hash is part of an overlay module BSON_UUID, which is provided for user convenience and is not part of the core library (BSON).

  • swift-atomics is a dependency of the Testing_ module in swift-grammar, which swift-bson does not use at all.

this is a concern to me, because for most users of swift-bson, SwiftPM will never clone either repository, and the statistic displayed by Swift Package Index is misleading and paints the package in an unnecessarily bad light.

Metadata

Metadata

Assignees

No one assigned

    Labels

    package dataThe index is showing incorrect metadata for a package

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions