Skip to content

chore: anchor ignore rules, remove pre-release-check.sh - #115

Merged
kolkov merged 2 commits into
mainfrom
chore/gitignore-pm
Nov 1, 2026
Merged

kolkov merged 2 commits into
mainfrom
chore/gitignore-pm

Conversation

@kolkov

@kolkov kolkov commented Nov 1, 2026

Copy link
Copy Markdown
Contributor

Two housekeeping changes.

Ignore rules. Several rules in .gitignore were bare file names (INDEX.md, test_*, QUICK_START*.md, RESEARCH*.md, gops_config.yaml, project_docs_*.md). A bare name matches in every directory, so it can hide a public file anywhere in the tree; INDEX.md hid docs/INDEX.md. The scratch and generator patterns now apply to the repository root only, and INDEX.md is no longer ignored. Private directories stay ignored by directory (.claude/ and the new .pm/ anywhere, /tmp/, /docs/dev/). Binaries built in an example directory, which have no extension, are ignored now, as are *.prof, coverage.* and go.work.sum.

Checked: no tracked file becomes ignored (git ls-files -i -c --exclude-standard prints nothing). examples/*/main.go, structlib.c and go.mod stay visible. examples/struct/struct-example, ffi/testdata/libstructtest.so, coverage.out and cpu.prof are ignored.

scripts/pre-release-check.sh removed. It duplicated the CI jobs and had drifted from them. CONTRIBUTING.md now lists the checks CI runs: format, lint on every target, tests and the race detector. ROADMAP.md no longer mentions the script.

Ignore rules that were bare names (INDEX.md, test_*, QUICK_START*.md,
RESEARCH*.md, gops_config.yaml, project_docs_*.md) matched in every
directory and could hide public files; INDEX.md hid docs/INDEX.md. The
scratch and generator patterns now apply to the root only, and
INDEX.md is no longer ignored. Private directories stay ignored by
directory: .claude/ and .pm/ (new) anywhere, /tmp/, /docs/dev/.

Also ignore binaries built in an example directory (they have no
extension), *.prof, coverage.* and go.work.sum.
The script duplicated the CI jobs and had drifted from them; its own
comments carried a path of the maintainer's machine. CONTRIBUTING.md
now lists the checks CI runs: format, lint on every target, tests and
the race detector.
@kolkov kolkov added type: docs Documentation only priority: low Backlog, nice to have status: review In code review area: ci CI workflows, check scripts, branch protection labels Nov 1, 2026
@codecov

codecov Bot commented Nov 1, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

@kolkov
kolkov merged commit 0e78f91 into main Nov 1, 2026
49 checks passed
@kolkov
kolkov deleted the chore/gitignore-pm branch November 1, 2026 01:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area: ci CI workflows, check scripts, branch protection priority: low Backlog, nice to have status: review In code review type: docs Documentation only

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant