build: upgrade to Bazel 7 pre-release (#57970)

Co-authored-by: William Bezuidenhout <william.bezuidenhout@sourcegraph.com>
This commit is contained in:
Greg Magolan 2023-10-31 06:29:14 -07:00 committed by GitHub
parent 5416b67f6f
commit 71ae758ef8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 6 deletions

View File

@ -1 +1 @@
6.1.1
7.0.0-pre.20231011.2

View File

@ -2,7 +2,7 @@ load("@aspect_bazel_lib//lib:write_source_files.bzl", "write_source_files")
# go_stringer provides an equivalent to `//go:generate stringer`.
# Files can be updated and generated with `bazel run //dev:write_all_generated`.
def go_stringer(src, typ, name, additional_args=[]):
def go_stringer(src, typ, name, additional_args = []):
output_file = "_out_" + typ.lower() + "_string.go_in"
output_file_source = typ.lower() + "_string.go"
@ -36,11 +36,11 @@ env \
# across all envs, even if it's slighly inaccurate.
sed -i'' -e 's=$@='`basename $@`'=' $@
""".format(
typ = typ,
args = " ".join(additional_args),
typ = typ,
args = " ".join(additional_args),
),
visibility = [":__pkg__", "//pkg/gen:__pkg__"],
exec_tools = [
tools = [
"@go_sdk//:bin/go",
"@go_sdk//:srcs",
"@go_sdk//:tools",
@ -57,4 +57,3 @@ sed -i'' -e 's=$@='`basename $@`'=' $@
suggested_update_target = "//dev:write_all_generated",
visibility = ["//visibility:public"],
)