From 13d67e92d2bf611e9ec8b2b812e2d7b3ff730d53 Mon Sep 17 00:00:00 2001 From: Piotr Zaniewski Date: Mon, 20 Jul 2026 15:41:19 +0200 Subject: [PATCH] fix(release): stop docs-sync PRs from carrying file-mode-only diffs The versioned docs trees (platform_versioned_docs/version-*, etc.) were seeded from copies that carried an executable bit, so many committed partials are 100755 while the doc generators write them at 100644. The first successful sync into such a tree therefore flips the mode on hundreds of unchanged files: PR #2468 (v4.11.0) carried 112 spurious 100755->100644 mode-only diffs alongside only 4 real content changes (the go.mod/go.sum/vendor pin bump), burying the signal. Set core.fileMode false in the receiver so git ignores the executable bit for the sync. Docs (.mdx/.md/.json) are never executed, so the bit is meaningless; sync PRs now contain only real content changes. This is independent of the module-resolution fix in #2465 and applies to all sync event types. Claude-Session: https://claude.ai/code/session_011X7gGW9wWWJw1C5kq9aN2U --- .github/workflows/handle-source-release.yml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/.github/workflows/handle-source-release.yml b/.github/workflows/handle-source-release.yml index a7e793aff..efcfdb648 100644 --- a/.github/workflows/handle-source-release.yml +++ b/.github/workflows/handle-source-release.yml @@ -139,6 +139,13 @@ jobs: git config --global url."https://${GH_ACCESS_TOKEN}@github.com/".insteadOf "https://github.com/" echo "GOPRIVATE=github.com/loft-sh/vcluster-pro*" >>"$GITHUB_ENV" echo "GOPROXY=https://proxy.golang.org,direct" >>"$GITHUB_ENV" + # The versioned docs trees were seeded from copies that carried an + # executable bit, so many committed partials are 100755 while the + # generators write them at 100644. Without this, every sync PR + # carries hundreds of spurious 100755->100644 mode-only diffs that + # bury the real content changes. .mdx/.md/.json docs are never + # executed, so ignore the executable bit repo-wide for the sync. + git config core.fileMode false # The platform pin bump (below) moves api + agentapi to a version # loft-enterprise tagged moments ago. proxy.golang.org and