Skip to content

Commit

Permalink
Set it here
Browse files Browse the repository at this point in the history
  • Loading branch information
peterebden committed Sep 9, 2024
1 parent b06c4ae commit f25c11b
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions build_defs/go.build_defs
Original file line number Diff line number Diff line change
Expand Up @@ -825,6 +825,11 @@ def go_test(name:str, srcs:list, resources:list=None, data:list|dict=None, deps:
for out in test_outputs:
test_cmd += f' && mv {out} $TMP_DIR/{out}'

if env:
env["GOCOVERDIR"] = "$TMP_DIR"
else:
env = {"GOCOVERDIR": "$TMP_DIR"}

return build_rule(
name = name,
srcs = [lib_rule],
Expand Down

0 comments on commit f25c11b

Please sign in to comment.