| KAS-LOCK(1) | kas | KAS-LOCK(1) |
kas-lock - kas lock plugin
kas lock [-h] [--skip STEP] [--force-checkout] [--update] [--indent INDENT]
[--sort]
[config]
Create and update kas project lockfiles.
This plugin implements the kas lock command.
When this command is executed a locking spec is created which only contains the exact commit of each repository. This is used to pin the commit of floating branches and tags, while still keeping an easy update path. The lockfile is created next to the first file on the kas cmdline. For details on the locking support, see kas.includehandler.IncludeHandler.
NOTE:
Updating lockfiles
When updating lockfiles, kas attempts to update the repository revisions in the lockfile that defines the revision. If a repository is exclusively locked in an external lockfile, this lock is not updated (we cannot modify an external repository). However, if the revision is also defined in a local lockfile, it is updated in the local lockfile.
The algorithm for determining where to pin the revision of a repository is as follows:
Examples
The lockfile is created as kas-project.lock.yml. Call again to regenerate lockfile:
kas lock --update kas-project.yml
The generated lockfile will automatically be used to pin the revisions:
kas build kas-project.yml
Note, that the lockfiles should be checked-in into the VCS.
Positional Arguments
Named Arguments
Possible choices: setup_dir, setup_home, init_setup_repos, repo_setup_loop, finish_setup_repos, repos_checkout, repos_check_signatures, repos_apply_patches, setup_environ, write_bbconfig
Part of the kas(1) suite.
Daniel Wagner, Jan Kiszka, Claudius Heine
Siemens and contributors, 2017-2025
| June 17, 2025 | 4.8.1 |