Skip to content

build: require errors v0.8.0 - #52

Merged
josuegiron merged 1 commit into
masterfrom
build/errors-v0.8.0
Nov 21, 2026
Merged

josuegiron merged 1 commit into
masterfrom
build/errors-v0.8.0

Conversation

@josuegiron

Copy link
Copy Markdown
Member

Scope

ERR-07 last step (owner-approved 2026-11-21): raise github.com/jgolang/errors to v0.8.0 and point the README install commands at the release this PR becomes (v1.7.4). Leaves out otel/go.mod (unchanged; it still pins log v1.7.1, so log/otel users keep go-errors in their module graph until otel raises its log floor, a possible follow-up). Not a stack; nothing planned on top.

Reason

errors v0.8.0 removed Wrapper and its github.com/go-errors/errors dependency. log v1.7.3 already reads Detail, so raising the requirement removes go-errors from log's build.

Changes

  • go.mod/go.sum: errors v0.7.0 → v0.8.0; indirect github.com/go-errors/errors removed by go mod tidy.
  • README.md: install/upgrade commands name log@v1.7.4 (v1.7.2 pulled go-errors).

Verification

  • Root and otel/: gofmt -l . empty, go vet ./..., go test -race ./..., govulncheck ./... clean. Existing log/golden tests unchanged.
  • otel tests also pass in a scratch copy with github.com/jgolang/log replaced by this tree (errors v0.8.0 selected); not committed.
  • go list -m all (root): no go-errors.
  • Benchmarks, coded-error paths, interleaved before/after (benchstat, n=8): sec/op no significant change; allocs/op unchanged (e.g. LoggerInfo/coded_error_attr 37, ValidateArgs/coded_error 24); B/op +184 B per coded-error record (2.343Ki → 2.522Ki, 1.336Ki → 1.516Ki) from the runtime.CallersFrames iterator errors v0.8.0 uses to resolve frames. Disabled-level paths unchanged at 0 B.

Release notes (v1.7.4)

  • Requires github.com/jgolang/errors v0.8.0; github.com/go-errors/errors is no longer a dependency of log.
  • Stack traces in the origin attribute of coded errors now name inlined callers correctly (errors v0.8.0). Each coded-error record allocates about 184 bytes more.
  • No API change.

🤖 Generated with Claude Code

errors v0.8.0 drops the go-errors dependency and the Wrapper field,
which log stopped reading in v1.7.3, so go-errors leaves log's module
graph. Point the README install commands at v1.7.4.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@josuegiron
josuegiron merged commit a3a7b30 into master Nov 21, 2026
2 checks passed
@josuegiron
josuegiron deleted the build/errors-v0.8.0 branch November 21, 2026 19:42
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