Skip to content

Commit d841f09

Browse files
authored
Fix Bazel docs url (#947)
1 parent 2a41274 commit d841f09

File tree

3 files changed

+64
-64
lines changed

3 files changed

+64
-64
lines changed

WARNINGS.md

Lines changed: 30 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ if debug:
9292
* Automatic fix: yes
9393
* [Suppress the warning](#suppress): `# buildifier: disable=attr-cfg`
9494

95-
The [Configuration](https://warn.docs.bazel.build/versions/master/skylark/rules.html#configurations)
95+
The [Configuration](https://docs.bazel.build/versions/master/skylark/rules.html#configurations)
9696
`cfg = "data"` is deprecated and has no effect. Consider removing it.
9797

9898
--------------------------------------------------------------------------------
@@ -115,7 +115,7 @@ The `attr.license()` method is almost never used and being deprecated.
115115
* Automatic fix: yes
116116
* [Suppress the warning](#suppress): `# buildifier: disable=attr-non-empty`
117117

118-
The `non_empty` [attribute](https://warn.docs.bazel.build/versions/master/skylark/lib/attr.html)
118+
The `non_empty` [attribute](https://docs.bazel.build/versions/master/skylark/lib/attr.html)
119119
for attr definitions is deprecated, please use `allow_empty` with an opposite value instead.
120120

121121
--------------------------------------------------------------------------------
@@ -140,7 +140,7 @@ for these attributes instead.
140140
* Automatic fix: yes
141141
* [Suppress the warning](#suppress): `# buildifier: disable=attr-single-file`
142142

143-
The `single_file` [attribute](https://warn.docs.bazel.build/versions/master/skylark/lib/attr.html)
143+
The `single_file` [attribute](https://docs.bazel.build/versions/master/skylark/lib/attr.html)
144144
is deprecated, please use `allow_single_file` instead.
145145

146146
--------------------------------------------------------------------------------
@@ -188,7 +188,7 @@ The names `l`, `I`, or `O` can be easily confused with `I`, `l`, or `0` correspo
188188
* Automatic fix: no
189189
* [Suppress the warning](#suppress): `# buildifier: disable=constant-glob`
190190

191-
[Glob function](https://warn.docs.bazel.build/versions/master/be/functions.html#glob)
191+
[Glob function](https://docs.bazel.build/versions/master/be/functions.html#glob)
192192
is used to get a list of files from the depot. The patterns (the first argument)
193193
typically include a wildcard (* character). A pattern without a wildcard is
194194
often useless and sometimes harmful.
@@ -230,16 +230,16 @@ performance (glob can be relatively slow):
230230
* Automatic fix: yes
231231
* [Suppress the warning](#suppress): `# buildifier: disable=ctx-actions`
232232

233-
The following [actions](https://warn.docs.bazel.build/versions/master/skylark/lib/actions.html)
233+
The following [actions](https://docs.bazel.build/versions/master/skylark/lib/actions.html)
234234
are deprecated, please use the new API:
235235

236-
* [`ctx.new_file`](https://warn.docs.bazel.build/versions/master/skylark/lib/ctx.html#new_file)[`ctx.actions.declare_file`](https://warn.docs.bazel.build/versions/master/skylark/lib/actions.html#declare_file)
237-
* `ctx.experimental_new_directory`[`ctx.actions.declare_directory`](https://warn.docs.bazel.build/versions/master/skylark/lib/actions.html#declare_directory)
238-
* [`ctx.file_action`](https://warn.docs.bazel.build/versions/master/skylark/lib/ctx.html#file_action)[`ctx.actions.write`](https://warn.docs.bazel.build/versions/master/skylark/lib/actions.html#write)
239-
* [`ctx.action(command = "...")`](https://warn.docs.bazel.build/versions/master/skylark/lib/ctx.html#action)[`ctx.actions.run_shell`](https://warn.docs.bazel.build/versions/master/skylark/lib/actions.html#run_shell)
240-
* [`ctx.action(executable = "...")`](https://warn.docs.bazel.build/versions/master/skylark/lib/ctx.html#action)[`ctx.actions.run`](https://warn.docs.bazel.build/versions/master/skylark/lib/actions.html#run)
241-
* [`ctx.empty_action`](https://warn.docs.bazel.build/versions/master/skylark/lib/ctx.html#empty_action)[`ctx.actions.do_nothing`](https://warn.docs.bazel.build/versions/master/skylark/lib/actions.html#do_nothing)
242-
* [`ctx.template_action`](https://warn.docs.bazel.build/versions/master/skylark/lib/ctx.html#template_action)[`ctx.actions.expand_template`](https://warn.docs.bazel.build/versions/master/skylark/lib/actions.html#expand_template)
236+
* [`ctx.new_file`](https://docs.bazel.build/versions/master/skylark/lib/ctx.html#new_file)[`ctx.actions.declare_file`](https://docs.bazel.build/versions/master/skylark/lib/actions.html#declare_file)
237+
* `ctx.experimental_new_directory`[`ctx.actions.declare_directory`](https://docs.bazel.build/versions/master/skylark/lib/actions.html#declare_directory)
238+
* [`ctx.file_action`](https://docs.bazel.build/versions/master/skylark/lib/ctx.html#file_action)[`ctx.actions.write`](https://docs.bazel.build/versions/master/skylark/lib/actions.html#write)
239+
* [`ctx.action(command = "...")`](https://docs.bazel.build/versions/master/skylark/lib/ctx.html#action)[`ctx.actions.run_shell`](https://docs.bazel.build/versions/master/skylark/lib/actions.html#run_shell)
240+
* [`ctx.action(executable = "...")`](https://docs.bazel.build/versions/master/skylark/lib/ctx.html#action)[`ctx.actions.run`](https://docs.bazel.build/versions/master/skylark/lib/actions.html#run)
241+
* [`ctx.empty_action`](https://docs.bazel.build/versions/master/skylark/lib/ctx.html#empty_action)[`ctx.actions.do_nothing`](https://docs.bazel.build/versions/master/skylark/lib/actions.html#do_nothing)
242+
* [`ctx.template_action`](https://docs.bazel.build/versions/master/skylark/lib/ctx.html#template_action)[`ctx.actions.expand_template`](https://docs.bazel.build/versions/master/skylark/lib/actions.html#expand_template)
243243

244244
--------------------------------------------------------------------------------
245245

@@ -250,10 +250,10 @@ are deprecated, please use the new API:
250250
* Automatic fix: yes
251251
* [Suppress the warning](#suppress): `# buildifier: disable=ctx-args`
252252

253-
It's deprecated to use the [`add`](https://warn.docs.bazel.build/versions/master/skylark/lib/Args.html#add)
253+
It's deprecated to use the [`add`](https://docs.bazel.build/versions/master/skylark/lib/Args.html#add)
254254
method of `ctx.actions.args()` to add a list (or a depset) of variables. Please use either
255-
[`add_all`](https://warn.docs.bazel.build/versions/master/skylark/lib/Args.html#add_all) or
256-
[`add_joined`](https://warn.docs.bazel.build/versions/master/skylark/lib/Args.html#add_joined),
255+
[`add_all`](https://docs.bazel.build/versions/master/skylark/lib/Args.html#add_all) or
256+
[`add_joined`](https://docs.bazel.build/versions/master/skylark/lib/Args.html#add_joined),
257257
depending on the desired behavior.
258258

259259
--------------------------------------------------------------------------------
@@ -277,7 +277,7 @@ the [`function-docstring`](function-docstring) warning.
277277
* Automatic fix: no
278278
* [Suppress the warning](#suppress): `# buildifier: disable=depset-items`
279279

280-
The `items` parameter for [`depset`](https://warn.docs.bazel.build/versions/master/skylark/lib/globals.html#depset)
280+
The `items` parameter for [`depset`](https://docs.bazel.build/versions/master/skylark/lib/globals.html#depset)
281281
is deprecated. In it's old form it's either a list of direct elements to be
282282
added (use the `direct` or unnamed first parameter instead) or a depset that
283283
becomes a transitive element of the new depset (use the `transitive` parameter
@@ -319,17 +319,17 @@ depset1 | depset2
319319
depset1.union(depset2)
320320
```
321321

322-
Please use the [depset](https://warn.docs.bazel.build/versions/master/skylark/lib/depset.html) constructor
322+
Please use the [depset](https://docs.bazel.build/versions/master/skylark/lib/depset.html) constructor
323323
instead:
324324

325325
```python
326326
depset(transitive = [depset1, depset2])
327327
```
328328

329329
When fixing this issue, make sure you
330-
[understand depsets](https://warn.docs.bazel.build/versions/master/skylark/depsets.html)
330+
[understand depsets](https://docs.bazel.build/versions/master/skylark/depsets.html)
331331
and try to
332-
[reduce the number of calls to depset](https://warn.docs.bazel.build/versions/master/skylark/performance.html#reduce-the-number-of-calls-to-depset).
332+
[reduce the number of calls to depset](https://docs.bazel.build/versions/master/skylark/performance.html#reduce-the-number-of-calls-to-depset).
333333

334334
--------------------------------------------------------------------------------
335335

@@ -399,7 +399,7 @@ To fix the issue just change the name attribute of one rule/macro.
399399
* [Suppress the warning](#suppress): `# buildifier: disable=filetype`
400400

401401
The function `FileType` is deprecated. Instead of using it as an argument to the
402-
[`rule` function](https://warn.docs.bazel.build/versions/master/skylark/lib/globals.html#rule)
402+
[`rule` function](https://docs.bazel.build/versions/master/skylark/lib/globals.html#rule)
403403
just use a list of strings.
404404

405405
--------------------------------------------------------------------------------
@@ -532,7 +532,7 @@ Transforming `x += [expr]` to `x.append(expr)` avoids a list allocation.
532532

533533
### Background
534534

535-
[load](https://warn.docs.bazel.build/versions/master/skylark/concepts.html#loading-an-extension)
535+
[load](https://docs.bazel.build/versions/master/skylark/concepts.html#loading-an-extension)
536536
is used to import definitions in a BUILD file. If the definition is not used in
537537
the file, the load can be safely removed. If a symbol is loaded two times, you
538538
will get a warning on the second occurrence.
@@ -712,7 +712,7 @@ of a symbol load and its usage can change resulting in runtime error.
712712
* [Suppress the warning](#suppress): `# buildifier: disable=output-group`
713713

714714
The `output_group` field of a target is deprecated in favor of the
715-
[`OutputGroupInfo` provider](https://warn.docs.bazel.build/versions/master/skylark/lib/OutputGroupInfo.html).
715+
[`OutputGroupInfo` provider](https://docs.bazel.build/versions/master/skylark/lib/OutputGroupInfo.html).
716716

717717
--------------------------------------------------------------------------------
718718

@@ -749,9 +749,9 @@ x = depset(..., transitive = [y.deps for y in ...])
749749
```
750750

751751
For more information, read Bazel documentation about
752-
[depsets](https://warn.docs.bazel.build/versions/master/skylark/depsets.html)
752+
[depsets](https://docs.bazel.build/versions/master/skylark/depsets.html)
753753
and
754-
[reducing the number of calls to depset](https://warn.docs.bazel.build/versions/master/skylark/performance.html#reduce-the-number-of-calls-to-depset).
754+
[reducing the number of calls to depset](https://docs.bazel.build/versions/master/skylark/performance.html#reduce-the-number-of-calls-to-depset).
755755

756756
--------------------------------------------------------------------------------
757757

@@ -763,7 +763,7 @@ and
763763
* [Suppress the warning](#suppress): `# buildifier: disable=package-name`
764764

765765
The global variable `PACKAGE_NAME` is deprecated, please use
766-
[`native.package_name()`](https://warn.docs.bazel.build/versions/master/skylark/lib/native.html#package_name)
766+
[`native.package_name()`](https://docs.bazel.build/versions/master/skylark/lib/native.html#package_name)
767767
instead.
768768

769769
--------------------------------------------------------------------------------
@@ -873,7 +873,7 @@ AllInfo = provider("This provider accepts any field.", fields = None)
873873
NoneInfo = provider("This provider cannot have fields.", fields = [])
874874
```
875875

876-
See the [documentation for providers](https://warn.docs.bazel.build/versions/master/skylark/lib/globals.html#provider).
876+
See the [documentation for providers](https://docs.bazel.build/versions/master/skylark/lib/globals.html#provider).
877877

878878
--------------------------------------------------------------------------------
879879

@@ -906,7 +906,7 @@ forbid reassignment, but not every side-effect.
906906
* [Suppress the warning](#suppress): `# buildifier: disable=repository-name`
907907

908908
The global variable `REPOSITORY_NAME` is deprecated, please use
909-
[`native.repository_name()`](https://warn.docs.bazel.build/versions/master/skylark/lib/native.html#repository_name)
909+
[`native.repository_name()`](https://docs.bazel.build/versions/master/skylark/lib/native.html#repository_name)
910910
instead.
911911

912912
--------------------------------------------------------------------------------
@@ -932,9 +932,9 @@ know certain parts of the code cannot be reached, add the statement
932932
* [Suppress the warning](#suppress): `# buildifier: disable=rule-impl-return`
933933

934934
Returning structs from rule implementation functions is
935-
[deprecated](https://warn.docs.bazel.build/versions/master/skylark/rules.html#migrating-from-legacy-providers),
935+
[deprecated](https://docs.bazel.build/versions/master/skylark/rules.html#migrating-from-legacy-providers),
936936
consider using
937-
[providers](https://warn.docs.bazel.build/versions/master/skylark/rules.html#providers)
937+
[providers](https://docs.bazel.build/versions/master/skylark/rules.html#providers)
938938
or lists of providers instead.
939939

940940
--------------------------------------------------------------------------------
@@ -947,7 +947,7 @@ or lists of providers instead.
947947

948948
### Background
949949

950-
[load](https://warn.docs.bazel.build/versions/master/skylark/concepts.html#loading-an-extension)
950+
[load](https://docs.bazel.build/versions/master/skylark/concepts.html#loading-an-extension)
951951
is used to import definitions in a BUILD file. If the same label is used for loading
952952
symbols more the ones, all such loads can be merged into a single one.
953953

0 commit comments

Comments
 (0)