Skip to content

Commit ec33efd

Browse files
committed
fix(terraform): use recursive glob for pattern dir change detection
Change *.py to **/*.py so files in subdirectories (code_int_mcp/, agents/, tools/) are included in the Docker image content hash. Without this, edits to those files wouldn't trigger a rebuild.
1 parent 15f44f3 commit ec33efd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

infra-terraform/modules/backend/runtime.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ resource "terraform_data" "docker_image_hash" {
6363
input = local.is_docker && var.container_uri == null ? sha256(join("", concat(
6464
[filesha256("${local.pattern_dir}/Dockerfile")],
6565
[filesha256("${local.pattern_dir}/requirements.txt")],
66-
[for f in fileset(local.pattern_dir, "*.py") : filesha256("${local.pattern_dir}/${f}")],
66+
[for f in fileset(local.pattern_dir, "**/*.py") : filesha256("${local.pattern_dir}/${f}")],
6767
[for f in fileset("${local.project_root}/patterns/utils", "**/*.py") : filesha256("${local.project_root}/patterns/utils/${f}")],
6868
[for f in fileset("${local.project_root}/gateway", "**/*.py") : filesha256("${local.project_root}/gateway/${f}")],
6969
[for f in fileset("${local.project_root}/tools", "**/*.py") : filesha256("${local.project_root}/tools/${f}")],

0 commit comments

Comments
 (0)