Skip to content

Setting TERRAGRUNT_USE_PARTIAL_PARSE_CONFIG_CACHE does not activate flag use-partial-parse-config-cache #4596

@RafaelWO

Description

@RafaelWO

Describe the bug

Setting the environment variable TERRAGRUNT_USE_PARTIAL_PARSE_CONFIG_CACHE=true does not activate the feature flag use-partial-parse-config-cache. Although the documentation lists it as the deprecated alias of TG_USE_PARTIAL_PARSE_CONFIG_CACHE.

Steps To Reproduce

  1. mkdir temp && cd temp
  2. touch terragrunt.hcl
  3. terragrunt --version
terragrunt version v0.83.2
  1. TERRAGRUNT_USE_PARTIAL_PARSE_CONFIG_CACHE=true terragrunt init --log-level debug
13:44:03.785 DEBUG  Terragrunt Version: 0.83.2
13:44:03.785 DEBUG  Skipping stack generation in .
13:44:03.785 DEBUG  Did not find any locals block: skipping evaluation.
...

Expected behavior

If the flag is enabled, the logs should contain the statement (partial parsing)

  1. TG_USE_PARTIAL_PARSE_CONFIG_CACHE=true terragrunt init --log-level debug
13:44:03.785 DEBUG  Terragrunt Version: 0.83.2
13:44:03.785 DEBUG  Skipping stack generation in .
13:43:30.681 DEBUG  Cache miss for './terragrunt.hcl' (partial parsing), decodeList: '[6 8]'.   <--------
13:44:03.785 DEBUG  Did not find any locals block: skipping evaluation.
...

Nice to haves

  • Terminal output
  • Screenshots

Versions

  • Terragrunt version: v0.83.2
  • OpenTofu/Terraform version: Terraform v1.9.8
  • Environment details (Ubuntu 20.04, Windows 10, etc.): Ubuntu 24.04.2 LTS

Additional context

Would it be possible for Terragrunt to print all flags and their value in debug mode?

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions