Skip to content

chore: bring the repo up to the ProbeLab standard - #44

Closed
dennis-tra wants to merge 9 commits into
mainfrom
chore/repo-standard
Closed

dennis-tra wants to merge 9 commits into
mainfrom
chore/repo-standard

Conversation

@dennis-tra

@dennis-tra dennis-tra commented Nov 6, 2026 •

Copy link
Copy Markdown
Contributor

What and why

Brings go-commons up to the ProbeLab repo standard. One commit per item:

  • LICENSE: reviewers, please confirm. The repo had no license. This adds the ProbeLab standard PolyForm Strict License 1.0.0, unchanged. go-commons is a public library, so this license applies to everyone who uses it. Do not merge until the owners agree.
  • justfile: the standard recipes. lint runs a gofumpt check, go fix -diff, go vet and staticcheck, and replaces golangci-lint. format runs gofumpt and go fix. check is gone, because lint runs go vet. test takes extra arguments.
  • refactor: applies go fix (slices.Contains, sync.WaitGroup.Go, reflect.TypeFor, any, range-over-int, max). Behavior stays the same.
  • AGENTS.md: updated to the template. It listed just recipes that do not exist and Go 1.25.1; it now lists the real recipes and packages.
  • .env.example: lists the variables the integration tests read.
  • README.md: adds Quickstart, Configuration, Metrics, Development and Deployment sections, and a license note.
  • .github/workflows/ci.yml: calls the shared go.yml@v1 of probe-lab/.github and installs gofumpt v0.12.0 and staticcheck 2026.2.2 through go-tools. It has a final ci-ok job.

No CLAUDE.md or other tool-specific instruction file existed, so nothing was merged or deleted. There is no CHANGELOG.md: the repo has no release tags.

How I checked it

GOTOOLCHAIN=go1.26.1 just ci passed locally with gofumpt v0.12.0 and staticcheck 2026.2.2 installed fresh: gofumpt, go fix -diff, go vet, staticcheck (no findings), build, and tests. gofumpt found nothing to reformat, so there is no formatting commit. Local Go is 1.27; the go fix result depends on the toolchain, so I used 1.26.1, which CI uses for go 1.26.0. The integration tests for Postgres and ClickHouse skipped (no database variables set). I did not run ci.yml on GitHub; the first run on this pull request will show it. The go-tools pins are not checked on GitHub until the first run.

Deploy

Nothing. No deployment, no new variable for any dependent tool. After merge, set ci-ok as the required check on main.

Adds default, format and ci. lint, build, test and check keep their commands.
Lists the real just recipes and packages; drops recipes that do not exist.
…heck

One lint setup, the ProbeLab standard. CI installs gofumpt and staticcheck through the go-tools input of the shared Go workflow. The check recipe goes, because lint runs go vet.
Uses slices.Contains, sync.WaitGroup.Go, reflect.TypeFor, any and range-over-int. Behavior stays the same.
go fix -diff exits 0 even when it prints a diff, so lint never failed on pending go fix changes. lint now fails and prints the diff.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant