-
-
Notifications
You must be signed in to change notification settings - Fork 50
Description
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.