update links to bazel docs (#306)

This commit is contained in:
aiuto 2021-06-16 13:00:06 -04:00 committed by GitHub
parent c6f6b5425b
commit fd75066f15
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
10 changed files with 14 additions and 14 deletions

View File

@ -41,7 +41,7 @@ Release 0.9.0
https://docs.google.com/document/d/1vc8v-kXjvgZOdQdnxPTaV0rrLxtP2XwnD2tAZlYJOqw/edit#bookmark=id.iiumwic0jphr https://docs.google.com/document/d/1vc8v-kXjvgZOdQdnxPTaV0rrLxtP2XwnD2tAZlYJOqw/edit#bookmark=id.iiumwic0jphr
- selects.bzl: Add config_setting_group for config_setting AND/OR-chaining - selects.bzl: Add config_setting_group for config_setting AND/OR-chaining
Implements Implements
https://github.com/bazelbuild/proposals/blob/master/designs/2018-11-09-config-setting-chaining.md. https://github.com/bazelbuild/proposals/blob/HEAD/designs/2018-11-09-config-setting-chaining.md.
- Make sets.bzl point to new_sets.bzl instead of old_sets.bzl. new_sets.bzl - Make sets.bzl point to new_sets.bzl instead of old_sets.bzl. new_sets.bzl
and old_sets.bzl should be removed in the following skylib release. and old_sets.bzl should be removed in the following skylib release.

View File

@ -57,7 +57,7 @@ Typical usage:
<td> <td>
optional. optional.
<p> <p>
The <a href="https://docs.bazel.build/versions/master/be/common-definitions.html#common-attributes-tests">common attributes for tests</a>. The <a href="https://docs.bazel.build/versions/main/be/common-definitions.html#common-attributes-tests">common attributes for tests</a>.
</p> </p>
</td> </td>
</tr> </tr>

View File

@ -49,7 +49,7 @@ The test succeeds if the files' contents match.
<td> <td>
optional. optional.
<p> <p>
The <a href="https://docs.bazel.build/versions/master/be/common-definitions.html#common-attributes-tests">common attributes for tests</a>. The <a href="https://docs.bazel.build/versions/main/be/common-definitions.html#common-attributes-tests">common attributes for tests</a>.
</p> </p>
</td> </td>
</tr> </tr>

View File

@ -55,7 +55,7 @@ You can "bazel run" this rule like any other binary rule, and use it as a tool i
<td> <td>
optional. optional.
<p> <p>
The <a href="https://docs.bazel.build/versions/master/be/common-definitions.html#common-attributes-binaries">common attributes for binaries</a>. The <a href="https://docs.bazel.build/versions/main/be/common-definitions.html#common-attributes-binaries">common attributes for binaries</a>.
</p> </p>
</td> </td>
</tr> </tr>
@ -121,7 +121,7 @@ runfiles.
<td> <td>
optional. optional.
<p> <p>
The <a href="https://docs.bazel.build/versions/master/be/common-definitions.html#common-attributes-tests">common attributes for tests</a>. The <a href="https://docs.bazel.build/versions/main/be/common-definitions.html#common-attributes-tests">common attributes for tests</a>.
</p> </p>
</td> </td>
</tr> </tr>

View File

@ -29,7 +29,7 @@ Runs a binary as a build action.<br/><br/>This rule does not require Bash (unlik
<td> <td>
List of strings; optional List of strings; optional
<p> <p>
Command line arguments of the binary.<br/><br/>Subject to<code><a href="https://docs.bazel.build/versions/master/be/make-variables.html#location">$(location)</a></code> expansion. Command line arguments of the binary.<br/><br/>Subject to<code><a href="https://docs.bazel.build/versions/main/be/make-variables.html#location">$(location)</a></code> expansion.
</p> </p>
</td> </td>
</tr> </tr>
@ -38,7 +38,7 @@ Runs a binary as a build action.<br/><br/>This rule does not require Bash (unlik
<td> <td>
<a href="https://bazel.build/docs/skylark/lib/dict.html">Dictionary: String -> String</a>; optional <a href="https://bazel.build/docs/skylark/lib/dict.html">Dictionary: String -> String</a>; optional
<p> <p>
Environment variables of the action.<br/><br/>Subject to <code><a href="https://docs.bazel.build/versions/master/be/make-variables.html#location">$(location)</a></code> expansion. Environment variables of the action.<br/><br/>Subject to <code><a href="https://docs.bazel.build/versions/main/be/make-variables.html#location">$(location)</a></code> expansion.
</p> </p>
</td> </td>
</tr> </tr>

View File

@ -41,7 +41,7 @@ def build_test(name, targets, **kwargs):
Args: Args:
name: The name of the test rule. name: The name of the test rule.
targets: A list of targets to ensure build. targets: A list of targets to ensure build.
**kwargs: The <a href="https://docs.bazel.build/versions/master/be/common-definitions.html#common-attributes-tests">common attributes for tests</a>. **kwargs: The <a href="https://docs.bazel.build/versions/main/be/common-definitions.html#common-attributes-tests">common attributes for tests</a>.
""" """
if len(targets) == 0: if len(targets) == 0:
fail("targets must be non-empty", "targets") fail("targets must be non-empty", "targets")

View File

@ -18,7 +18,7 @@ These rules return a BuildSettingInfo with the value of the build setting.
For label-typed settings, use the native label_flag and label_setting rules. For label-typed settings, use the native label_flag and label_setting rules.
More documentation on how to use build settings at More documentation on how to use build settings at
https://docs.bazel.build/versions/master/skylark/config.html#user-defined-build-settings https://docs.bazel.build/versions/main/skylark/config.html#user-defined-build-settings
""" """
BuildSettingInfo = provider( BuildSettingInfo = provider(

View File

@ -135,7 +135,7 @@ def diff_test(name, file1, file2, **kwargs):
name: The name of the test rule. name: The name of the test rule.
file1: Label of the file to compare to <code>file2</code>. file1: Label of the file to compare to <code>file2</code>.
file2: Label of the file to compare to <code>file1</code>. file2: Label of the file to compare to <code>file1</code>.
**kwargs: The <a href="https://docs.bazel.build/versions/master/be/common-definitions.html#common-attributes-tests">common attributes for tests</a>. **kwargs: The <a href="https://docs.bazel.build/versions/main/be/common-definitions.html#common-attributes-tests">common attributes for tests</a>.
""" """
_diff_test( _diff_test(
name = name, name = name,

View File

@ -76,7 +76,7 @@ def native_binary(name, src, out, data = None, **kwargs):
src: label; path of the pre-built executable src: label; path of the pre-built executable
out: output; an output name for the copy of the binary. (Bazel requires that this rule make a copy of 'src'.) out: output; an output name for the copy of the binary. (Bazel requires that this rule make a copy of 'src'.)
data: list of labels; data dependencies data: list of labels; data dependencies
**kwargs: The <a href="https://docs.bazel.build/versions/master/be/common-definitions.html#common-attributes-binaries">common attributes for binaries</a>. **kwargs: The <a href="https://docs.bazel.build/versions/main/be/common-definitions.html#common-attributes-binaries">common attributes for binaries</a>.
""" """
_native_binary( _native_binary(
name = name, name = name,
@ -101,7 +101,7 @@ def native_test(name, src, out, data = None, **kwargs):
src: label; path of the pre-built executable src: label; path of the pre-built executable
out: output; an output name for the copy of the binary. (Bazel requires that this rule make a copy of 'src'.) out: output; an output name for the copy of the binary. (Bazel requires that this rule make a copy of 'src'.)
data: list of labels; data dependencies data: list of labels; data dependencies
**kwargs: The <a href="https://docs.bazel.build/versions/master/be/common-definitions.html#common-attributes-tests">common attributes for tests</a>. **kwargs: The <a href="https://docs.bazel.build/versions/main/be/common-definitions.html#common-attributes-tests">common attributes for tests</a>.
""" """
_native_test( _native_test(
name = name, name = name,

View File

@ -76,7 +76,7 @@ run_binary = rule(
), ),
"env": attr.string_dict( "env": attr.string_dict(
doc = "Environment variables of the action.<br/><br/>Subject to " + doc = "Environment variables of the action.<br/><br/>Subject to " +
" <code><a href=\"https://docs.bazel.build/versions/master/be/make-variables.html#location\">$(location)</a></code>" + " <code><a href=\"https://docs.bazel.build/versions/main/be/make-variables.html#location\">$(location)</a></code>" +
" expansion.", " expansion.",
), ),
"srcs": attr.label_list( "srcs": attr.label_list(
@ -91,7 +91,7 @@ run_binary = rule(
), ),
"args": attr.string_list( "args": attr.string_list(
doc = "Command line arguments of the binary.<br/><br/>Subject to" + doc = "Command line arguments of the binary.<br/><br/>Subject to" +
"<code><a href=\"https://docs.bazel.build/versions/master/be/make-variables.html#location\">$(location)</a></code>" + "<code><a href=\"https://docs.bazel.build/versions/main/be/make-variables.html#location\">$(location)</a></code>" +
" expansion.", " expansion.",
), ),
}, },