Skip to content

Commit 6b4ec16

Browse files
authored
fix: use better source_code_hash coalescing (#9)
1 parent f031989 commit 6b4ec16

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

artifact.tf

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,8 @@ locals {
7070
source_code_hash = coalesce(
7171
try(data.archive_file.artifact_dir[0].output_base64sha256, null),
7272
try(filebase64sha256(local.artifact_file), null),
73-
try(local.artifact.source_hash, local.artifact.tags.SourceHash, null),
73+
try(local.artifact.source_hash, null),
74+
try(local.artifact.tags.SourceHash, null),
7475
try(base64encode(local.artifact.etag), null),
7576
)
7677
}

0 commit comments

Comments
 (0)