# Package issue - Unnecessary dependencies and wrong name?

**URL:** <https://forums.swift.org/t/package-issue-unnecessary-dependencies-and-wrong-name/46952>\
**Category:** Using Swift\
**Tags:** swift-package\
**Created:** [March 27, 2021, 7:31am UTC](https://forums.swift.org/t/package-issue-unnecessary-dependencies-and-wrong-name/46952 "2021-03-27T07:31:13Z")\
**Posts on this page:** 1\
**Showing post:** 6

<div class="post-metadata">

**Author:** ![SDGGiesbrecht](https://sea2.discourse-cdn.com/swift/user_avatar/forums.swift.org/sdggiesbrecht/32/4768_2.png) [@SDGGiesbrecht](https://forums.swift.org/u/SDGGiesbrecht)\
**Post date:** [April 11, 2021, 11:52pm UTC](https://forums.swift.org/t/package-issue-unnecessary-dependencies-and-wrong-name/46952/6 "2021-04-11T23:52:34Z")

</div>

> [@SDGGiesbrecht](#):
>
> Your expectation matches the eventual intent for the how the package manager is to behave. However, the more fine‐grained resolution logic capable of recognizing `swift-argument-parser` as superfluous is not active in any official release yet. Swift 5.3 only knows to skip dependencies _not used by any product_ .

[@nashysolutions [over on GitHub](https://github.com/apple/swift-package-manager/pull/3045#issuecomment-817289375):]

> As you can see, I am wondering around GitHub like a nomad, trying to find out more. You guys know if this issue has been raised already?

There is a bug registered [here](https://bugs.swift.org/browse/SR-8658), although it contains little information because work on it has revolved more around the [evolution proposal](https://github.com/apple/swift-evolution/blob/main/proposals/0226-package-manager-target-based-dep-resolution.md#package-manager-target-based-dependency-resolution) than the bug report.

The fix is actually already implemented, it’s just not live. I implemented it in [this pull request](https://github.com/apple/swift-package-manager/pull/2749) and it was merged. Unfortunately it ran into another bug that mishandles some packages and had to be temporarily disabled and hidden behind a compiler condition (by [this pull request](https://github.com/apple/swift-package-manager/pull/2998)). At this point, all the known packages which trigger the bug are confidential. Since I am not cleared to see them, I cannot reproduce the bug and cannot debug it. Apple’s employees have done some debugging of their own and from what they were able to say publicly, it seems the bug might actually have to do with package identity and caching instead, and may have only been exposed by the new code. For now I am crossing my fingers that it might have fixed itself by the time the identity overhaul is complete, and that at that point all we will have to do is remove the compiler condition. I think the most recent discussion is in [this pull request](https://github.com/apple/swift-package-manager/pull/3162), from which you should be able to follow links to find all the others.

It will not be included in Swift 5.4. I am hoping it will be in Swift 5.5.

---

_[View the full topic](https://forums.swift.org/t/package-issue-unnecessary-dependencies-and-wrong-name/46952)._
