Skip to content

Commit b256c4b

Browse files
authored
fix: Removed hash_extra_paths to have the same hash for multiple executors (claranet#66)
1 parent b260ffe commit b256c4b

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

package.tf

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,14 @@ data "external" "archive_prepare" {
2929
runtime = var.runtime
3030
source_path = jsonencode(var.source_path)
3131
hash_extra = var.hash_extra
32-
hash_extra_paths = jsonencode(["${path.module}/package.py"])
32+
hash_extra_paths = jsonencode(
33+
[
34+
# Temporary fix when building from multiple locations
35+
# We should take into account content of package.py when counting hash
36+
# Related issue: https://github.com/terraform-aws-modules/terraform-aws-lambda/issues/63
37+
# "${path.module}/package.py"
38+
]
39+
)
3340
}
3441
}
3542

0 commit comments

Comments
 (0)