F-catalog-B: no ignore pattern hides a module's source; nfs-server's and restic's patterns anchored

A bare pattern meant for a binary (mesh-build-node) matched the command directory of the same name, so git
ignored every new file there and publish.go was never committed (catalogue review F1). The kind: every
bare pattern of a module's .gitignore is anchored to the binary (nfs-server's hid all of cmd/nfs-server),
and checks/gitignored refuses an ignore pattern, the module's or the catalogue's, that hides a directory
under a module's cmd/ or internal/, a Go file added there, or a source file there, in a git checkout and a
plain folder alike.

Claude-Session: https://claude.ai/code/session_01JG73KJNrH5EgFXMKKYSrig
This commit is contained in:
2026-11-04 17:17:54 +01:00
parent 64c893e2c2
commit d8e43b48c4
5 changed files with 212 additions and 2 deletions
+3 -1
View File
@@ -1 +1,3 @@
nfs-server
# the binary, built at the module or in its command directory; never the command directory itself
/nfs-server
/cmd/nfs-server/nfs-server
+2 -1
View File
@@ -1 +1,2 @@
restic-backups
# the binary, built in this command directory
/restic-backups