Auto-generate config docs from code
Author: jedevcCreated Sep 25, 2023Updated Sep 21, 2026
Labelskind/docs
The definition for the buildkit.toml format lives in https://github.com/moby/buildkit/blob/0f6482e34cec2d25c4397b812e442e1c8eea06d0/cmd/buildkitd/config/config.go
The fields are all documented in https://github.com/moby/buildkit/blob/0f6482e34cec2d25c4397b812e442e1c8eea06d0/docs/buildkitd.toml.md.
However, these can be out-of-date, which means sometimes we get drift - see https://github.com/moby/buildkit/pull/4273, which should have been updated as part of https://github.com/moby/buildkit/pull/3773, but got missed.
Ideally, we should auto-generate part of the buildkit docs using the code, by extracting doc-comments, and analyzing the types.
(cc @dvdksn)
Source: moby/buildkit