From ceb1013c1ca0238188e2714442fcfb2efb16bc6a Mon Sep 17 00:00:00 2001 From: ccalvarin Date: Tue, 10 Oct 2017 05:29:56 +0200 Subject: Report the structured Bazel command line via the BEP. This is part of the effort outlined in https://bazel.build/designs/2017/07/13/improved-command-line-reporting.html. The refactoring of the options parser is not yet complete, so we still do not have complete & correct information about the canonical command line. Where the information is blatantly incorrect, a best approximation was made, with comments and tests documenting the deficiencies. Change the names of the initial CommandLine fields in the BEP to be explicitly identified as unstructured. RELNOTES: None. PiperOrigin-RevId: 171625377 --- src/main/protobuf/BUILD | 2 +- src/main/protobuf/command_line.proto | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'src/main/protobuf') diff --git a/src/main/protobuf/BUILD b/src/main/protobuf/BUILD index f700ffbe76..ca2ba0c1af 100644 --- a/src/main/protobuf/BUILD +++ b/src/main/protobuf/BUILD @@ -65,7 +65,7 @@ java_library_srcs( proto_library( name = "command_line_proto", srcs = ["command_line.proto"], - visibility = ["//visibility:private"], + visibility = ["//src/main/java/com/google/devtools/build/lib/buildeventstream/proto:__pkg__"], deps = [":option_filters_proto"], ) diff --git a/src/main/protobuf/command_line.proto b/src/main/protobuf/command_line.proto index e1ced1fb3f..d5fa6aceb8 100644 --- a/src/main/protobuf/command_line.proto +++ b/src/main/protobuf/command_line.proto @@ -26,7 +26,7 @@ message CommandLine { // In particular, a single invocation may wish to report both the literal and // canonical command lines, and this label would be used to differentiate // between both versions. This is a string for flexibility. - string label = 1; + string command_line_label = 1; // A Bazel command line is made of distinct parts. For example, // `bazel --nomaster_bazelrc test --nocache_test_results //foo:aTest` -- cgit v1.2.3