1
0
Fork 0
mirror of https://github.com/LnL7/nix-darwin.git synced 2025-03-31 04:04:45 +00:00

gitlab-runner: Fix marshalling of TOML datetimes

As described in nixpkgs#356717, `gitlab-runner` now uses TOML date-time
values in its configuration (namely the `token_obtained_at` and
`token_expires_at` keys). As there is no JSON syntax for such values,
remarshal refuses to serialise them without the `--stringify` flag.
Thankfully, `gitlab-runner` seems to accept the stringified values
without any complaints, so we can side-step this issue readily.
This commit is contained in:
Ben Gamari 2025-02-05 10:26:59 -05:00
parent ec16caeaf1
commit 2c6bc65f60

View file

@ -133,7 +133,7 @@ let
done
# update global options
remarshal --if toml --of json ${configPath} \
remarshal --if toml --of json --stringify ${configPath} \
| jq -cM ${escapeShellArg (concatStringsSep " | " [
".check_interval = ${toJSON cfg.checkInterval}"
".concurrent = ${toJSON cfg.concurrent}"