tvl-depot/tools
Markus Rudy c461595b7f fix(nixery): strictly adhere to OCI image spec
nixery.dev uses the vnd.docker.container.image.v1 format, which is
recognized by the OCI [1] and originally defined by Docker [2]. The
config field in this image format, which this commit is about, is
even portable between the Docker and OCI formats (the Docker Golang
library embeds the OCI definition [3]).

The attribute names in what's called ImageConfig in [3] are specified as
PascalCase, which effectively means that the names Env and Cmd used by
nixery need to be capitalized. The lowercase variant is not causing a
lot of issues because most container tooling is written in Golang, which
allows case-insensitive matches when deserializing JSON. Languages that
parse strictly either miss the configuration values, or fail due to
unknown attributes. This commit capitalizes Cmd and Env to accomodate
strict parsers.

[1]: https://github.com/opencontainers/image-spec/blob/365fa41/media-types.md?plain=1#L70
[2]: https://github.com/moby/moby/blob/v20.10.8/image/spec/v1.2.md#image-json-description
[3]: https://github.com/opencontainers/image-spec/blob/365fa41/specs-go/v1/config.go#L24

Change-Id: Ibee597a64d36c008dea83a3b7a0d8e59b8287d0d
Signed-off-by: Markus Rudy <webmaster@burgerdev.de>
Co-authored-by: Paul Meyer <49727155+katexochen@users.noreply.github.com>
Reviewed-on: https://cl.tvl.fyi/c/depot/+/11012
Autosubmit: lukegb <lukegb@tvl.fyi>
Reviewed-by: lukegb <lukegb@tvl.fyi>
Tested-by: BuildkiteCI
2024-02-22 16:56:02 +00:00
..
checks fix(tools/checks): Minor typo fix 2022-06-07 10:46:15 +00:00
cheddar chore(tools/cheddar): bump cargo dependencies 2023-11-12 22:42:04 +00:00
emacs-pkgs chore(depot): update OWNERS files for aspen 2023-12-20 18:35:58 +00:00
magrathea feat(tools/magrathea): Allow running commands in a shell 2023-12-12 11:44:46 +00:00
nixery fix(nixery): strictly adhere to OCI image spec 2024-02-22 16:56:02 +00:00
nsfv-setup style: format entire depot with nixpkgs-fmt 2022-01-31 16:11:53 +00:00
releases fix(views/kit): communicate :unsign in the tvl-kit URL directly 2023-03-31 08:46:01 +00:00
rust-crates-advisory fix(ops/pipelines): explicitly set contexts for annotations 2022-12-28 16:35:20 +00:00
crate2nix-generate.nix refactor(tools): move crate2nix generate here 2024-01-18 15:02:15 +00:00
crfo-approve.nix feat(tools/crfo-approve): Add tool for CRFO depot-interventions 2022-02-07 19:12:31 +00:00
depot-deps.nix feat(tools/git-r): git subcommand to display r/numbers for commits 2023-07-05 12:37:09 +00:00
depotfmt.nix chore(tools/depotfmt): use Go version from buildGo 2023-10-30 16:33:21 +00:00
eprintf.nix style: format entire depot with nixpkgs-fmt 2022-01-31 16:11:53 +00:00
fetch-depot-inbox.nix feat(tools/fetch-depot-inbox): wrapper script to fetch depot maildir 2022-12-28 08:17:45 +00:00
gerrit-cli.nix fix(gerrit-cli): don't output the path to SSH if it's on the path 2020-06-21 23:49:30 +00:00
gerrit-update.nix feat(gerrit-update): Add helper script for updating Gerrit schema 2020-11-29 11:50:58 +00:00
git-r.nix feat(tools/git-r): git subcommand to display r/numbers for commits 2023-07-05 12:37:09 +00:00
hash-password.nix docs(REVIEWS): point people to signup.tvl.fyi for account creation 2023-09-12 13:59:34 +00:00
perf-flamegraph.nix fix(tools/perf-flamegraph): Get rid of most 'unknown's 2020-07-16 00:37:29 +00:00