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

Make link-package's build-deps-for script check transitive deps #6712

Merged

Conversation

mattsoulanille
Copy link
Member

@mattsoulanille mattsoulanille commented Aug 3, 2022

Make build-deps-for check for Bazel dependencies transitively instead of just on the packages passed to it. Additionally, change the behavior of build-deps-for so that when it is passed a Bazel package, it will directly build the package instead of building just its dependencies.

To see the logs from the Cloud Build CI, please join either our discussion or announcement mailing list.


This change is Reviewable

Make build-deps-for check for Bazel dependencies transitively instead of just on the packages passed to it. Additionally, change the behavior of `build-deps-for` so that when it is passed a Bazel package, it will directly build the package instead of building just its dependencies.
Copy link
Collaborator

@lina128 lina128 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think the original reason we resolve transitive dependency ourselves is because of circular dependency of cpu and core. If this is not longer the case, then the refactor is the right way to go. Thank you Matt!

Reviewable status: :shipit: complete! 1 of 1 approvals obtained (waiting on @Linchenn)

Copy link
Member Author

@mattsoulanille mattsoulanille left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the review! Like you said, we no longer have circular devDependencies, but the solution here should still work if we somehow add one. It can only ever visit each package once, so it should not get stuck in a loop (see the visited set in findTransitiveBazelDeps).

Reviewable status: :shipit: complete! 1 of 1 approvals obtained (waiting on @Linchenn)

Copy link
Collaborator

@Linchenn Linchenn left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM! Thank you Matt!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants