Skip to content

fix: missing cmf-demo main.go file and gitignore fix that missed it.#52

Open
terylt wants to merge 1 commit into
devfrom
feat/missing_cmf_demo_file
Open

fix: missing cmf-demo main.go file and gitignore fix that missed it.#52
terylt wants to merge 1 commit into
devfrom
feat/missing_cmf_demo_file

Conversation

@terylt
Copy link
Copy Markdown
Contributor

@terylt terylt commented May 21, 2026

Summary

Discovered examples/go-demo/cmd/cmf-demo/main.go was missing from GitHub
even though it existed locally and git status didn't flag it as
untracked. Root cause: examples/go-demo/.gitignore had a bare pattern
cmf-demo meant to ignore the built binary at the demo root, but
gitignore matches bare patterns against any path component at any
depth — so cmd/cmf-demo/ (the source directory) and everything
under it were silently ignored too.

Same footgun exists in the root .gitignore for several other common
names (jwt/, build/, lib/, certs/, public/, tmp) that
would similarly hide future source directories. The jwt/ one is
particularly load-bearing — upcoming JWT-validator work needs jwt/
modules.

Changes

  • examples/go-demo/.gitignore: anchor cpex-demo and cmf-demo
    with leading / so they only match the built binaries at the demo
    root. Add explicit /cmd/cmf-demo/cmf-demo for the binary that lives
    alongside the source.
  • .gitignore: anchor certs/, public/, build/, lib/ to /;
    remove jwt/ entirely; remove bare tmp (covered by temp/); drop
    duplicate entries for certs/, public/, build/. Comments
    document the anchoring rationale.

@terylt terylt requested review from araujof and jonpspri as code owners May 21, 2026 22:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant