From aa41ac57e317e939a0ad9734a89e940c8fdcdcc7 Mon Sep 17 00:00:00 2001 From: Connor Peshek Date: Wed, 27 May 2026 05:37:19 -0500 Subject: [PATCH] root: fix make gen-diff command (#22548) --- Makefile | 4 ++-- scripts/compose.yml | 6 ++++-- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/Makefile b/Makefile index 5b041602e2..ccfb910dff 100644 --- a/Makefile +++ b/Makefile @@ -201,8 +201,8 @@ gen-diff: ## (Release) generate the changelog diff between the current schema a /local/schema-old.yml \ /local/schema.yml rm schema-old.yml - $(SED_INPLACE) 's/{/{/g' diff.md - $(SED_INPLACE) 's/}/}/g' diff.md + $(SED_INPLACE) 's/{/\{/g' diff.md + $(SED_INPLACE) 's/}/\}/g' diff.md npx prettier --write diff.md gen-client-go: ## Build and install the authentik API for Golang diff --git a/scripts/compose.yml b/scripts/compose.yml index 2d9090a6ec..86aba44b9c 100644 --- a/scripts/compose.yml +++ b/scripts/compose.yml @@ -32,11 +32,13 @@ services: restart: always diff: image: docker.io/openapitools/openapi-diff:2.1.7 - entrypoint: "/bin/true" + # Only run when explicitly invoked (e.g. `make gen-diff`), never on `docker compose up`. + profiles: + - diff restart: no network_mode: none volumes: - - ../:/local:ro + - ../:/local volumes: db-data: