Skip to content

Commit

Permalink
Rename modquery to mod
Browse files Browse the repository at this point in the history
- Since we're considering adding more subcommands that don't exactly "query", such as `bazel mod upgrade` etc.
- `bazel modquery show` is renamed to `bazel mod show_repo` (`show_extension` is unchanged)
- `bazel modquery tree` is renamed to `bazel mod graph`.

bazelbuild/bazel#15365

Co-authored-by: Xùdōng Yáng <wyverald@gmail.com>
PiperOrigin-RevId: 547553222
  • Loading branch information
2 people authored and Copybara-Service committed Jul 12, 2023
1 parent 4f2b7ee commit 70e25dd
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions third_party/bazel/src/main/protobuf/failure_details.proto
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ message FailureDetail {
StarlarkLoading starlark_loading = 179;
ExternalDeps external_deps = 181;
DiffAwareness diff_awareness = 182;
ModqueryCommand modquery_command = 183;
ModCommand mod_command = 183;
BuildReport build_report = 184;
}

Expand Down Expand Up @@ -1303,9 +1303,9 @@ message DiffAwareness {
Code code = 1;
}

message ModqueryCommand {
message ModCommand {
enum Code {
MODQUERY_COMMAND_UNKNOWN = 0 [(metadata) = { exit_code: 37 }];
MOD_COMMAND_UNKNOWN = 0 [(metadata) = { exit_code: 37 }];
MISSING_ARGUMENTS = 1 [(metadata) = { exit_code: 2 }];
TOO_MANY_ARGUMENTS = 2 [(metadata) = { exit_code: 2 }];
INVALID_ARGUMENTS = 3 [(metadata) = { exit_code: 2 }];
Expand Down

0 comments on commit 70e25dd

Please sign in to comment.