Skip to content

Commit e3eab6d

Browse files
authored
Merge branch 'bazelbuild:master' into patch-1
2 parents fe88895 + 75cc291 commit e3eab6d

13 files changed

+9
-50
lines changed

.bazelci/presubmit.yml

-1
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,6 @@ tasks:
6262
- "//..."
6363
bcr_tests:
6464
name: BCR test module
65-
bazel: 6.3.0 # silent ignore override in `[email protected]`
6665
platform: ${{ platform }}
6766
working_directory: tests/bcr
6867
build_flags:

MODULE.bazel

+1-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
module(
22
name = "rules_go",
3-
version = "0.48.0",
3+
version = "0.48.1",
44
compatibility_level = 0,
55
repo_name = "io_bazel_rules_go",
66
)
@@ -24,7 +24,6 @@ use_repo(
2424
# This name is ugly on purpose to avoid a conflict with a user-named SDK.
2525
"io_bazel_rules_nogo",
2626
)
27-
2827
register_toolchains("@go_toolchains//:all")
2928

3029
bazel_dep(name = "gazelle", version = "0.36.0")

WORKSPACE

+3-3
Original file line numberDiff line numberDiff line change
@@ -122,10 +122,10 @@ bazel_skylib_workspace()
122122

123123
http_archive(
124124
name = "bazel_gazelle",
125-
sha256 = "75df288c4b31c81eb50f51e2e14f4763cb7548daae126817247064637fd9ea62",
125+
sha256 = "b7387f72efb59f876e4daae42f1d3912d0d45563eac7cb23d1de0b094ab588cf",
126126
urls = [
127-
"https://mirror.bazel.build/github.com/bazelbuild/bazel-gazelle/releases/download/v0.36.0/bazel-gazelle-v0.36.0.tar.gz",
128-
"https://github.com/bazelbuild/bazel-gazelle/releases/download/v0.36.0/bazel-gazelle-v0.36.0.tar.gz",
127+
"https://mirror.bazel.build/github.com/bazelbuild/bazel-gazelle/releases/download/v0.34.0/bazel-gazelle-v0.34.0.tar.gz",
128+
"https://github.com/bazelbuild/bazel-gazelle/releases/download/v0.34.0/bazel-gazelle-v0.34.0.tar.gz",
129129
],
130130
)
131131

go/def.bzl

+1-1
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ TOOLS_NOGO = [str(Label(l)) for l in _TOOLS_NOGO]
121121

122122
# Current version or next version to be tagged. Gazelle and other tools may
123123
# check this to determine compatibility.
124-
RULES_GO_VERSION = "0.48.0"
124+
RULES_GO_VERSION = "0.48.1"
125125

126126
go_context = _go_context
127127
gomock = _gomock

go/modes.rst

-2
Original file line numberDiff line numberDiff line change
@@ -68,8 +68,6 @@ or using `Bazel configuration transitions`_.
6868
| Disables cgo, even when a C/C++ toolchain is configured (similar to setting |
6969
| ``CGO_ENABLED=0``). Packages that contain cgo code may still be built, but |
7070
| the cgo code will be filtered out, and the ``cgo`` build tag will be false. |
71-
| Sets the de-facto ``purego`` build tag for conditional inclusion of source |
72-
| files. |
7371
+-------------------+---------------------+------------------------------------+
7472
| :param:`debug` | :type:`bool` | :value:`false` |
7573
+-------------------+---------------------+------------------------------------+

go/private/mode.bzl

-2
Original file line numberDiff line numberDiff line change
@@ -122,8 +122,6 @@ def get_mode(ctx, go_toolchain, cgo_context_info, go_config_info):
122122
tags.append("race")
123123
if msan:
124124
tags.append("msan")
125-
if pure:
126-
tags.append("purego")
127125

128126
return struct(
129127
static = static,

tests/core/cgo/BUILD.bazel

-12
Original file line numberDiff line numberDiff line change
@@ -334,7 +334,6 @@ go_test(
334334
data = [
335335
":tag_cgo_bin",
336336
":tag_pure_bin",
337-
":tag_purego_bin",
338337
],
339338
rundir = ".",
340339
deps = ["//go/tools/bazel:go_default_library"],
@@ -351,17 +350,6 @@ go_binary(
351350
pure = "on",
352351
)
353352

354-
go_binary(
355-
name = "tag_purego_bin",
356-
srcs = [
357-
"tag_purego.go",
358-
"tag_purego_err.c",
359-
"tag_purego_err.go",
360-
],
361-
cgo = True,
362-
pure = "on",
363-
)
364-
365353
go_binary(
366354
name = "tag_cgo_bin",
367355
srcs = [

tests/core/cgo/tag_purego.go

-9
This file was deleted.

tests/core/cgo/tag_purego_err.c

-1
This file was deleted.

tests/core/cgo/tag_purego_err.go

-6
This file was deleted.

tests/core/cgo/tag_test.go

-3
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,6 @@ func Test(t *testing.T) {
1515
{
1616
name: "tag_pure_bin",
1717
want: "pure",
18-
}, {
19-
name: "tag_purego_bin",
20-
want: "purego",
2118
}, {
2219
name: "tag_cgo_bin",
2320
want: "cgo",

tests/integration/gazelle/gazelle_test.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -53,8 +53,8 @@ func TestUpdate(t *testing.T) {
5353
}
5454
got := strings.TrimSpace(string(data))
5555
want := strings.TrimSpace(`
56-
load("@bazel_gazelle//:def.bzl", "gazelle")
5756
load("@io_bazel_rules_go//go:def.bzl", "go_library")
57+
load("@bazel_gazelle//:def.bzl", "gazelle")
5858
5959
# gazelle:prefix example.com/hello
6060
gazelle(

third_party/org_golang_google_protobuf-gazelle.patch

+3-7
Original file line numberDiff line numberDiff line change
@@ -1635,7 +1635,7 @@ diff -urN a/internal/genid/BUILD.bazel b/internal/genid/BUILD.bazel
16351635
diff -urN a/internal/impl/BUILD.bazel b/internal/impl/BUILD.bazel
16361636
--- a/internal/impl/BUILD.bazel 1970-01-01 00:00:00.000000000 +0000
16371637
+++ b/internal/impl/BUILD.bazel 2000-01-01 00:00:00.000000000 -0000
1638-
@@ -0,0 +1,113 @@
1638+
@@ -0,0 +1,111 @@
16391639
+load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test")
16401640
+
16411641
+go_library(
@@ -1651,7 +1651,6 @@ diff -urN a/internal/impl/BUILD.bazel b/internal/impl/BUILD.bazel
16511651
+ "codec_map_go112.go",
16521652
+ "codec_message.go",
16531653
+ "codec_messageset.go",
1654-
+ "codec_reflect.go",
16551654
+ "codec_tables.go",
16561655
+ "codec_unsafe.go",
16571656
+ "convert.go",
@@ -1672,7 +1671,6 @@ diff -urN a/internal/impl/BUILD.bazel b/internal/impl/BUILD.bazel
16721671
+ "message_reflect.go",
16731672
+ "message_reflect_field.go",
16741673
+ "message_reflect_gen.go",
1675-
+ "pointer_reflect.go",
16761674
+ "pointer_unsafe.go",
16771675
+ "validate.go",
16781676
+ "weak.go",
@@ -1919,14 +1917,13 @@ diff -urN a/internal/set/BUILD.bazel b/internal/set/BUILD.bazel
19191917
diff -urN a/internal/strs/BUILD.bazel b/internal/strs/BUILD.bazel
19201918
--- a/internal/strs/BUILD.bazel 1970-01-01 00:00:00.000000000 +0000
19211919
+++ b/internal/strs/BUILD.bazel 2000-01-01 00:00:00.000000000 -0000
1922-
@@ -0,0 +1,29 @@
1920+
@@ -0,0 +1,28 @@
19231921
+load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test")
19241922
+
19251923
+go_library(
19261924
+ name = "strs",
19271925
+ srcs = [
19281926
+ "strings.go",
1929-
+ "strings_pure.go",
19301927
+ "strings_unsafe_go120.go",
19311928
+ "strings_unsafe_go121.go",
19321929
+ ],
@@ -3355,7 +3352,7 @@ diff -urN a/reflect/protorange/BUILD.bazel b/reflect/protorange/BUILD.bazel
33553352
diff -urN a/reflect/protoreflect/BUILD.bazel b/reflect/protoreflect/BUILD.bazel
33563353
--- a/reflect/protoreflect/BUILD.bazel 1970-01-01 00:00:00.000000000 +0000
33573354
+++ b/reflect/protoreflect/BUILD.bazel 2000-01-01 00:00:00.000000000 -0000
3358-
@@ -0,0 +1,40 @@
3355+
@@ -0,0 +1,39 @@
33593356
+load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test")
33603357
+
33613358
+go_library(
@@ -3368,7 +3365,6 @@ diff -urN a/reflect/protoreflect/BUILD.bazel b/reflect/protoreflect/BUILD.bazel
33683365
+ "type.go",
33693366
+ "value.go",
33703367
+ "value_equal.go",
3371-
+ "value_pure.go",
33723368
+ "value_union.go",
33733369
+ "value_unsafe_go120.go",
33743370
+ "value_unsafe_go121.go",

0 commit comments

Comments
 (0)