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

sha1n / go-template
59%

Build:
DEFAULT BRANCH: master
Repo Added 25 May 2021 01:35PM UTC
Token Y9jBjhjwOxS6f7iwLKvmfydSkWDLwu29p regen
Build 137 Last
Files 2
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

LAST BUILD ON BRANCH master
branch: master
CHANGE BRANCH
x
Reset
Sync Branches
  • master
  • bash-fixes
  • bash-script-bug
  • dependabot/github_actions/actions/checkout-3
  • dependabot/github_actions/actions/checkout-4
  • dependabot/github_actions/actions/checkout-5
  • dependabot/github_actions/actions/checkout-6
  • dependabot/github_actions/actions/checkout-7
  • dependabot/github_actions/actions/setup-go-3
  • dependabot/github_actions/actions/setup-go-4
  • dependabot/github_actions/actions/setup-go-5
  • dependabot/github_actions/coverallsapp/github-action-1.1.3
  • dependabot/github_actions/coverallsapp/github-action-1.2.0
  • dependabot/github_actions/coverallsapp/github-action-1.2.2
  • dependabot/github_actions/coverallsapp/github-action-1.2.3
  • dependabot/github_actions/coverallsapp/github-action-1.2.4
  • dependabot/github_actions/coverallsapp/github-action-2.0.0
  • dependabot/github_actions/coverallsapp/github-action-2.1.0
  • dependabot/github_actions/coverallsapp/github-action-2.1.1
  • dependabot/github_actions/coverallsapp/github-action-2.1.2
  • dependabot/github_actions/coverallsapp/github-action-2.2.0
  • dependabot/github_actions/coverallsapp/github-action-2.2.1
  • dependabot/github_actions/coverallsapp/github-action-2.2.3
  • dependabot/github_actions/coverallsapp/github-action-2.3.0
  • dependabot/github_actions/coverallsapp/github-action-2.3.1
  • dependabot/github_actions/coverallsapp/github-action-2.3.3
  • dependabot/github_actions/coverallsapp/github-action-2.3.4
  • dependabot/github_actions/coverallsapp/github-action-2.3.6
  • dependabot/github_actions/coverallsapp/github-action-2.3.7
  • dependabot/github_actions/goreleaser/goreleaser-action-4
  • dependabot/github_actions/goreleaser/goreleaser-action-5
  • dependabot/github_actions/goreleaser/goreleaser-action-6
  • dependabot/github_actions/goreleaser/goreleaser-action-7
  • dependabot/github_actions/jandelgado/gcov2lcov-action-1.0.8
  • dependabot/github_actions/jandelgado/gcov2lcov-action-1.0.9
  • dependabot/github_actions/jandelgado/gcov2lcov-action-1.1.0
  • dependabot/github_actions/jandelgado/gcov2lcov-action-1.1.1
  • dependabot/github_actions/jandelgado/gcov2lcov-action-1.2.0
  • dependabot/github_actions/release-drafter/release-drafter-6
  • dependabot/github_actions/release-drafter/release-drafter-7
  • dependabot/go_modules/google.golang.org/protobuf-1.28.0
  • dependabot/go_modules/google.golang.org/protobuf-1.33.0
  • feat/template-init-bootstrap
  • fix/ci-go-toolchain-covdata
  • go-1.18
  • improve-init-script-1155010335296443994
  • improve-release-drafter-workflow
  • migrating-to-gha
  • test-workflow-trigger

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

Relevant lines Covered
Build:
Build:
128 RELEVANT LINES 75 COVERED LINES
21.44 HITS PER LINE
Source Files on master
  • Tree
  • List 2
  • Changed 0
  • Source Changed 0
  • Coverage Changed 0
Coverage ∆ File Lines Relevant Covered Missed Hits/Line

Recent builds

Builds Branch Commit Type Ran Committer Via Coverage
27943737982 master 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, determini... push 22 Jun 2026 09:42AM UTC web-flow github
58.59
27929798987 master Bump actions/checkout from 6 to 7 Bumps [actions/checkout](https://github.com/actions/checkout) from 6 to 7. - [Release notes](https://github.com/actions/checkout/releases) - [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md)... push 22 Jun 2026 04:34AM UTC sha1n github
12.5
27929229626 master ci: pin Go via go-version-file to fix covdata toolchain failure The CI "Go" job failed with `go: no such tool "covdata"` on the generated, test-free `generated/example` package. Root cause: setup-go installed Go 1.21, but `make install` runs `go... push 22 Jun 2026 04:18AM UTC sha1n github
12.5
23130631311 master Switch to pull_request_target for Release Drafter (#47) push 16 Mar 2026 06:18AM UTC web-flow github
12.5
23130512177 master Bump release-drafter/release-drafter from 6 to 7 (#46) * Bump release-drafter/release-drafter from 6 to 7 Bumps [release-drafter/release-drafter](https://github.com/release-drafter/release-drafter) from 6 to 7. - [Release notes](https://github.c... push 16 Mar 2026 06:15AM UTC web-flow github
12.5
22306535998 master Bump goreleaser/goreleaser-action from 6 to 7 Bumps [goreleaser/goreleaser-action](https://github.com/goreleaser/goreleaser-action) from 6 to 7. - [Release notes](https://github.com/goreleaser/goreleaser-action/releases) - [Commits](https://githu... push 23 Feb 2026 12:41PM UTC sha1n github
12.5
19620320662 master Bump actions/checkout from 5 to 6 Bumps [actions/checkout](https://github.com/actions/checkout) from 5 to 6. - [Release notes](https://github.com/actions/checkout/releases) - [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md)... push 24 Nov 2025 01:10AM UTC sha1n github
12.5
19620316787 master Bump coverallsapp/github-action from 2.3.6 to 2.3.7 Bumps [coverallsapp/github-action](https://github.com/coverallsapp/github-action) from 2.3.6 to 2.3.7. - [Release notes](https://github.com/coverallsapp/github-action/releases) - [Commits](https... push 24 Nov 2025 01:10AM UTC sha1n github
12.5
17088072751 master Bump actions/checkout from 4 to 5 Bumps [actions/checkout](https://github.com/actions/checkout) from 4 to 5. - [Release notes](https://github.com/actions/checkout/releases) - [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md)... push 20 Aug 2025 03:56AM UTC sha1n github
12.5
16713518222 master Bump jandelgado/gcov2lcov-action from 1.1.1 to 1.2.0 Bumps [jandelgado/gcov2lcov-action](https://github.com/jandelgado/gcov2lcov-action) from 1.1.1 to 1.2.0. - [Release notes](https://github.com/jandelgado/gcov2lcov-action/releases) - [Changelog]... push 04 Aug 2025 03:50AM UTC sha1n github
12.5
See All Builds (132)

Badge your Repo: go-template

We detected this repo isn’t badged! Grab the embed code to the right, add it to your repo to show off your code coverage, and when the badge is live hit the refresh button to remove this message.

Could not find badge in README.

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

Refresh
  • Settings
  • Repo on GitHub
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