Skip to content

Commit

Permalink
Move VENDOR.bazel globals to their own page
Browse files Browse the repository at this point in the history
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
  • Loading branch information
Wyverald authored and copybara-github committed Jun 10, 2024
1 parent 72b4ad0 commit 05cdac8
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -32,14 +32,15 @@ enum Environment {
ALL(
"All Bazel files",
"Methods available in all Bazel files, including .bzl files, BUILD, MODULE.bazel,"
+ " and WORKSPACE."),
+ " VENDOR.bazel, and WORKSPACE."),
BZL(".bzl files", "Global methods available in all .bzl files."),
BUILD(
"BUILD files",
"Methods available in BUILD files. See also the Build"
+ " Encyclopedia for extra <a href=\"${link functions}\">functions</a> and build rules,"
+ " which can also be used in BUILD files."),
MODULE("MODULE.bazel files", "Methods available in MODULE.bazel files."),
VENDOR("VENDOR.bazel files", "Methods available in VENDOR.bazel files."),
WORKSPACE("WORKSPACE files", "Methods available in WORKSPACE files.");

private final String title;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
import net.starlark.java.eval.Tuple;

/** Definition of the functions used in VENDOR.bazel file. */
@GlobalMethods(environment = Environment.MODULE)
@GlobalMethods(environment = Environment.VENDOR)
public final class VendorFileGlobals {
private VendorFileGlobals() {}

Expand Down

0 comments on commit 05cdac8

Please sign in to comment.