archive_extract

Extract a local ZIP archive into a cacheable directory.

Attributes#

AttributeTypeRequiredDescription
sourcestringyesPackage-relative ZIP archive

source is not configurable by platform select. Declare the archive as a source input so changing its contents invalidates extraction.

Providers and capabilities#

The target emits the artifact provider with an artifact_root directory and exposes build with default and artifact output groups. Dependencies can use the extracted directory during their analysis.

This target reads a local ZIP. Use archive_download when the archive must first be downloaded and checksum-verified. Neither target resolves package versions or publishes a native lockfile.

Example#

toml
[[target]] name = "local-archive" kind = "archive_extract" srcs = ["dependency.zip"] [target.attrs] source = "dependency.zip"