Prepare buildable sources for components
Prepare buildable sources for a component by fetching the upstream spec and source files, then applying any configured overlays.
The result is a directory containing the spec file and all sources, ready for inspection or manual building. This is useful for verifying that overlays apply cleanly before running a full build.
Only one component may be selected at a time.
azldev component prepare-sources [flags]
# Prepare sources for a component
azldev component prep-sources -p curl -o ./build/work/scratch/curl --force
# Prepare without applying overlays (raw upstream sources)
azldev component prep-sources -p curl -o ./build/work/scratch/curl --skip-overlays --force
-a, --all-components Include all components
--allow-no-hashes compute missing hashes by downloading source files from their origin
-p, --component stringArray Component name pattern
-g, --component-group stringArray Component group name
--force delete and recreate the output directory if it already exists
-h, --help help for prepare-sources
-o, --output-dir string output directory
--skip-overlays skip applying overlays to prepared sources
-s, --spec-path stringArray Spec path
--with-git Create a dist-git repository with synthetic commit history (requires a project git repository)
-y, --accept-all accept all prompts
--color mode output colorization mode {always, auto, never} (default auto)
--config-file stringArray additional TOML config file(s) to merge (may be repeated)
-n, --dry-run dry run only (do not take action)
--network-retries int maximum number of attempts for network operations (minimum 1) (default 3)
--no-default-config disable default configuration
-O, --output-format fmt output format {csv, json, markdown, table} (default table)
--permissive-config do not fail on unknown fields in TOML config files
-C, --project string path to Azure Linux project
-q, --quiet only enable minimal output
-v, --verbose enable verbose output
- azldev component - Manage components