Repository navigation
chore: bring the repo up to the ProbeLab standard - #44
Closed
dennis-tra wants to merge 9 commits into
Closed
dennis-tra wants to merge 9 commits into
dennis-tra wants to merge 9 commits into
Conversation
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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What and why
Brings go-commons up to the ProbeLab repo standard. One commit per item:
justfile: the standard recipes.lintruns a gofumpt check,go fix -diff,go vetand staticcheck, and replaces golangci-lint.formatruns gofumpt andgo fix.checkis gone, becauselintrunsgo vet.testtakes extra arguments.refactor: appliesgo fix(slices.Contains,sync.WaitGroup.Go,reflect.TypeFor,any, range-over-int,max). Behavior stays the same.AGENTS.md: updated to the template. It listedjustrecipes 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 sharedgo.yml@v1ofprobe-lab/.githuband installs gofumptv0.12.0and staticcheck2026.2.2throughgo-tools. It has a finalci-okjob.No
CLAUDE.mdor other tool-specific instruction file existed, so nothing was merged or deleted. There is noCHANGELOG.md: the repo has no release tags.How I checked it
GOTOOLCHAIN=go1.26.1 just cipassed 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; thego fixresult depends on the toolchain, so I used 1.26.1, which CI uses forgo 1.26.0. The integration tests for Postgres and ClickHouse skipped (no database variables set). I did not runci.ymlon GitHub; the first run on this pull request will show it. Thego-toolspins are not checked on GitHub until the first run.Deploy
Nothing. No deployment, no new variable for any dependent tool. After merge, set
ci-okas the required check onmain.