Replies: 1 comment 6 replies
-
We use the
Or in JSON:
It would be great if this data included the dependency type, but it currently does not. I believe that SE-0226 was more around the internal dependency resolution rather than anything we can access. I also wouldn’t worry too much about the package score. Score is only used when two packages that rank equally on the text search need ordering one above the other. There is a secondary use for the score, which is that we hope that it also encourages good development practices, like trying to minimise dependencies, but it’s not something we expect people to try to optimise for search ranking as it’s not used like that. We do check back from time to time to see if there is more or better information we can display around dependencies, but this is the best we can do for now. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hello,
I am someone, both as a package user and package author, who tries to keep the list of dependencies to a minimum. Also SwiftPackageIndex has the notion of keeping the number of dependencies down, since it is included in the package score and it is also actively displaying this number to any potential users on the package page.
In Swift 5.2 a change (SE-0226) was introduced that test dependencies of packages are not being resolved anymore. However, currently in SwiftPackageIndex they are counted towards the number dependencies of a package (although it is mentioned explicitly, that test dependencies are counted).
I have to be honest here, without wanting to sound ungrateful towards this project and the people maintaining this, this bothers me. In fact it bothered me so much, that I have copied parts of test dependencies I needed into my repositories, to get to 0 dependencies, which from a maintenance standpoint is not very optimal.
I wanted to start this discussion, to maybe get more insights into what the reason behind this is and also what can be done about it or even what has been attempted to do about this. I think the code that parses this number from any project is not public, at least I could not find the correct piece in this project, so I had to resort to asking here rather than checking myself.
Please do not get me wrong, I am not trying to step on anyone's toe, I am just trying to understand the reasoning/challenges. Thank you.
Beta Was this translation helpful? Give feedback.
All reactions