{
  "slug": "terragrunt-cas-stack-components-accept-local-filesystem-sources-98e2e018ca2b",
  "title": "terragrunt CAS stack components accept local filesystem sources",
  "tools": [
    "terragrunt"
  ],
  "tags": [
    "agent"
  ],
  "introduced_at": "2026-05-07T13:54:38.000Z",
  "announced_at": "2026-05-07T13:54:38.000Z",
  "effective_at": null,
  "date_basis": "source-publication",
  "status": "unknown",
  "how": {
    "incantation": "When iterating on a local catalog with CAS-backed stack generation, set the consumer stack’s `source` to the local catalog subdirectory and run `terragrunt stack generate`; keep `update_source_with_cas = true` in the catalog’s nested source blocks. The local catalog is copied to a temporary directory for rewriting, leaving the original untouched.",
    "examples": [
      "stack \"service\" {\n  source = \"../catalog//stacks/service\"\n  path = \"service\"\n}\n\nterragrunt stack generate",
      "unit \"service\" {\n  source = \"../..//units/my-service\"\n  update_source_with_cas = true\n  path = \"service\"\n}"
    ],
    "gotchas": [
      "Version: v1.0.4",
      "stack.<name>.source (required): Catalog source; accepts a local filesystem path, including a `//` subdirectory suffix.",
      "stack.<name>.path (required): Generated path for the component.",
      "unit.<name>.source (required): Relative path to the component source in the catalog.",
      "unit.<name>.update_source_with_cas: Set to `true` to rewrite relative source paths to CAS references; requires CAS enabled. Must be set in catalog files, not by consumers.",
      "Prerequisite: Do not set `--no-cas` when using `update_source_with_cas = true`.",
      "Prerequisite: Sources using `update_source_with_cas` must be relative paths within the same repository.",
      "This applies to CAS-backed stack generation.",
      "The local source path is a directory copied to a temporary directory; the original directory is left untouched."
    ]
  },
  "why_it_matters": "Iterate on a stack catalog in a local checkout before tagging a release.",
  "before": "Use a remote Git URL as the `source` for CAS-backed stack generation.",
  "sources": [
    "https://github.com/gruntwork-io/terragrunt/releases/tag/v1.0.4",
    "https://docs.terragrunt.com/features/stacks/explicit/",
    "https://docs.terragrunt.com/features/caching/cas/"
  ],
  "rank": 0.95029,
  "judge": {
    "publish": true,
    "judge_model": "codex-cli/gpt-6-luna+typesafe/jev-1.13.0",
    "prompt_version": "extract-v7+enrich-v2+judge-v2x3+jev-publish-v1"
  },
  "review_state": "approved",
  "provenance": {
    "run_id": "wave2a-20261017",
    "verdict_id": "wave2a-20261017:wave2a-20261017-a1f6e8fa3575a114-1:gate",
    "evidence_hash": "c181b0e4c5021139cc8ee3483b3e2783ce1f9f23b8159ace0b6dfdcb2c0c8713"
  },
  "review": {
    "draft_hash": "c9310fc74afd9f60da4dd62cd2caf3383539ea38b1945f98aa27b984fdff34b7",
    "reviewer": "publication-gate",
    "reviewed_at": "2026-10-07T00:00:00.000Z",
    "decision": "wave2a-20261017:gate",
    "reason": "3 of 3 judge runs approved with p_yes >= 0.9 (mean 0.95 >= 0.9; 2 needed) and Jev gave 0.63 (>= 0.6 needed)."
  }
}
