the Chromium logo

The Chromium Projects

Directory metadata

CrOS utilizes DIR_METADATA files to make it easy for others to report bugs and to find relevant team contact information. Filling these out in project is important for getting developers in touch with the right people quickly.

Formatting

Since DIR_METADATA files are text protobufs, follow that style:

The cros format tool can handle some basic formatting checks.

Here's an example:

# Metadata information for this directory.
#
# For more information on DIR_METADATA files, see:
#   https://www.chromium.org/chromium-os/developer-library/reference/development/dir-metadata/
#
# For the schema of this file, see Metadata message:
#   https://source.chromium.org/chromium/infra/infra/+/HEAD:go/src/infra/tools/dirmd/proto/dir_metadata.proto

buganizer {
  component_id: 1027774  # ChromeOS > Infra > Build
}

buganizer_public {
  component_id: 1037860  # ChromeOS Public Tracker > Services > Infra > Build
}

team_email: "chromeos-build-discuss@google.com"

Validation

Use cros lint to verify the correctness of the file.

Best Practices

Here is a random list of thoughts.

Limitations

There are a few known issues with the format.