From f0a535b64112d241f3eee3c150c2fd938a59f08e Mon Sep 17 00:00:00 2001 From: wxiaoguang Date: Wed, 16 Sep 2026 21:36:10 +0800 Subject: [PATCH] build(gogit): disable gogit builds for stable releases (#39324) --- tools/build-release.sh | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/tools/build-release.sh b/tools/build-release.sh index 0e309254cf9..1004c07d624 100755 --- a/tools/build-release.sh +++ b/tools/build-release.sh @@ -62,11 +62,15 @@ main() { fi done - for target in "${RELEASE_PLATFORMS_GOGIT[@]}"; do - if [[ -z "$platform" || "$target" == "$platform/"* ]]; then - build "$target" "gogit" - fi - done + # Only build with gogit for main-nightly, disable gogit for stable releases since there seems no real requirement for them. + # If no real requirement (no user feedbacks), we can completely remove gogit support in the future. + if [ "$VERSION" = "main-nightly" ]; then + for target in "${RELEASE_PLATFORMS_GOGIT[@]}"; do + if [[ -z "$platform" || "$target" == "$platform/"* ]]; then + build "$target" "gogit" + fi + done + fi } main "$@"