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

Support multiple path syntax for modules; string literal for depends_on #522

Merged
merged 6 commits into from
Jan 8, 2025

Conversation

emdoyle
Copy link
Member

@emdoyle emdoyle commented Jan 7, 2025

Fixes: #483

This allows two new forms in tach.toml configuration:

  1. Shorthand for dependencies
  • depends_on = [{ path = "module.a"}] can now be written simply as depends_on = ["module.a"]
  • the object form is only necessary to specify deprecated = true
  1. Shorthand for groups of modules with the same attributes
  • modules can now use paths = ["module.a", "module.b"] instead of a single path = "module.a"
  • this allows sharing the depends_on, visibility, utility, or unchecked fields across all specified module paths
  • it is equivalent to flattening the module definition, but it far more concise

@emdoyle emdoyle merged commit 5186732 into main Jan 8, 2025
7 checks passed
@emdoyle emdoyle deleted the multi-path-modules branch January 8, 2025 01:04
@emdoyle emdoyle mentioned this pull request Jan 8, 2025
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.

multiple paths per module
1 participant