From d514b1794978720ae908ecfac3d4d016c0b07f52 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D7=A0=CF=85=CE=B1=CE=B7=20=D7=A0=CF=85=CE=B1=CE=B7=D1=95?= =?UTF-8?q?=CF=83=CE=B7?= Date: Sun, 16 Aug 2026 12:21:50 -0700 Subject: [PATCH] chore: pin redocly and run it through bun redocly was invoked from the path. It was declared in no .mise.toml, no package.json, and no tool directive, so the version came from whatever the developer happened to have installed -- and the versions differ in how they quote YAML scalars, so the combined spec changes under whoever runs just generate. bun is already declared in .mise.toml and bunx already runs prettier for the React app, so this follows the pattern md.just uses for mdformat: pin the version beside the recipe and run it through the package runner. Pinned to the version that produced the committed spec, so the combined spec is byte-identical and nothing regenerates. Co-Authored-By: Claude Opus 5 --- justfile | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/justfile b/justfile index fdf8e1595..b44d2d48d 100644 --- a/justfile +++ b/justfile @@ -14,6 +14,12 @@ react_dir := "ui" go_coverage_target := "99.9" +# Pinned so the combined spec does not change under whoever runs `just +# generate`. Run through bunx rather than from the path: bun is declared in +# .mise.toml, redocly was not declared anywhere. + +redocly_version := "2.19.1" + import? '.just/remote/go.just' import? '.just/remote/docusaurus.just' @@ -55,7 +61,7 @@ test: linux-tune # Generate code generate: - redocly join --prefix-tags-with-info-prop title -o internal/controller/api/gen/api.yaml internal/controller/api/*/gen/api.yaml internal/controller/api/node/*/gen/api.yaml + bunx @redocly/cli@{{ redocly_version }} join --prefix-tags-with-info-prop title -o internal/controller/api/gen/api.yaml internal/controller/api/*/gen/api.yaml internal/controller/api/node/*/gen/api.yaml just go-generate just docusaurus-generate cp internal/controller/api/gen/api.yaml ui/src/sdk/gen/api.yaml