diff options
Diffstat (limited to 'src/main/java/com/google/devtools/build/lib/query2/output')
-rw-r--r-- | src/main/java/com/google/devtools/build/lib/query2/output/OutputFormatter.java | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/main/java/com/google/devtools/build/lib/query2/output/OutputFormatter.java b/src/main/java/com/google/devtools/build/lib/query2/output/OutputFormatter.java index 7b053163cc..81f2dd1183 100644 --- a/src/main/java/com/google/devtools/build/lib/query2/output/OutputFormatter.java +++ b/src/main/java/com/google/devtools/build/lib/query2/output/OutputFormatter.java @@ -418,6 +418,12 @@ public abstract class OutputFormatter implements Serializable { RawAttributeMapper attributeMap = RawAttributeMapper.of(rule); for (Attribute attr : rule.getAttributes()) { + // Ignore the "name" attribute here, as we already print it above. + // This is not strictly necessary, but convention has it that the + // name attribute is printed first. + if ("name".equals(attr.getName())) { + continue; + } if (attributeMap.isConfigurable(attr.getName(), attr.getType())) { continue; // TODO(bazel-team): handle configurable attributes. } |