Skip to content

Commit efad042

Browse files
committed
update documentation for 0.42.0 release
1 parent c2406b2 commit efad042

File tree

3 files changed

+47
-22
lines changed

3 files changed

+47
-22
lines changed

README.rst

Lines changed: 27 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -73,11 +73,22 @@ Slack: `#go on Bazel Slack`_, `#bazel on Go Slack`_
7373

7474
Announcements
7575
-------------
76+
2023-09-28
77+
Release
78+
`v0.42.0 <https://github.com/bazelbuild/rules_go/releases/tag/v0.42.0>`_
79+
is now available. This release fixes a couple bugs and adds support for
80+
patching the standard library.
81+
82+
2023-07-10
83+
Release
84+
`v0.41.0 <https://github.com/bazelbuild/rules_go/releases/tag/v0.41.0>`_
85+
is now available. rules_go no longer ship with `@go_googleapis` repo.
86+
It requires Gazelle v0.32.0 or later.
7687

7788
2023-06-28
7889
Release
7990
`v0.40.1 <https://github.com/bazelbuild/rules_go/releases/tag/v0.40.1>`_
80-
is now available. This release includes fixes a couple bugs in
91+
is now available. This release fixes a couple bugs in
8192
the go packages driver that were introduced in 0.40.0.
8293

8394
2023-06-22
@@ -253,10 +264,10 @@ Go toolchain and register it for use.
253264
254265
http_archive(
255266
name = "io_bazel_rules_go",
256-
sha256 = "51dc53293afe317d2696d4d6433a4c33feedb7748a9e352072e2ec3c0dafd2c6",
267+
sha256 = "91585017debb61982f7054c9688857a2ad1fd823fc3f9cb05048b0025c47d023",
257268
urls = [
258-
"https://mirror.bazel.build/github.com/bazelbuild/rules_go/releases/download/v0.40.1/rules_go-v0.40.1.zip",
259-
"https://github.com/bazelbuild/rules_go/releases/download/v0.40.1/rules_go-v0.40.1.zip",
269+
"https://mirror.bazel.build/github.com/bazelbuild/rules_go/releases/download/v0.42.0/rules_go-v0.42.0.zip",
270+
"https://github.com/bazelbuild/rules_go/releases/download/v0.42.0/rules_go-v0.42.0.zip",
260271
],
261272
)
262273
@@ -300,19 +311,19 @@ Add the ``bazel_gazelle`` repository and its dependencies to your
300311
301312
http_archive(
302313
name = "io_bazel_rules_go",
303-
sha256 = "51dc53293afe317d2696d4d6433a4c33feedb7748a9e352072e2ec3c0dafd2c6",
314+
sha256 = "91585017debb61982f7054c9688857a2ad1fd823fc3f9cb05048b0025c47d023",
304315
urls = [
305-
"https://mirror.bazel.build/github.com/bazelbuild/rules_go/releases/download/v0.40.1/rules_go-v0.40.1.zip",
306-
"https://github.com/bazelbuild/rules_go/releases/download/v0.40.1/rules_go-v0.40.1.zip",
316+
"https://mirror.bazel.build/github.com/bazelbuild/rules_go/releases/download/v0.42.0/rules_go-v0.42.0.zip",
317+
"https://github.com/bazelbuild/rules_go/releases/download/v0.42.0/rules_go-v0.42.0.zip",
307318
],
308319
)
309320
310321
http_archive(
311322
name = "bazel_gazelle",
312-
sha256 = "727f3e4edd96ea20c29e8c2ca9e8d2af724d8c7778e7923a854b2c80952bc405",
323+
sha256 = "d3fa66a39028e97d76f9e2db8f1b0c11c099e8e01bf363a923074784e451f809",
313324
urls = [
314-
"https://mirror.bazel.build/github.com/bazelbuild/bazel-gazelle/releases/download/v0.30.0/bazel-gazelle-v0.30.0.tar.gz",
315-
"https://github.com/bazelbuild/bazel-gazelle/releases/download/v0.30.0/bazel-gazelle-v0.30.0.tar.gz",
325+
"https://mirror.bazel.build/github.com/bazelbuild/bazel-gazelle/releases/download/v0.33.0/bazel-gazelle-v0.33.0.tar.gz",
326+
"https://github.com/bazelbuild/bazel-gazelle/releases/download/v0.33.0/bazel-gazelle-v0.33.0.tar.gz",
316327
],
317328
)
318329
@@ -426,20 +437,20 @@ automatically from a go.mod or Gopkg.lock file.
426437
# Download the Go rules.
427438
http_archive(
428439
name = "io_bazel_rules_go",
429-
sha256 = "51dc53293afe317d2696d4d6433a4c33feedb7748a9e352072e2ec3c0dafd2c6",
440+
sha256 = "91585017debb61982f7054c9688857a2ad1fd823fc3f9cb05048b0025c47d023",
430441
urls = [
431-
"https://mirror.bazel.build/github.com/bazelbuild/rules_go/releases/download/v0.40.1/rules_go-v0.40.1.zip",
432-
"https://github.com/bazelbuild/rules_go/releases/download/v0.40.1/rules_go-v0.40.1.zip",
442+
"https://mirror.bazel.build/github.com/bazelbuild/rules_go/releases/download/v0.42.0/rules_go-v0.42.0.zip",
443+
"https://github.com/bazelbuild/rules_go/releases/download/v0.42.0/rules_go-v0.42.0.zip",
433444
],
434445
)
435446
436447
# Download Gazelle.
437448
http_archive(
438449
name = "bazel_gazelle",
439-
sha256 = "727f3e4edd96ea20c29e8c2ca9e8d2af724d8c7778e7923a854b2c80952bc405",
450+
sha256 = "d3fa66a39028e97d76f9e2db8f1b0c11c099e8e01bf363a923074784e451f809",
440451
urls = [
441-
"https://mirror.bazel.build/github.com/bazelbuild/bazel-gazelle/releases/download/v0.30.0/bazel-gazelle-v0.30.0.tar.gz",
442-
"https://github.com/bazelbuild/bazel-gazelle/releases/download/v0.30.0/bazel-gazelle-v0.30.0.tar.gz",
452+
"https://mirror.bazel.build/github.com/bazelbuild/bazel-gazelle/releases/download/v0.33.0/bazel-gazelle-v0.33.0.tar.gz",
453+
"https://github.com/bazelbuild/bazel-gazelle/releases/download/v0.33.0/bazel-gazelle-v0.33.0.tar.gz",
443454
],
444455
)
445456

examples/basic-gazelle/WORKSPACE

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6,20 +6,20 @@ load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
66
# checks the sha.
77
http_archive(
88
name = "io_bazel_rules_go",
9-
sha256 = "6b65cb7917b4d1709f9410ffe00ecf3e160edf674b78c54a894471320862184f",
9+
sha256 = "91585017debb61982f7054c9688857a2ad1fd823fc3f9cb05048b0025c47d023",
1010
urls = [
11-
"https://mirror.bazel.build/github.com/bazelbuild/rules_go/releases/download/v0.39.0/rules_go-v0.39.0.zip",
12-
"https://github.com/bazelbuild/rules_go/releases/download/v0.39.0/rules_go-v0.39.0.zip",
11+
"https://mirror.bazel.build/github.com/bazelbuild/rules_go/releases/download/v0.42.0/rules_go-v0.42.0.zip",
12+
"https://github.com/bazelbuild/rules_go/releases/download/v0.42.0/rules_go-v0.42.0.zip",
1313
],
1414
)
1515

1616
# Download the bazel_gazelle ruleset.
1717
http_archive(
1818
name = "bazel_gazelle",
19-
sha256 = "727f3e4edd96ea20c29e8c2ca9e8d2af724d8c7778e7923a854b2c80952bc405",
19+
sha256 = "d3fa66a39028e97d76f9e2db8f1b0c11c099e8e01bf363a923074784e451f809",
2020
urls = [
21-
"https://mirror.bazel.build/github.com/bazelbuild/bazel-gazelle/releases/download/v0.30.0/bazel-gazelle-v0.30.0.tar.gz",
22-
"https://github.com/bazelbuild/bazel-gazelle/releases/download/v0.30.0/bazel-gazelle-v0.30.0.tar.gz",
21+
"https://mirror.bazel.build/github.com/bazelbuild/bazel-gazelle/releases/download/v0.33.0/bazel-gazelle-v0.33.0.tar.gz",
22+
"https://github.com/bazelbuild/bazel-gazelle/releases/download/v0.33.0/bazel-gazelle-v0.33.0.tar.gz",
2323
],
2424
)
2525

go/toolchains.rst

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -313,6 +313,16 @@ This downloads a Go SDK for use in toolchains.
313313
| Go distribution (with a different SHA-256 sum) or a version of Go |
314314
| not supported by rules_go (for example, a beta or release candidate). |
315315
+--------------------------------+-----------------------------+---------------------------------------------+
316+
| :param:`patches` | :type:`label_list` | :value:`[]` |
317+
+--------------------------------+-----------------------------+---------------------------------------------+
318+
| A list of files that are to be applied to go sdk. By default, it uses the Bazel-native patch |
319+
| implementation which doesn't support fuzz match and binary patch, but Bazel will fall back to use |
320+
| patch command line tool if `patch_tool` attribute is specified. |
321+
+--------------------------------+-----------------------------+---------------------------------------------+
322+
| :param:`patch_strip` | :type:`int` | :value:`0` |
323+
+--------------------------------+-----------------------------+---------------------------------------------+
324+
| The number of leading slashes to be stripped from the file name in thepatches. |
325+
+--------------------------------+-----------------------------+---------------------------------------------+
316326

317327
**Example**:
318328

@@ -343,6 +353,10 @@ This downloads a Go SDK for use in toolchains.
343353
"linux_amd64": ("go1.18.1.linux-amd64.tar.gz", "b3b815f47ababac13810fc6021eb73d65478e0b2db4b09d348eefad9581a2334"),
344354
"darwin_amd64": ("go1.18.1.darwin-amd64.tar.gz", "3703e9a0db1000f18c0c7b524f3d378aac71219b4715a6a4c5683eb639f41a4d"),
345355
},
356+
patch_strip = 1,
357+
patches = [
358+
"//patches:cgo_issue_fix.patch",
359+
]
346360
)
347361
348362
go_rules_dependencies()

0 commit comments

Comments
 (0)