- This repository is the Go module
go.osspkg.com/errors, a single package at the repository root. It targets Go 1.26. - Keep the public error API compatible.
Traceis exported;Wrapwith multiple inputs must preserve each input for standarderrors.Isanderrors.Aswhile retaining the colon-separated error text and legacyCausebehavior. - Tests for the public API use the external package
errors_test.
Run commands from the repository root.
make lintrunsgoppy lint, which performs Go module tidy/download and formatting beforegolangci-lintandgovulncheck. It can change files; inspectgit statusand the diff afterward.make testsrunsgoppy test.make buildrunsgoppy build --arch=amd64.- CI runs
make ci. This target also installsgoppy@latest, runsgoppy setup-liband the license target, then lint, tests, and build. Use it when the full CI sequence and local setup are intended.
For non-trivial work, use the Chroma collection chat_go-errors_memory:
- Ensure the collection exists before reading or writing. If missing, list collections and create this exact collection with the default embedding configuration.
- Query it with a concise semantic description of the current task before making design decisions.
- After the work, add a concise document only for a durable project decision or lesson. Query related memories first and update an existing document instead of duplicating it.
- Never store secrets, transcripts, or temporary command output. Memory supplements the current source and tests; it does not override them.