Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

prepare release 0.43.0 #3745

Merged
merged 2 commits into from
Nov 20, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions MODULE.bazel
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module(
name = "rules_go",
version = "0.42.0",
version = "0.43.0",
compatibility_level = 0,
repo_name = "io_bazel_rules_go",
)
Expand All @@ -26,7 +26,7 @@ use_repo(go_sdk, "go_toolchains")

register_toolchains("@go_toolchains//:all")

bazel_dep(name = "gazelle", version = "0.33.0")
bazel_dep(name = "gazelle", version = "0.34.0")

go_deps = use_extension("@gazelle//:extensions.bzl", "go_deps")
go_deps.from_file(go_mod = "//:go.mod")
Expand Down
14 changes: 7 additions & 7 deletions WORKSPACE
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,10 @@ protobuf_deps()
# Used by //tests:buildifier_test.
http_archive(
name = "com_github_bazelbuild_buildtools",
sha256 = "ca524d4df8c91838b9e80543832cf54d945e8045f6a2b9db1a1d02eec20e8b8c",
strip_prefix = "buildtools-6.0.1",
# latest, as of 2023-03-27
urls = ["https://github.com/bazelbuild/buildtools/archive/refs/tags/6.0.1.tar.gz"],
sha256 = "05c3c3602d25aeda1e9dbc91d3b66e624c1f9fdadf273e5480b489e744ca7269",
strip_prefix = "buildtools-6.4.0",
# latest, as of 2023-11-17
urls = ["https://github.com/bazelbuild/buildtools/archive/refs/tags/v6.4.0.tar.gz"],
)

# For manual testing against an LLVM toolchain.
Expand Down Expand Up @@ -71,10 +71,10 @@ bazel_skylib_workspace()

http_archive(
name = "bazel_gazelle",
sha256 = "d3fa66a39028e97d76f9e2db8f1b0c11c099e8e01bf363a923074784e451f809",
sha256 = "b7387f72efb59f876e4daae42f1d3912d0d45563eac7cb23d1de0b094ab588cf",
urls = [
"https://mirror.bazel.build/github.com/bazelbuild/bazel-gazelle/releases/download/v0.33.0/bazel-gazelle-v0.33.0.tar.gz",
"https://github.com/bazelbuild/bazel-gazelle/releases/download/v0.33.0/bazel-gazelle-v0.33.0.tar.gz",
"https://mirror.bazel.build/github.com/bazelbuild/bazel-gazelle/releases/download/v0.34.0/bazel-gazelle-v0.34.0.tar.gz",
"https://github.com/bazelbuild/bazel-gazelle/releases/download/v0.34.0/bazel-gazelle-v0.34.0.tar.gz",
],
)

Expand Down
2 changes: 1 addition & 1 deletion go/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,10 @@ filegroup(
"//go/config:all_files",
"//go/constraints/amd64:all_files",
"//go/platform:all_files",
"//go/private:all_files",
"//go/runfiles:all_files",
"//go/toolchain:all_files",
"//go/tools:all_files",
"//go/private:all_files",
],
visibility = ["//visibility:public"],
)
Expand Down
2 changes: 1 addition & 1 deletion go/def.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ TOOLS_NOGO = [

# Current version or next version to be tagged. Gazelle and other tools may
# check this to determine compatibility.
RULES_GO_VERSION = "0.42.0"
RULES_GO_VERSION = "0.43.0"

go_context = _go_context
gomock = _gomock
Expand Down
50 changes: 25 additions & 25 deletions go/private/repositories.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -50,12 +50,12 @@ def go_rules_dependencies(force = False):
wrapper(
http_archive,
name = "bazel_skylib",
# 1.4.2, latest as of 2023-09-18
# 1.5.0, latest as of 2023-11-16
urls = [
"https://mirror.bazel.build/github.com/bazelbuild/bazel-skylib/releases/download/1.4.2/bazel-skylib-1.4.2.tar.gz",
"https://github.com/bazelbuild/bazel-skylib/releases/download/1.4.2/bazel-skylib-1.4.2.tar.gz",
"https://mirror.bazel.build/github.com/bazelbuild/bazel-skylib/releases/download/1.5.0/bazel-skylib-1.5.0.tar.gz",
"https://github.com/bazelbuild/bazel-skylib/releases/download/1.5.0/bazel-skylib-1.5.0.tar.gz",
],
sha256 = "66ffd9315665bfaafc96b52278f57c7e2dd09f5ede279ea6d39b2be471e7e3aa",
sha256 = "cd55a062e763b9349921f0f5db8c3933288dc8ba4f76dd9416aac68acee3cb94",
strip_prefix = "",
)

Expand All @@ -64,7 +64,7 @@ def go_rules_dependencies(force = False):
wrapper(
http_archive,
name = "org_golang_x_tools",
# v0.15.0, latest as of 2023-11-12
# v0.15.0, latest as of 2023-11-16
urls = [
"https://mirror.bazel.build/github.com/golang/tools/archive/refs/tags/v0.15.0.zip",
"https://github.com/golang/tools/archive/refs/tags/v0.15.0.zip",
Expand Down Expand Up @@ -105,13 +105,13 @@ def go_rules_dependencies(force = False):
wrapper(
http_archive,
name = "org_golang_x_sys",
# v0.13.0, latest as of 2023-10-29
# v0.14.0, latest as of 2023-11-16
urls = [
"https://mirror.bazel.build/github.com/golang/sys/archive/refs/tags/v0.13.0.zip",
"https://github.com/golang/sys/archive/refs/tags/v0.13.0.zip",
"https://mirror.bazel.build/github.com/golang/sys/archive/refs/tags/v0.14.0.zip",
"https://github.com/golang/sys/archive/refs/tags/v0.14.0.zip",
],
sha256 = "24abdcbecddb288fb1007f8cb814b1592531d5bb62817bc30925e3175f3f5749",
strip_prefix = "sys-0.13.0",
sha256 = "0791dad0d738ef5e92304d6691d58e37c8a643844f13dfad26d28e1adb6c61ce",
strip_prefix = "sys-0.14.0",
patches = [
# releaser:patch-cmd gazelle -repo_root . -go_prefix golang.org/x/sys -go_naming_convention import_alias
Label("//third_party:org_golang_x_sys-gazelle.patch"),
Expand All @@ -124,13 +124,13 @@ def go_rules_dependencies(force = False):
wrapper(
http_archive,
name = "org_golang_x_xerrors",
# master, as of 2023-09-18
# master, as of 2023-11-16
urls = [
"https://mirror.bazel.build/github.com/golang/xerrors/archive/04be3eba64a22a838cdb17b8dca15a52871c08b4.zip",
"https://github.com/golang/xerrors/archive/04be3eba64a22a838cdb17b8dca15a52871c08b4.zip",
"https://mirror.bazel.build/github.com/golang/xerrors/archive/104605ab7028f4af38a8aff92ac848a51bd53c5d.zip",
"https://github.com/golang/xerrors/archive/104605ab7028f4af38a8aff92ac848a51bd53c5d.zip",
],
sha256 = "ffad2b06ef2e09d040da2ff08077865e99ab95d4d0451737fc8e33706bb01634",
strip_prefix = "xerrors-04be3eba64a22a838cdb17b8dca15a52871c08b4",
sha256 = "007a5988932222d36c106636de7f0031bb26c426327a8f1253fbf17c7c9756c1",
strip_prefix = "xerrors-104605ab7028f4af38a8aff92ac848a51bd53c5d",
patches = [
# releaser:patch-cmd gazelle -repo_root . -go_prefix golang.org/x/xerrors -go_naming_convention import_alias
Label("//third_party:org_golang_x_xerrors-gazelle.patch"),
Expand Down Expand Up @@ -160,7 +160,7 @@ def go_rules_dependencies(force = False):
http_archive,
name = "org_golang_google_protobuf",
sha256 = "f5d1f6d0e9b836aceb715f1df2dc065083a55b07ecec3b01b5e89d039b14da02",
# v1.31.0, latest as of 2023-09-18
# v1.31.0, latest as of 2023-11-16
urls = [
"https://mirror.bazel.build/github.com/protocolbuffers/protobuf-go/archive/refs/tags/v1.31.0.zip",
"https://github.com/protocolbuffers/protobuf-go/archive/refs/tags/v1.31.0.zip",
Expand All @@ -182,7 +182,7 @@ def go_rules_dependencies(force = False):
wrapper(
http_archive,
name = "com_github_golang_protobuf",
# v1.5.3, latest as of 2023-09-18
# v1.5.3, latest as of 2023-11-16
urls = [
"https://mirror.bazel.build/github.com/golang/protobuf/archive/refs/tags/v1.5.3.zip",
"https://github.com/golang/protobuf/archive/refs/tags/v1.5.3.zip",
Expand All @@ -202,7 +202,7 @@ def go_rules_dependencies(force = False):
wrapper(
http_archive,
name = "com_github_mwitkow_go_proto_validators",
# v0.3.2, latest as of 2023-09-18
# v0.3.2, latest as of 2023-11-16
urls = [
"https://mirror.bazel.build/github.com/mwitkow/go-proto-validators/archive/refs/tags/v0.3.2.zip",
"https://github.com/mwitkow/go-proto-validators/archive/refs/tags/v0.3.2.zip",
Expand All @@ -216,7 +216,7 @@ def go_rules_dependencies(force = False):
wrapper(
http_archive,
name = "com_github_gogo_protobuf",
# v1.3.2, latest as of 2023-09-18
# v1.3.2, latest as of 2023-11-16
urls = [
"https://mirror.bazel.build/github.com/gogo/protobuf/archive/refs/tags/v1.3.2.zip",
"https://github.com/gogo/protobuf/archive/refs/tags/v1.3.2.zip",
Expand All @@ -242,13 +242,13 @@ def go_rules_dependencies(force = False):
wrapper(
http_archive,
name = "org_golang_google_genproto",
# main, as of 2023-09-18
# main, as of 2023-11-16
urls = [
"https://mirror.bazel.build/github.com/googleapis/go-genproto/archive/007df8e322eb3e384d36c0821e2337825c203ca6.zip",
"https://github.com/googleapis/go-genproto/archive/007df8e322eb3e384d36c0821e2337825c203ca6.zip",
"https://mirror.bazel.build/github.com/googleapis/go-genproto/archive/bbf56f31fb17579209f44dda2d2567d20ff21a20.zip",
"https://github.com/googleapis/go-genproto/archive/bbf56f31fb17579209f44dda2d2567d20ff21a20.zip",
],
sha256 = "e7d0f3faed86258ed4e8e5527a8e98ff00fbd5b1a9b379a99a4aa2f76ce8bbcc",
strip_prefix = "go-genproto-007df8e322eb3e384d36c0821e2337825c203ca6",
sha256 = "28f26095dca7821661b37190516955185c295a49c44d026de24df7755d46c389",
strip_prefix = "go-genproto-bbf56f31fb17579209f44dda2d2567d20ff21a20",
patches = [
# releaser:patch-cmd gazelle -repo_root . -go_prefix google.golang.org/genproto -go_naming_convention import_alias -proto disable_global
Label("//third_party:org_golang_google_genproto-gazelle.patch"),
Expand All @@ -260,7 +260,7 @@ def go_rules_dependencies(force = False):
_maybe(
http_archive,
name = "com_github_golang_mock",
# v1.7.0-rc.1, latest as of 2023-09-18
# v1.7.0-rc.1, latest as of 2023-11-16
urls = [
"https://mirror.bazel.build/github.com/golang/mock/archive/refs/tags/v1.7.0-rc.1.zip",
"https://github.com/golang/mock/archive/refs/tags/v1.7.0-rc.1.zip",
Expand Down
7 changes: 3 additions & 4 deletions third_party/org_golang_google_genproto-gazelle.patch
Original file line number Diff line number Diff line change
Expand Up @@ -373,7 +373,7 @@ diff -urN a/googleapis/analytics/management/v1alpha/BUILD.bazel b/googleapis/ana
diff -urN a/googleapis/api/annotations/BUILD.bazel b/googleapis/api/annotations/BUILD.bazel
--- a/googleapis/api/annotations/BUILD.bazel 1970-01-01 00:00:00.000000000 +0000
+++ b/googleapis/api/annotations/BUILD.bazel 2000-01-01 00:00:00.000000000 -0000
@@ -0,0 +1,28 @@
@@ -0,0 +1,29 @@
+load("@io_bazel_rules_go//go:def.bzl", "go_library")
+
+go_library(
Expand All @@ -382,6 +382,7 @@ diff -urN a/googleapis/api/annotations/BUILD.bazel b/googleapis/api/annotations/
+ "annotations.pb.go",
+ "client.pb.go",
+ "field_behavior.pb.go",
+ "field_info.pb.go",
+ "http.pb.go",
+ "resource.pb.go",
+ "routing.pb.go",
Expand Down Expand Up @@ -1483,7 +1484,7 @@ diff -urN a/googleapis/bigtable/admin/table/v1/BUILD.bazel b/googleapis/bigtable
diff -urN a/googleapis/bigtable/admin/v2/BUILD.bazel b/googleapis/bigtable/admin/v2/BUILD.bazel
--- a/googleapis/bigtable/admin/v2/BUILD.bazel 1970-01-01 00:00:00.000000000 +0000
+++ b/googleapis/bigtable/admin/v2/BUILD.bazel 2000-01-01 00:00:00.000000000 -0000
@@ -0,0 +1,37 @@
@@ -0,0 +1,35 @@
+load("@io_bazel_rules_go//go:def.bzl", "go_library")
+
+go_library(
Expand All @@ -1499,8 +1500,6 @@ diff -urN a/googleapis/bigtable/admin/v2/BUILD.bazel b/googleapis/bigtable/admin
+ visibility = ["//visibility:public"],
+ deps = [
+ "//googleapis/api/annotations",
+ "//googleapis/iam/v1:iam",
+ "//googleapis/longrunning",
+ "//googleapis/rpc/status",
+ "@com_google_cloud_go_iam//apiv1/iampb:go_default_library",
+ "@com_google_cloud_go_longrunning//autogen/longrunningpb:go_default_library",
Expand Down
24 changes: 0 additions & 24 deletions third_party/org_golang_x_sys-gazelle.patch
Original file line number Diff line number Diff line change
Expand Up @@ -98,30 +98,6 @@ diff -urN a/execabs/BUILD.bazel b/execabs/BUILD.bazel
+ srcs = ["execabs_test.go"],
+ embed = [":execabs"],
+)
diff -urN a/internal/unsafeheader/BUILD.bazel b/internal/unsafeheader/BUILD.bazel
--- a/internal/unsafeheader/BUILD.bazel 1970-01-01 00:00:00.000000000 +0000
+++ b/internal/unsafeheader/BUILD.bazel 2000-01-01 00:00:00.000000000 -0000
@@ -0,0 +1,20 @@
+load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test")
+
+go_library(
+ name = "unsafeheader",
+ srcs = ["unsafeheader.go"],
+ importpath = "golang.org/x/sys/internal/unsafeheader",
+ visibility = ["//:__subpackages__"],
+)
+
+alias(
+ name = "go_default_library",
+ actual = ":unsafeheader",
+ visibility = ["//:__subpackages__"],
+)
+
+go_test(
+ name = "unsafeheader_test",
+ srcs = ["unsafeheader_test.go"],
+ deps = [":unsafeheader"],
+)
diff -urN a/plan9/BUILD.bazel b/plan9/BUILD.bazel
--- a/plan9/BUILD.bazel 1970-01-01 00:00:00.000000000 +0000
+++ b/plan9/BUILD.bazel 2000-01-01 00:00:00.000000000 -0000
Expand Down