From 480c6d8a0187a1ce719fafa26b70d648e75801fb Mon Sep 17 00:00:00 2001 From: Aleksei Sviridkin Date: Wed, 22 Jul 2026 00:08:14 +0300 Subject: [PATCH] chore: ignore root-level Go binaries built from cmd/ `go build ./cmd/` without -o drops an ~80 MB executable in the repo root under the package name. Ignore each cmd/ binary so a stray `git add` cannot commit one. Assisted-By: Claude Signed-off-by: Aleksei Sviridkin --- .gitignore | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/.gitignore b/.gitignore index 4d15bd0bd..4b14bed21 100644 --- a/.gitignore +++ b/.gitignore @@ -4,6 +4,26 @@ _repos .idea .vscode +# Go binaries built straight into the repository root. +# +# `go build ./cmd/` (without -o) drops the executable in the working +# directory under the package name, so every package under cmd/ has a +# root-level binary waiting to happen — each ~80 MB, and nothing else here +# matched them, leaving `git add .` one keystroke from committing one. +/api-gate +/backup-controller +/backupstrategy-controller +/check-readiness +/cozypkg +/cozystack-api +/cozystack-controller +/cozystack-operator +/flux-plunger +/flux-shard-operator +/kubeovn-plunger +/lineage-controller-webhook +/securitygroup-controller + # User-specific stuff .idea/**/workspace.xml .idea/**/tasks.xml