From 80e1d29555abfd578df3a9410d574923dbdfd0a8 Mon Sep 17 00:00:00 2001 From: eric.wien Date: Fri, 05 Jun 2026 12:08:59 +0000 Subject: [PATCH] fix: add missing cmd/tng entrypoint so make build works The bare "tng" pattern in .gitignore (meant for a root-level binary) also matched the cmd/tng/ directory, so the main package was never committed and make build failed with "directory not found". Anchor the pattern to the repo root and add the thin entrypoint that calls internal/tngcmd.Main(), following the gh CLI layout. Co-Authored-By: Claude Opus 4.8 (1M context) --- .gitignore | 2 +- cmd/tng/main.go | 11 +++++++++++ 2 file(s) changed, 12 insertion(s)(+), 1 deletion(s)(-) diff --git a/.gitignore b/.gitignore --- a/.gitignore +++ b/.gitignore @@ -1,6 +1,6 @@ # Binaries bin/ -tng +/tng *.exe *.exe~ *.dll diff --git a/cmd/tng/main.go b/cmd/tng/main.go new file mode 100644 --- /dev/null +++ b/cmd/tng/main.go @@ -0,0 +1,11 @@ +package main + +import ( + "os" + + "knot.eric.wien/tng-cli/internal/tngcmd" +) + +func main() { + os.Exit(tngcmd.Main()) +} -- tangled.sh