fuchsia_products_repository

初始化 SDK 隨附圖片的目標。

使用範例: ```

初始化存放區:

load("@rules_fuchsia//fuchsia:deps.bzl", "fuchsia_products_repository")

fuchsia_products_repository( name = "fuchsia_products", cipd_bin = "@cipd_tool//:cipd", ensure_file = "//manifests:product_bundles.ensure", )

檢查產生的目標:

$ bazel query '@fuchsia_products//... except attr("tags", "manual", @fuchsia_products//...)'

使用目標:

$ bazel run @fuchsia_products//:core.x64.emu -- --headless

$ bazel run @fuchsia_products//:core.vim3.flash

屬性

名稱 說明 類型 必要 預設
name 這個存放區的專屬名稱。 名稱 必要 -
repo_mapping 僅在 WORKSPACE 環境中:從本機存放區名稱到全域存放區名稱的字典,能讓您控管這個存放區的依附元件在工作區中的解析方式。

舉例來說,項目 "@foo": "@bar" 宣告,每當這個存放區依附於 @foo (例如依附於 @foo//some:target),實際上都應在全域宣告的 @bar (@bar//some:target) 中解析該依附元件。

在 MODULE.bazel 環境中 (在模組擴充功能的實作函式內叫用存放區規則時),不支援這個屬性。
字串字典 選用 -
cipd_bin 用於下載隨附圖片中繼資料的 cipd 二進位檔。 標籤 選用 None
ensure_file 用於下載隨附圖片中繼資料的 cipd 確保檔案。 標籤 選用 None
metadata_file 參照 product_bundles.json 的標籤。 標籤 選用 None