目标

<ph type="x-smartling-placeholder"></ph> 报告问题 查看来源 每晚 · 7.2。 · 7.1敬上 · 7.0 · 6.5 条 · 6.4 依赖项的 build 目标。出现在与依赖项属性labellabel_list)对应的 ctx.attr 字段中。包含以下字段:
  • 标签

    Label Target.label
    目标的标识符。
  • 提供商

    可以使用索引表示法 (target[DefaultInfo]) 按类型访问规则目标的提供程序。您可以使用 in 运算符 (SomeInfo in target) 检查是否存在提供程序。