-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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
refactor(query): make immediate dependencies default #9114
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
8 Skipped Deployments
|
crates/turborepo-lib/src/query.rs
Outdated
@@ -335,7 +335,7 @@ impl Package { | |||
} | |||
|
|||
/// The downstream packages that directly depend on this package | |||
async fn immediate_dependencies(&self) -> Result<Vec<Package>, Error> { | |||
async fn dependencies(&self) -> Result<Vec<Package>, Error> { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should this be direct_dependencies
? Gives us the nice direct_dependencies U indirect_dependencies = dependencies
relation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oh indirect_dependencies
is all transitive dependencies so it's more direct_dependencies ⊆ indirect_dependencies
. I'm down to rename it if that's clearer (cc @anthonyshew)
Description
We have a
dependencies
field on ourPackage
type inturbo query
. This returned all the transitive dependencies, i.e. the dependencies of the package's dependencies and their dependencies, and so on. This is a little confusing, so now we have explicitdirectDependencies
,indirectDependencies
andallDependencies
fields.Testing Instructions
Tests in
command-query.t
are updated.