Skip to content

Commit 05cdac8

Browse files
Wyveraldcopybara-github
authored andcommitted
Move VENDOR.bazel globals to their own page
Currently `pin` and `ignore` show up in the page for MODULE.bazel globals (https://bazel.build/rules/lib/globals/module#pin). They should be in their own page instead. PiperOrigin-RevId: 641816839 Change-Id: I923ec2e800870dd565ea3e2ba36886b5e92ba947
1 parent 72b4ad0 commit 05cdac8

2 files changed

Lines changed: 3 additions & 2 deletions

File tree

src/main/java/com/google/devtools/build/docgen/annot/GlobalMethods.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,14 +32,15 @@ enum Environment {
3232
ALL(
3333
"All Bazel files",
3434
"Methods available in all Bazel files, including .bzl files, BUILD, MODULE.bazel,"
35-
+ " and WORKSPACE."),
35+
+ " VENDOR.bazel, and WORKSPACE."),
3636
BZL(".bzl files", "Global methods available in all .bzl files."),
3737
BUILD(
3838
"BUILD files",
3939
"Methods available in BUILD files. See also the Build"
4040
+ " Encyclopedia for extra <a href=\"${link functions}\">functions</a> and build rules,"
4141
+ " which can also be used in BUILD files."),
4242
MODULE("MODULE.bazel files", "Methods available in MODULE.bazel files."),
43+
VENDOR("VENDOR.bazel files", "Methods available in VENDOR.bazel files."),
4344
WORKSPACE("WORKSPACE files", "Methods available in WORKSPACE files.");
4445

4546
private final String title;

src/main/java/com/google/devtools/build/lib/packages/VendorFileGlobals.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
import net.starlark.java.eval.Tuple;
2828

2929
/** Definition of the functions used in VENDOR.bazel file. */
30-
@GlobalMethods(environment = Environment.MODULE)
30+
@GlobalMethods(environment = Environment.VENDOR)
3131
public final class VendorFileGlobals {
3232
private VendorFileGlobals() {}
3333

0 commit comments

Comments
 (0)