diff options
| author | tv <tv@krebsco.de> | 2026-12-04 18:09:38 +0000 |
|---|---|---|
| committer | tv <tv@krebsco.de> | 2026-12-04 18:59:12 +0000 |
| commit | 5c6c878ae8c7ce8b04f4b540a04cbed7a4b37f38 (patch) | |
| tree | 89ea2ea643809dca4242110df99f8d3973aaeadd /CHANGELOG.md | |
| parent | 9f64a8d003bd301a6499bf7a6f60e6cf0b533162 (diff) | |
A value that is gone is not a failure: a key taken out of a secret
store is one thing, a wrong passphrase another. An importer says in its
table what tells the first: absent.status = N of a command, that exit
status of a normal exit; absent.missing = true of a file; absent.unset =
true of an environment variable. Nothing is built in, as tools disagree,
and nothing is absent unless the importer says so.
Any status may be said but 0, which says that there is a value: which
one nothing else gives is the writer's to know, and the documentation
tells what gives which. A script says its status with exit, and the
shell exits with exactly that; where a shell exits by itself (a line it
can't read, an expansion that fails), POSIX leaves the status open
within 1 to 125, and bash, dash and BusyBox ash use 1 and 2; 126, 127
and those above 128 are a command that can't be run, one that isn't
found, and one a signal killed. So a script says absent with a status
from 3 to 125.
fetch and its kin give the typed error import::Absent then, with the
importer as written and what told, and Importer::found_in tells it from
a value. Only the importer asked is absent: one inside another that is
makes that one fail. continuum takes an option's absent value for a
failure.
Diffstat (limited to 'CHANGELOG.md')
| -rw-r--r-- | CHANGELOG.md | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/CHANGELOG.md b/CHANGELOG.md index 76968c0..71ea7cc 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -36,6 +36,15 @@ it from the release before ([`docs/operations.md`](docs/operations.md), ([`docs/configuration.md`](docs/configuration.md), [Importing values](docs/configuration.md#importing-values)). +* An importer says what tells that its value is absent, apart from failing: + `absent.status = N` of a command (that exit status), + `absent.missing = true` of a + file, `absent.unset = true` of an environment variable, in its table. Nothing is + absent unless it says so. continuum takes an option's absent value for a failure; a + program on the `config` crate tells it by `import::Absent` + ([`docs/configuration.md`](docs/configuration.md), + [Absent values](docs/configuration.md#absent-values)). + * A configuration names importers of its own: `[meta.importer]` in a file, or `--meta-importer-NAME IMPORTER`, makes `NAME:REST`, `{ NAME = "REST" }` and `$(NAME:REST)` that importer, with `REST` as its variable `name`: a secret store's |
