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:
+3
-1
@@ -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/
|
/dist/
|
||||||
*.test
|
*.test
|
||||||
*.out
|
*.out
|
||||||
|
|||||||
@@ -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 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:
|
On NixOS:
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
|
|||||||
Reference in New Issue
Block a user