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

list-targets: Support sparse checkout #1848

Open
suzuki-shunsuke opened this issue Sep 30, 2024 · 0 comments
Open

list-targets: Support sparse checkout #1848

suzuki-shunsuke opened this issue Sep 30, 2024 · 0 comments
Labels
enhancement New feature or request

Comments

@suzuki-shunsuke
Copy link
Owner

suzuki-shunsuke commented Sep 30, 2024

Feature Overview

Enable list-targets to work without checking out all tfaction.yaml.

Why is the feature needed?

Currently, list-targets needs all tfaction.yaml to list changed directories.
But if the repository is huge, it takes a long time to checkout the whole repository.
In that case, sparse checkout is useful but list-targets doesn't work well.

Example Code

tfaction-root.yaml

list-targets:
  sparse-checkout: true

Note

  1. Create a file .tfaction/services.txt at the repository root, which is a list of services. Using this file, list-targets can work without tfaction.yaml
  2. Create or update .tfaction/services.txt by CI
@suzuki-shunsuke suzuki-shunsuke added the enhancement New feature or request label Sep 30, 2024
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

No branches or pull requests

1 participant