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 support for selective dependency syncing #673

Merged
merged 6 commits into from
Oct 27, 2022

Conversation

simu
Copy link
Member

@simu simu commented Oct 27, 2022

This PR implements a new option --filter REGEX for component sync and package sync. This option allows callers to selectively sync only dependencies which match the provided regex. The base set of dependencies is still always loaded from the given YAML file.

In the dependency syncer implementation, the PR moves loading and filtering of the dependency file into a separate function.

Resolves #615

Checklist

  • Keep pull requests small so they can be easily reviewed.
  • Update the documentation.
  • Update tests.
  • Categorize the PR by setting a good title and adding one of the labels:
    bug, enhancement, documentation, change, breaking, dependency, internal
    as they show up in the changelog
  • Link this PR to related issues.

@simu simu added the enhancement New feature or request label Oct 27, 2022
@simu simu requested a review from a team as a code owner October 27, 2022 12:43
@simu simu force-pushed the feat/refactor-cli branch from acc2a74 to 7bc3fa4 Compare October 27, 2022 14:25
Base automatically changed from feat/refactor-cli to master October 27, 2022 14:39
simu added 2 commits October 27, 2022 16:41
We'll add support for filtering the loaded dependencies in the function.
Having this separated out from `sync_dependencies()` should make testing
the filtering fairly straightforward.
@simu simu force-pushed the feat/dependency-sync/filter branch from c0d26c1 to e2d60c8 Compare October 27, 2022 14:41
@simu simu force-pushed the feat/dependency-sync/filter branch from e2d60c8 to a4628b2 Compare October 27, 2022 14:51
@simu simu merged commit 1134ab5 into master Oct 27, 2022
@simu simu deleted the feat/dependency-sync/filter branch October 27, 2022 15:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add option to filter dependency list for component sync and package sync
2 participants