From 944086539e58fee40f40b02a1efbcb3ebddcfe2f Mon Sep 17 00:00:00 2001 From: didericis Date: Tue, 5 May 2026 15:29:28 -0400 Subject: [PATCH] Clarify local binary name vs Dockerfile binary name go build ./... names the binary after the module (gitea-heatmap-sidecar) while the Dockerfile uses -o /heatmap. Fix .gitignore to match the local name and add notes in both files explaining the discrepancy. Co-Authored-By: Claude Sonnet 4.6 --- .gitignore | 4 +++- README.md | 4 ++++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/.gitignore b/.gitignore index 6446bd7..1c1f559 100644 --- a/.gitignore +++ b/.gitignore @@ -1,4 +1,6 @@ -/heatmap +# Local binary: go build ./... derives the name from the module name. +# The Dockerfile overrides this with -o /heatmap; that name stays in the image. +/gitea-heatmap-sidecar /dist/ *.test *.out diff --git a/README.md b/README.md index a6bead8..e033587 100644 --- a/README.md +++ b/README.md @@ -125,6 +125,10 @@ Set `OP_TYPES=5,6,7,9,11,18,24` for a more inclusive count. go run . # requires DATABASE_URL and ALLOWED_USERS in env ``` +`go build ./...` produces a binary named `gitea-heatmap-sidecar` (derived from +the module name). The Dockerfile overrides this with `-o /heatmap`; the two +names differ but refer to the same program. + On NixOS: ```bash