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

Dependency optimisation fix #3461

Open
wants to merge 20 commits into
base: main
Choose a base branch
from
Open

Dependency optimisation fix #3461

wants to merge 20 commits into from

Conversation

denis256
Copy link
Member

@denis256 denis256 commented Oct 9, 2024

Description

  • added skip-dependencies-inputs control to disable dependencies inputs reading
    example usage TERRAGRUNT_STRICT_CONTROL="skip-dependencies-inputs"
  • added tests to track dependency optimisation

Fixes #3441.

TODOs

Read the Gruntwork contribution guidelines.

  • Update the docs.
  • Run the relevant tests successfully, including pre-commit checks.
  • Ensure any 3rd party code adheres with our license policy or delete this line if its not applicable.
  • Include release notes. If this PR is backward incompatible, include a migration guide.

Release Notes (draft)

Added / Removed / Updated [X].

Migration Guide

@denis256 denis256 marked this pull request as ready for review October 21, 2024 21:30

Disable reading of dependency inputs to enhance dependency resolution performance.

**Reason**: Enabling the `skip-dependencies-inputs` option prevents Terraform from reading inputs from dependencies, which optimizes the performance of dependency resolution.
Copy link
Collaborator

Choose a reason for hiding this comment

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

Recommended: Prevents recursively parsing Terragrunt inputs from dependencies

@@ -103,6 +106,10 @@ var StrictControls = Controls{
Error: errors.New("The `validate-all` command is no longer supported. Use `terragrunt run-all validate` instead."),
Warning: "The `validate-all` command is deprecated and will be removed in a future version. Use `terragrunt run-all validate` instead.",
},
SkipDependenciesInputs: {
Error: errors.New("The `skip-dependencies-inputs` is no longer supported. Dependencies inputs handling will be changed."),
Copy link
Collaborator

Choose a reason for hiding this comment

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

Recommended: Reading inputs from dependencies has been deprecated. It will be removed in a future version of Terragrunt. To continue to use inputs from dependencies forward them as outputs.

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.

Dependency optimization broken since version 0.55.4
2 participants