TSA-1: remove committed binary, build check outputs to bin/
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
parent
2f970ae60d
commit
bcda259fea
1
.gitignore
vendored
1
.gitignore
vendored
@ -3,3 +3,4 @@ node_modules/
|
||||
.env.local
|
||||
.DS_Store
|
||||
bin/
|
||||
/server
|
||||
|
||||
@ -4,3 +4,6 @@
|
||||
|
||||
## Команды
|
||||
- Go-проект: make run / make test / make build; точка входа cmd/server, PORT (по умолчанию 8080), /health → ok. Go локально может не быть — проверять через docker run golang:1.22.
|
||||
|
||||
## Грабли
|
||||
- `go build ./...` с одним main-пакетом пишет бинарник `server` в корень — в checks.build используем `go build -o bin/ ./...`; бинарники не коммитить. Ни go, ни docker в песочнице может не быть — Go 1.22 качается с go.dev/dl в /tmp.
|
||||
|
||||
@ -5,7 +5,7 @@
|
||||
"peppaUrl": "https://peppa.telecom.quest",
|
||||
"checks": {
|
||||
"test": "go test ./...",
|
||||
"build": "go build ./...",
|
||||
"build": "go build -o bin/ ./...",
|
||||
"lint": "go vet ./... && test -z \"$(gofmt -l .)\""
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user