Me wearing ridiculous goggles

Cobble Syntax Reference

Identifiers

Cobble uses identifiers to refer to targets (and, rarely, packages).

A complete identifier has the form

//path/to/package:target_name

For this identifier to be valid:

  1. There should be a BUILD file at ${ROOT}/path/to/package/BUILD.
  2. It should define a target called target_name.

Cobble accepts two kinds of incomplete identifiers.

  1. Relative identifiers reference a target defined in the current BUILD file, and omit everything before the colon: :target_name

  2. Default identifiers omit the colon and target name. They reference a target with the same name as the last component of the package path. For example, //path/to/package implies that there is a target called package.

More Cliffle

By Topic