Skip to content
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

summary.allDependencies include dev_dependencies #1167

Open
jonasfj opened this issue Dec 1, 2022 · 2 comments
Open

summary.allDependencies include dev_dependencies #1167

jonasfj opened this issue Dec 1, 2022 · 2 comments
Labels
type-bug Incorrect behavior (everything from a crash to more subtle misbehavior)

Comments

@jonasfj
Copy link
Member

jonasfj commented Dec 1, 2022

https://pub.dev/packages/googleclouddatastore/pubspec

has summary.allDependencies that includes protoc-plugin.

Context: I noticed this because I have APIs that sanitizes output from pana, and protoc-plugin is not a valid package name, so it complained.

IMO, summary.allDependencies should be all packages that when updated may affect the analysis of this package.
Or we should introduce another property on summary that is dependencies as a list of package names that when updated should trigger reanalysis.

@jonasfj jonasfj added the type-bug Incorrect behavior (everything from a crash to more subtle misbehavior) label Dec 1, 2022
@isoos
Copy link
Collaborator

isoos commented Jun 5, 2023

Based on the current uses of Summary.allDependencies, I think we may leave out the dev dependencies out of it.

However, while checking the uses of it, I've found that we also add the dev dependencies to the search index without verification: _buildDependencies in https://github.com/dart-lang/pub-dev/blob/master/app/lib/search/backend.dart#L169. We should either provide the fully verified dependencies map through pana, or not add those values to the search index.

@sigurdm
Copy link
Contributor

sigurdm commented Jan 25, 2024

Seems to still be the case: https://pub.dev/api/packages/googleclouddatastore/metrics?pretty

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type-bug Incorrect behavior (everything from a crash to more subtle misbehavior)
Projects
None yet
Development

No branches or pull requests

3 participants