Skip to content

The dependencies of this package are not detected #3764

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
mattmassicotte opened this issue Apr 14, 2025 · 1 comment
Open

The dependencies of this package are not detected #3764

mattmassicotte opened this issue Apr 14, 2025 · 1 comment
Labels
package data The index is showing incorrect metadata for a package

Comments

@mattmassicotte
Copy link

Which package(s) are showing incorrect data?

Please explain what data is incorrect and what you expected to see

This package actually does have dependencies, but there's Funny Business going on in the Package.swift, and I have no doubt that's the issue.

Additional context

It's definitely interesting food for thought that dependencies definitely do not have to be a constant across platforms. I would not be surprised to discover that this kind of per-platform dependency management isn't that uncommon when supporting Apple/non-Apple platforms.

I suspect you're already aware of this problem on some level, but I couldn't find an existing issue with my 10 seconds of effort.

@mattmassicotte mattmassicotte added the package data The index is showing incorrect metadata for a package label Apr 14, 2025
@finestructure
Copy link
Member

finestructure commented Apr 15, 2025

Yeah, I think this is because we run all package analysis commands on Linux. I wish package manifests weren't executable and platform dependent 😕

I'm not sure what we could do about it. We'd have to guess or somehow determine what the "main" platform is.

We could take the highest number but then we'd disadvantage a package if there's a particular, perhaps rarely used platform that requires additional dependencies.

The only correct way of doing it would be to report dependency count per platform, I guess. We could at least tooltip a per platform breakdown like we do for the Swift 6 compatibility.

I wonder though how common a problem this actually is 🤔

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
package data The index is showing incorrect metadata for a package
Projects
None yet
Development

No branches or pull requests

2 participants