fix: add missing cmd/ (gitignore excluded source dirs) #2

Merged
benvin merged 2 commits from benvin/fix-missing-cmd into main 2026-07-05 17:18:27 +10:00
Owner

Why

The v0.1.0 tag build failed: stat /build/cmd/encapi: directory not found (docker) and the same for cmd/encapi-cli (release). Root cause: the initial .gitignore had unanchored encapi / encapi-cli lines meant for built binaries, which also matched the cmd/encapi/ and cmd/encapi-cli/ source directories — so cmd/ was silently never committed.

Changes

  • anchor the binary ignore patterns to the repo root (/encapi, /encapi-cli) so cmd/ is tracked
  • add the missing cmd/encapi (server) and cmd/encapi-cli (CLI) main packages

After merge, re-tag v0.1.0 (or bump to v0.1.1) to trigger a green build.

## Why The v0.1.0 tag build failed: `stat /build/cmd/encapi: directory not found` (docker) and the same for `cmd/encapi-cli` (release). Root cause: the initial `.gitignore` had unanchored `encapi` / `encapi-cli` lines meant for built binaries, which also matched the `cmd/encapi/` and `cmd/encapi-cli/` **source** directories — so `cmd/` was silently never committed. ## Changes - anchor the binary ignore patterns to the repo root (`/encapi`, `/encapi-cli`) so `cmd/` is tracked - add the missing `cmd/encapi` (server) and `cmd/encapi-cli` (CLI) main packages After merge, re-tag v0.1.0 (or bump to v0.1.1) to trigger a green build.
unkinben added 1 commit 2026-07-05 17:04:19 +10:00
fix: add missing cmd/ (gitignore was excluding source dirs)
ci/woodpecker/pr/pre-commit Pipeline failed
ci/woodpecker/pr/build Pipeline was successful
ci/woodpecker/pr/test Pipeline was successful
7e9fec60d4
The initial commit's .gitignore had unanchored 'encapi' and 'encapi-cli'
patterns intended for built binaries; they also matched the cmd/encapi and
cmd/encapi-cli source directories, so those were silently never committed. The
tag build then failed with 'stat /build/cmd/encapi: directory not found'.

- anchor the binary ignores to the repo root (/encapi, /encapi-cli)
- add the cmd/encapi (server) and cmd/encapi-cli (CLI) main packages
unkinben added 1 commit 2026-07-05 17:11:56 +10:00
fix pre-commit go-vet for multi-package layout
ci/woodpecker/pr/pre-commit Pipeline was successful
ci/woodpecker/pr/build Pipeline was successful
ci/woodpecker/pr/test Pipeline was successful
2946db9b49
The dnephin go-vet hook runs 'go vet' at the repo root, which has no Go files
(all live under cmd/, internal/, pkg/), failing with 'no Go files'. Replace it
with a local 'go vet ./...' hook, mirroring artifactapi.
benvin merged commit 1dc02ce5cf into main 2026-07-05 17:18:27 +10:00
benvin deleted branch benvin/fix-missing-cmd 2026-07-05 17:18:27 +10:00
Sign in to join this conversation.