Stage 4 of the road to 1.0.0: make it expressive. Manifests can now say version: 2, the format 1.0.0 will promise to keep. Version 1 manifests keep working unchanged, and comtrya manifests upgrade converts them. 1.0.0 will be the last 0.13.x with that promise added.
Install
curl -fsSL https://comtrya.dev/install.sh | sh
Windows: irm https://comtrya.dev/install.ps1 | iex. Or cargo install comtrya.
Manifest version 2
A chapter of its own and a migration page explain it. In short:
- The manifest is parsed first, then each value is rendered on its own, so an error names the value; the manifest's where is checked before any template (#786)
- A value that is only a template can become a number or a boolean (#788)
- One name per action and field: from/to everywhere, also on file.link; old aliases are refused with the name to use (#786, #787)
- Variants set only the fields that differ from their action, and where picks the variant (#789)
- Files next to the manifest with ./, so your own folder layout works without files/ (#790)
- title names an action in the log (#786)
- register on command.run keeps its stdout, stderr and exit code for later where conditions and templates (#792)
- schema-v2.json for editors (#792)
- comtrya manifests upgrade shows how a version 1 manifest looks in version 2, --write changes the files. A manifest that only needs version: 2 keeps its text and comments, and files that aren't manifests are left alone (#794, #796)
Features
- package.install takes state: present | latest | absent with every provider, in both versions (#791, #793, #26)
- present installs only the missing packages, so a second run does nothing (#800, #805)
- ignore globs in Comtrya.yaml leave files that aren't manifests out (#785)
- manifest.name and manifest.dir contexts, in both versions (#790, #317)
- user.cache_dir context (#799)
Changed
- apt uses apt-get, whose command line is stable for scripts, and doesn't keep downloaded packages. A sudoers rule that lets comtrya run only apt without a password needs apt-get too (#802)
- apt runs apt-get update first when its package lists don't know a package, like on a fresh system (#801)
- An action skipped by its where says so in the log, instead of "nothing to be done to reconcile action" (#806)
- The log line of an action with variants names the variant that ran (#803)
- file.link without from says it needs from (#787)
Fixes
- The file.link docs had from and to reversed (#804)
Security
- cargo deny ignores RUSTSEC-2026-0620 (curve25519-dalek, through age): comtrya only uses age's passphrase (scrypt) encryption, not the affected code, and no fixed version is released yet (#798)
For contributors
- Compat tests compare with comtrya-lib 0.12.0 (#784)
- docs/book.toml builds with mdBook 0.5