You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+13Lines changed: 13 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -118,10 +118,23 @@ cd tests/;
118
118
GOROOT=/path/to/go-panikint /path/to/go-panikint/bin/go test -v .
119
119
```
120
120
121
+
CI notes:
122
+
- Pull requests run workflow linting (actionlint + zizmor), `go vet`, and type checking (`go test -run=^$`) in `tests/` using the built toolchain.
123
+
- Pushes to `master` run the build + tests (both truncation disabled/enabled).
124
+
121
125
Note: the upstream Go distribution tests in `$GOROOT/test` intentionally rely on integer wrap-around.
122
126
The go-panikint unit tests live in `$GOROOT/tests` (plural) and should run with overflow checks enabled.
123
127
When running `cmd/internal/testdir` (for example via `src/all.bash`), we disable overflow instrumentation using `GOPANIKINT_DISABLE_OVERFLOW=1`.
124
128
129
+
### Pre-commit (gofmt)
130
+
131
+
If you use `pre-commit` or `prek`, this repo includes a minimal `.pre-commit-config.yaml` that runs `gofmt` on staged Go files. The hook skips `test/` and any `testdata/` paths because those fixtures are intentionally not gofmt'ed in the Go repo.
0 commit comments