# Prebuilt CIPD packages in Fuchsia

The Fuchsia project uses Chrome Infrastructure Package Deployment
([CIPD](https://github.com/luci/luci-go/tree/HEAD/cipd)) to store
and distribute prebuilt files.

> [!NOTE]
> **Note:** A CIPD store is not a package server for Fuchsia devices. In other words, a Fuchsia device doesn't run components from prebuilt CIPD packages.

A CIPD package is an arbitrary collection of files, stored in
[a remote content-addressed store](https://chrome-infra-packages.appspot.com/p/fuchsia),
and is distributed to a Fuchsia checkout through the
`https://fuchsia.googlesource.com/jiri/+/HEAD/`
tool. Also, using the `cipd` command-line tool, you can download a CIPD package
directly, for example, to examine its content.

CIPD packages are typically used to distribute the following files:

- Host prebuilt binaries required by the build (for example, clang toolchain).
- Fuchsia prebuilt [ELF](https://en.wikipedia.org/wiki/Executable_and_Linkable_Format) binaries generated out-of-tree (for example, Goldfish Vulkan ICD).
- Prebuilt Fuchsia archive ([FAR](https://fuchsia.dev/docs/development/source_code/archive_format)) files that contain binaries and metadata for software that is built for Fuchsia by other teams (for example, [chromium/fuchsia/webrunner-arm64](https://chrome-infra-packages.appspot.com/p/chromium/fuchsia/webrunner-arm64/+/)).

Once you set up continuous integration (CI) with Fuchsia, Fuchsia's CI system
fetches those new packages and rolls them into the Fuchsia project through the
[global integration](https://fuchsia.googlesource.com/integration/+/refs/heads/master)
process.

![The latest ref and other refs shown in the CIPD UI](https://fuchsia.dev/static/docs/images/prebuilt_packages/publish-prebuilt-packages-to-fuchsia-00.png) **Figure 1**. The CIPD UI shows the latest ref and other refs used for this CIPD package instances.

<br />

When you publish a new revision of your prebuilt package to CIPD, the `latest`
[ref](https://github.com/luci/luci-go/tree/HEAD/cipd#refs) in the
CIPD store automatically points to the new revision. Fuchsia's CI system
monitors your package's `latest` ref. When it detects that the `latest` ref is
updated, the system fetches the new package and rolls it into the Fuchsia
project.
[](https://issues.fuchsia.dev/issues/new?component=1439230&template=1881640&description=Issue+on:+https://fuchsia.dev/docs/development/prebuilt_packages/prebuilt_cipd_packages_in_fuchsia.md "Report a bug or suggest improvements on this page") [](https://cs.opensource.google/fuchsia/fuchsia/+/main:docs/development/prebuilt_packages/prebuilt_cipd_packages_in_fuchsia.md "View the source code of this page") [](https://ci.android.com/edit?repo=fuchsia/fuchsia/main&file=docs/development/prebuilt_packages/prebuilt_cipd_packages_in_fuchsia.md&cloneRepo=fuchsia/fuchsia:refs/heads/main&fullPath=fuchsia/docs/development/prebuilt_packages/prebuilt_cipd_packages_in_fuchsia.md "Edit the source code of this page")