Skip to content

Latest commit

 

History

History
65 lines (52 loc) · 2.83 KB

policy-packs.md

File metadata and controls

65 lines (52 loc) · 2.83 KB
title rootform vendor policy-packs
description Vendor the project's exact Policy Pack source selection.

From the project root, vendor policy-packs copies Policy Pack sources selected by its rootform.lock, with licenses and notices. The lock must select at least one Policy Pack. It does not copy Dialects, resolve versions, or change the lock. It can fetch missing selected OCI content unless --offline is set.

Usage

rootform vendor policy-packs [options]

Options

Flag Type Default Description
--offline bool false use no network; copy only local and installed Policy Packs
--project string "" vendor what rootform.lock selects in project dir; paths stay relative to the working directory; default: the working directory
--to string "" copy into directory; default: .rootform/policy-packs in the project

Global options

Flag Type Default Description
-h, --help bool false show how to use rootform vendor policy-packs
--color mode auto color human output: auto|always|never; default: auto
--no-pager bool false print a long report in full instead of opening it in less

--to changes the destination, not the project selection. The default is ./.rootform/policy-packs; when present, project-selected Policy Packs are read exclusively there. An explicit local --policy-pack on a consuming command overlays a Policy Pack of the same name for that invocation; other selected Policy Packs remain active. --offline limits vendoring to verified local or installed content.

Start from a project whose lock selects a Policy Pack, as in Add external content. The commands below do not create that selection.

rootform init . --locked --no-input
rootform vendor policy-packs
rootform vendor policy-packs --offline --to ./offline/policy-packs

The first vendor command prints the default .rootform/policy-packs destination; the second prints ./offline/policy-packs. Both name every copied Policy Pack and version. Copied names and versions go to standard output, diagnostics to standard error. Status 0 means every selected unit was copied; 1 means selected content is invalid, missing, or differs from rootform.lock; 2 means the command was used incorrectly; 3 means no content was selected, rootform.lock is invalid, or --offline needs content that is not installed; and 4 means a file, the Rootform home, or the registry could not be read or written. See Reproduce an analysis offline.