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

Implement --packages-below-depth #49

Open
tonynajjar opened this issue Dec 7, 2022 · 2 comments
Open

Implement --packages-below-depth #49

tonynajjar opened this issue Dec 7, 2022 · 2 comments

Comments

@tonynajjar
Copy link

--packages-below-depth DEPTH [PKG_NAME …]
Select the packages with the passed names as well as their recursive dependencies down to the given depth.

It could also be called --packages-up-to-depth
Did I miss another obvious way to achieve this? Thanks!

@cottsay
Copy link
Member

cottsay commented Dec 8, 2022

Could you give an example scenario where this would be useful?

@tonynajjar
Copy link
Author

tonynajjar commented Dec 8, 2022

Sure! In my usecase, I have custom packages that depend on third-party packages. I also have a metapackage that lists only my custom packages.

With this option I aim to select only my custom packages with
--packages-below-depth 2 <my-meta-package> (or depth=1, not sure where it starts counting from)

One reason to do this is to run tests of only my custom packages.

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

No branches or pull requests

2 participants