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

Add --packages-select-under-path mechanism #52

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

cottsay
Copy link
Member

@cottsay cottsay commented Feb 13, 2024

This package selection mechanism deselects packages which do not reside (recursively) within one of the given paths.

We could probably add skip and up-to variants, but I'm not motivated to add them quite yet. PRs welcome.

This package selection mechanism deselects packages which do not reside
(recusively) within one of the given paths.
@cottsay cottsay added the enhancement New feature or request label Feb 13, 2024
@cottsay cottsay self-assigned this Feb 13, 2024
if args.packages_select_under_path:
packages_select_under_path = {
path for path in args.packages_select_under_path
if path.is_dir()
Copy link
Contributor

Choose a reason for hiding this comment

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

I'm not sure whether this would be too much babysitting but would it make sense to warn if we find an arg that's a file not a directory?

Copy link
Member Author

Choose a reason for hiding this comment

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

The warning is on line 31 :)

Copy link
Contributor

Choose a reason for hiding this comment

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

You know, I saw that and thought "yeah we warn in this case but not this one" and they're the same case. 🤦🏼

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Development

Successfully merging this pull request may close these issues.

2 participants