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 <noreply@anthropic.com>
This commit is contained in:
didericis
2026-05-05 15:29:28 -04:00
parent e94d2f6481
commit 944086539e
2 changed files with 7 additions and 1 deletions
+3 -1
View File
@@ -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
+4
View File
@@ -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