• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

sha1n / go-template / 27943737982
59%

Build:
DEFAULT BRANCH: master
Ran 22 Jun 2026 09:42AM UTC
Jobs 1
Files 2
Run time 1min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

22 Jun 2026 09:41AM UTC coverage: 58.594% (+46.1%) from 12.5%
27943737982

push

github

web-flow
Replace init.sh with a cross-platform Go init engine + /init-template (plus template build fixes) (#51)

* feat(bootstrap): cross-platform Go init engine; remove init.sh

Replace the macOS-only init.sh (BSD sed -i "") with a stdlib-only, deterministic
rename engine at internal/bootstrap. Given --owner/--repo/--go-version it
rewrites the template identifiers (module path, owner, repo, and the go.mod
version directive) and deploys git hooks; supports --dry-run. The go.mod version
rewrite tolerates CRLF line endings so it works on Windows checkouts.

Includes unit tests and a scaffolding-on-a-copy integration test that copies the
repo, renames it, and asserts the renamed copy still compiles.

* ci: linux+windows test matrix; strict make init; force LF via .gitattributes

Run go test ./... on ubuntu-latest and windows-latest (macOS excluded by policy);
the Unix make pipeline and Coveralls run on the Linux leg only. The Test step is
pinned to bash so the command parses identically on every OS. Add a strict
`make init` target (requires OWNER/REPO/GOVERSION, recipe-time guard) and a
.gitattributes that normalizes line endings to LF.

* docs: /init-template command, AGENTS.md, refreshed init instructions

Add the /init-template Claude slash command (detects defaults, interviews, runs
the engine, generates a tailored README/CLAUDE.md, and self-deletes the
scaffolding), an AGENTS.md policy doc (Linux+Windows CI, no macOS), and update
README/docs to document the /init-template and `make init` paths.

The command interviews the target-repo owner for CI OS coverage (Linux+Windows
default, Linux-only, or adding macOS) and applies the choice to the go.yml matrix.

init cleanup also removes AGENTS.md: it documents the template's own policy and
is superseded by the tailored CLAUDE.md generated for the target repo.

* fix(protoc): support darwin/arm64 and linux/arm64 in setup_protoc.sh

setup_protoc.sh only mapped the amd64 variants of darwin/linux/windows and
errored ... (continued)

72 of 125 new or added lines in 1 file covered. (57.6%)

75 of 128 relevant lines covered (58.59%)

21.44 hits per line

Uncovered Changes

Lines Coverage ∆ File
53
57.6
internal/bootstrap/main.go
Jobs
ID Job ID Ran Files Coverage
1 27943737982.1 22 Jun 2026 09:42AM UTC 2
58.59
GitHub Action Run
Source Files on build 27943737982
  • Tree
  • List 2
  • Changed 0
  • Source Changed 0
  • Coverage Changed 0
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #27943737982
  • 009d1ee5 on github
  • Prev Build on master (#27929798987)
  • Delete
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc