Skip to content

Commit 8c16dae

Browse files
authored
Update to Go 1.23 & suppress GOCOVERDIR messages (#298)
* update go * Coverage mode shouldn't strip * Set it here * Suppress emitting GOCOVERDIR messages * update please_go to latest
1 parent 1959b94 commit 8c16dae

File tree

6 files changed

+19
-9
lines changed

6 files changed

+19
-9
lines changed

.plzconfig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
[Please]
2-
Version = >=17.10.3
2+
Version = >=17.11.0
33

44
[build]
55
hashcheckers = sha256

ChangeLog

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
Version 1.21.4
2+
--------------
3+
* Suppress Go 1.23 emitting GOCOVERDIR messages
4+
15
Version 1.21.3
26
--------------
37
* Support Go 1.23 coverage (#294)

VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
1.21.3
1+
1.21.4

build_defs/go.build_defs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -825,6 +825,11 @@ def go_test(name:str, srcs:list, resources:list=None, data:list|dict=None, deps:
825825
for out in test_outputs:
826826
test_cmd += f' && mv {out} $TMP_DIR/{out}'
827827

828+
if env:
829+
env["GOCOVERDIR"] = "$TMP_DIR"
830+
else:
831+
env = {"GOCOVERDIR": "$TMP_DIR"}
832+
828833
return build_rule(
829834
name = name,
830835
srcs = [lib_rule],
@@ -1707,6 +1712,7 @@ def _go_binary_cmds(name, static=False, ldflags='', pkg_config='', definitions=N
17071712

17081713
cmds = {
17091714
'dbg': f'{gen_import_cfg} && {_link_cmd} {flags} $SRCS',
1715+
'cover': f'{gen_import_cfg} && {_link_cmd} {flags} $SRCS',
17101716
'opt': f'{gen_import_cfg} && {_link_cmd} {flags} {opt_strip} $SRCS',
17111717
}
17121718
if gcov and CONFIG.GO.CPP_COVERAGE:

third_party/go/BUILD

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ subinclude("//build_defs:go")
33
go_toolchain(
44
name = "toolchain",
55
install_std = False,
6-
version = "1.22.0",
6+
version = "1.23.1",
77
)
88

99
go_stdlib(

tools/BUILD

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
1-
VERSION = "1.15.0"
1+
VERSION = "1.15.1"
22

33
hashes = {
4-
"darwin_amd64": "483a4519b746c6b36f9f748b2aa9bb59595bd8e02166e1802e07de0a2ca3177d",
5-
"darwin_arm64": "a721600ab3b2f1e0639931ec7b33bc1a8faed257ed7b69b86416f4ea8c35c700",
6-
"freebsd_amd64": "dd1e45fd3095c00c7dedebac9f9f7219f748c25feb7be81b1df68278d2f305aa",
7-
"linux_amd64": "88bef7b855445e9f1fa0ef23a4ae3f5003eddf5131b02ca80c6b5fd5908876da",
8-
"linux_arm64": "0f23866a1707fb46bf4956c169f68cb913b1ccccb1618309ca6b7e9dae1cc571",
4+
"darwin_amd64": "e7fd623e923a5f2f26b6510a100db36a4af74a178aaef0989f9ba9991633c82b",
5+
"darwin_arm64": "bdf6574d75efd26635539143dc6a2434234f34f621f730e29bc017efb173ebd3",
6+
"freebsd_amd64": "004e30a5ede1af591b0496ebbb5a8f56b507c4e291fa42bc3b22f6ac58c1c521",
7+
"linux_amd64": "b2f6a01c7c69d8686b5a4eb83411811d848c8697b2a36f6be431fa2a54555026",
8+
"linux_arm64": "7e9e6f2f471c9ca1063c5a64043431d079a53f9d02050d781fd112d4141786fc",
99
}
1010

1111
for a, h in hashes.items():

0 commit comments

Comments
 (0)