Skip to content

Latest commit

 

History

History
67 lines (50 loc) · 2.69 KB

File metadata and controls

67 lines (50 loc) · 2.69 KB

azldev component query

Query info from locally rendered component specs

Synopsis

Query detailed information for components from their locally rendered specs.

This command reads the post-overlay specs from the project's rendered-specs-dir (produced by 'azldev component render') and runs rpmspec against them in a single shared mock chroot, batching all specs into one chroot invocation with parallel per-spec processing. For each component, it reports the source NEVR and the list of binary subpackages the spec would produce when built.

The rendered-specs-dir must exist on disk; if it doesn't, run 'azldev component render' first. Components that previously failed to render (those with a RENDER_FAILED marker file) are skipped with a warning.

azldev component query [flags]

Examples

  # Query a single component
  azldev component query -p curl

  # Query with JSON output
  azldev component query -p bash -q -O json

Options

  -a, --all-components                Include all components
      --arch arch                     Target architecture passed to rpmspec via --target (x86_64, aarch64). Defaults to x86_64. Specs that ExclusiveArch/ExcludeArch-exclude the target are emitted with only the component name populated rather than as errors. (default x86_64)
  -p, --component stringArray         Component name pattern
  -g, --component-group stringArray   Component group name
  -h, --help                          help for query
      --skip-lock-validation          skip lock file consistency checks
  -s, --spec-path stringArray         Spec path

Options inherited from parent commands

  -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
      --without-lockfile          preview: track resolved upstream commits in generated config instead of lock files

SEE ALSO